Informix HDR Setting in WebSphere Application Server

Background Knowledge*

What Is HDR (High Availability Data Replication)?
Two identical servers on two identical machines
Primary server
        Fully functional server
        All database activity – insert/update/deletes, are performed on this instance
       Automatically sends logs to secondary server
 Secondary server
       Read only server : allows read only query
        Always in recovery mode
        Receives logs from primary and replay them to keep in sync with primary
 When Primary server goes down, secondary server takes over as Standard server
HDR – Key points

Benifts:

  •      Easy of administration and setup
  •      Reduced downtime using DR switchover
  •      Update interval
  •      Automatic client redirection using DBPATH
  •      Improved performance by using secondary as report server
  •      Independent of geographic location

Limitations:

  • Indexes are locked when created on primary (till they are shipped to secondary)
  • No Replication of Blobspace blobs (only)
  • Non logged databases are not replicated

Get your feet wet: configure the HDR in WebSphere Application Server

This section will present how to set the secondary connection properties and enable HDR in Application Server.

The following connection properties are needed to set in the connection URL:

INFORMIXSERVER_SECONDARY = secondary_server;
PORTNO_SECONDARY = secondary_portnumber;
IFXHOST_SECONDARY = secondary_hostmachine;
ENABLE_HDRSWITCH = true;

To set those properties, start the WAS server, and navigate to JDBC providers > Informix JDBC Driver > Data sources > Informix JDBC Driver DataSource > Custom properties, under the Custom properties, you could set HDR properties through “New” bottom. You have to add “ifx” before each property, for example:

ifxENABLE_HDRSWITCH     true
ifxPORTNO_SECONDARY     12345
ifxIFXHOST_SECONDARY    hostname_of_secondary
ifxINFORMIXSERVER_SECONDARY   dbserver_name_of_secondary

Now, you could start to test the failover which works for me.

Resources:

JDBC Driver Programmer's Guide (Page 2-24)

 * Informix High Availability Features -- John F. Miller III 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值