skip book previous and next navigation links
go up to top of book: HP OpenVMS System Manager's Manual, Volume 2:... HP OpenVMS System Manager's Manual, Volume 2:...
go to beginning of chapter: Managing DECdtm Services Managing DECdtm Services
go to previous page: Understanding Transaction Logs Understanding Transaction Logs
go to next page: Planning for a DECnet-Plus NetworkPlanning for a DECnet-Plus Network
end of book navigation links

Planning Transaction Logs  



The size and location of a transaction log can affect transaction performance. Before you create a transaction log, decide the size and location of the transaction log.

Later, you can change the size of a transaction log, or move it. However, careful planning at this stage reduces the need for future changes.

This section describes:

Task Section
Deciding the size of a transaction log
Deciding the Size of a Transaction Log
Deciding the location of a transaction log
Deciding the Location of a Transaction Log

Deciding the Size of a Transaction Log  

When you create a transaction log, you can specify its size. The default size is 4000 blocks; this gives acceptable performance on most systems.

If you know the expected rate of transactions, HP suggests the following formula to calculate the transaction log size:size = 40 × rate

where:

size
is the size of the transaction log in blocks.
rate
is the average number of transactions executed per second.

If you do not know the rate of transactions, accept the default size of 4000 blocks.

Deciding the Location of a Transaction Log  

If possible, choose a disk that is:

Fast
Achieve speed by using a high-performance disk, such as a solid-state disk, that is not heavily used.
Highly available
Achieve high availability by having multiple access paths to the data.

In an OpenVMS Cluster, use a disk that can be accessed by the other nodes in the cluster. This ensures that if one node fails, transactions running on other nodes are not blocked.
Reliable
Achieve reliability by keeping multiple copies of the data.

Using a shadowed disk is more reliable than using a nonshadowed disk, but may be slower because transaction logs are almost exclusively write-only.

You may need to choose between speed and either availability or reliability. For example, if the node is a workstation, you may choose to sacrifice speed for availability and reliability by putting the node's transaction log on a shadowed HSC-based disk, instead of on a faster disk attached to the workstation.

In a cluster environment, try to distribute the transaction logs across different disks. Having more than one transaction log on a disk can lead to poor transaction performance.


NoteMake sure that the disk has enough contiguous space to hold the transaction log. A discontiguous transaction log leads to poor transaction performance.


go to previous page: Understanding Transaction Logs Understanding Transaction Logs
go to next page: Planning for a DECnet-Plus NetworkPlanning for a DECnet-Plus Network