...
The operating policy of such a DRX should be established based on preliminary data on local I/O load, and the following items in the configuration environment should be investigated to determine the appropriate specifications and buffer operating policies for the DRX to run.
Specifications
Operating Systems
Supports Windows 2008 and later 64-bit, Linux CentOS 6.4 and later, and Ubuntu 12.04 LTS and later 64-bit platforms.
Minimum Specifications
- Minimum 1 GHz or faster x86/x64 compatible processor (2 GHz or faster recommended), minimum 4 cores recommended
- At least 4 GB of physical memory
- Minimum 10 GB capacity disk
Recommended Memory Specifications
DRX's physical memory specifications are variable depending on the number of resources, maximum I/O, and transfer bandwidth. The following is a formula for DRX's physical memory specifications when the maximum I/O is greater than the transmission bandwidth.
...
I/O Load level | resource count | System Memory | BAB size | compression / encryption buffer | Memory Requirements | Recommended Memory Requirements |
---|---|---|---|---|---|---|
High speed Environment (500MB/s) | 1 | 2GB | 1 * (500MB-10MB) * 30초 = 14.7GB | 2GB | 18.7GB | 32GB |
10 | 10 * (500MB-10MB) * 30초 = 147GB | 151GB | 160GB | |||
50 | 50 * (500MB-10MB) * 30초 = 735GB | 739GB | 800GB | |||
100 | 100 * (500MB-10MB) * 30초 = 1.47TB | 1.51TB | 1.6TB |
Number of resources
You can configure as many resources as your memory resources allow. The maximum resource is 100 channels, but this can be flexible depending on available memory, and if the number of resources you need to operate is more than a few dozen channels, you may want to consider investing in multiple dedicated DRX nodes.
...
Investigate preliminary server I/O
...
load
Use the following procedure to measure the I/O load of the production server.
- Measure the read/write I/O data of the production server replication target disk (average I/O, maximum I/O over a period of at least 1-4 weeks).
- Measurement method
- Windows: Use Performance Monitor tool to collect disk I/O statistics data
- Linux: Use utilities such as iostat to collect disk I/O statistics data
- Consider buffer size, compression, and buffer operation policies based on the measurement results
Replication bandwidth
Replication bands require at least 10 Mbps to 100 Mbps bandwidth.
Policy
Determine your configuration based on the I/O load of your environment and whether you are using compression. Local configurations are common, but dedicated configurations are recommended when replication loads are high and acceleration across the WAN is required.
Buffer policy
- Preliminary research on network bands, operating machine I/O load factors is required to instrument DRX's physical buffer specifications.
- Pre-survey items
- Average I/O per resource on the production machine
- Maximum I/O volume
- Maximum I/O duration
- The average I/O and maximum I/O figures of the production machine are the basis for building an appropriate buffering environment.
...
If the I/O load on the production node is excessively large and the duration of peak I/O occurs over a long period of time (minutes to tens of minutes), DRX buffering may not be able to handle it. In this case, you should think about data compression.
BSR
Congestion policy
The congestion state means that buffering is impossible because there is no free space in the DRX buffer because the replication load is increased. In this case, DRX does not perform any special action and concentrates on remotely transmitting the replicated data in the buffer. The response to the congestion state is left to the congestion policy of DRBD.
...
- block: Wait for I/O until the buffer is empty (until it can be queued into the buffer). This is the default when no congestion policy is set.
- disconnect: Disconnect the replication connection and enter the StandAlone state.
- pull-ahead: Enter lazy replication mode. In this case, the replication connection is maintained, but replication is stopped and local I/O is logged as out-of-sync, but resynchronization of the logged out-of-sync is performed when congestion is released.
Specifying buffer size
- BSR coupling assumes an Ahead mode (lazy replication), asynchronous replication configuration.
- Ensure that measurements can only be taken over measurement segments where the replication connection is maintained; I/O measurements over disconnected segments are not considered.
- Aggregate the number of times BSR enters Ahead mode (congestion entry count) using the following methods
- Aggregate the number of times the "Congestion-fill threshold reached" output in the BSR log.
- Check the number of Ahead entries via the bsrsetup events2 command
- Resize the buffer based on the collected congestion entry counts. If the congestion frequency is high, the size of the buffer should be further increased.
- If the congested section does not become less frequent after increasing the buffer, consider compression.
FSR
FSR only needs to specify the size of DRX's buffer. It does not support congestion mode, so it does not need to be set. If the DRX buffer is full while buffering, it will immediately empty the buffer and automatically move to a synchronized state.
...