HADR Performance

HADR stands for high availability disaster recovery. This solution is used for disaster recovery purpose on db2 udb databases. HADR should be configured properly inorder to have optimal performance:

 

1) HADR synchronization mode: HADR can be run in 3 different modes SYNC, NEARSYNC, ASYNC. SYNC mode gives the best protection to data. In this mode primary has to wait until the changes are committed and written on the standby. Primary waits for the acknowledgement from the standby server. In NEARSYNC mode, standby sends acknowledgment as soon as the logs are in memory of standby server. And in ASYNC mode, primary does not wait for any kind of acknowledgment from the standby. Proper synchronization mode has to be chosen for optimal performance

 

2) DB2_HADR_BUF_SIZE: This registry variable controls the size of the receive buffer . Receive buffer is the area of memory where the logs are received before they are replayed. You can use the db2pd -db dbname -hadr on standby to monitor the usage of receive buffer. If you see it reaching 100 during the workload, you need to increase the value of DB2_HADR_BUF_SIZE

 

3) DB2_HADR_SOSNDBUF and DB2_HADR_SORCVBUF: There are the socket send buffer size and socket receive buffer size respectively. If the size for these parameters is too small then the full bandwidth can not be utilized. Generally increasing this to a bigger value would not impact performance negatively.

 

4) Logfilsz:Size of the logfile plays an important role in the performance, Generally this size should be few hundred MB.

 

 

[Post Source: http://ezinearticles.com/?HADR-Performance---Part-1&id=3037752]

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值