Tuning HADB
■FreeSize: free size in MB.
■Usage: percent used.
Use the hadbm resourceinfo command to monitor resource usage, for example the following command displays data buffer pool information:
%hadbm resourceinfo |
|
| |||
NodeNo | Avail | Free | Access | Misses | |
0 | 32 | 0 | 205910260 | 8342738 | 400330 |
1 | 32 | 0 | 218908192 | 8642222 | 403466 |
The columns in the output are:
■Avail: Size of buffer, in Mbytes.
■Free: Free size, when the data volume is larger than the buffer. (The entire buffer is used at all times.)
■Access: Number of times blocks that have been accessed in the buffer.
■Misses: Number of block requests that “missed the cache” (user had to wait for a disk read)
■
For a
Tuning DataBufferPoolSize
To change the size of the database buffer, use the following command:
hadbm set DataBufferPoolSize
This command restarts all the nodes, one by one, for the change to take effect. For more information on using this command, see “Configuring HADB” in Sun GlassFish Enterprise Server 2.1 High Availability Administration Guide.
LogBufferSize
Before it executes them, HADB logs all operations that modify the database, such as inserting, deleting, updating, or reading data. It places log records describing the operations in a portion of shared memory referred to as the (tuple) log buffer. HADB uses these log records for undoing operations when transactions are aborted, for recovery in case of node crash, and for replication between mirror nodes.
Chapter 6 • Tuning for | 111 |