TimesTen的复制操作需要消耗大量的网络IO资源。如果Timesten复制和应用程序使用同一块网卡,则当系统压力加大时,这块可怜的网卡很容易成为整个系统的瓶颈。
解决之道就是使用第二块网卡专门进行TimesTen的复制。方法是在建立active standby pair的时候指定要做复制的IP地址。
create active standby pair
EPDSCP_BF_DS on "epdscp1", EPDSCP_BF_DS on "epdscp2" return twosafe
store EPDSCP_BF_DS on "epdscp1"
disable return all 1
durable commit off
resume return 0
local commit action commit
return services off when stopped
store EPDSCP_BF_DS on "epdscp2"
disable return all 1
durable commit off
resume return 0
local commit action commit
return services off when stopped
route master EPDSCP_BF_DS on "epdscp1" subscriber EPDSCP_BF_DS on "epdscp2"
masterip "10.10.10.1" priority 1 SUBSCRIBERIP "10.10.10.2" priority 1
route master EPDSCP_BF_DS on "epdscp2" subscriber EPDSCP_BF_DS on "epdscp1"
masterip "10.10.10.2" priority 1 SUBSCRIBERIP "10.10.10.1" priority 1;
其中EPDSCP1和EPDSCP2是主备机的主机名
阅读(561) | 评论(0) | 转发(0) |