If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > HADR Testing - best practice

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-10-07, 22:26
meehange meehange is offline
Registered User
 
Join Date: Jul 2004
Posts: 256
HADR Testing - What do you do?

DB2 8.2 FP9 on AIX 5.3
Hey all I've got HADR running for several databases using ASYNC. The 2 sites are far apart and connected via a 4Mb link.

What I'd like to do is get some ideas for some testing of this setup to demonstrate to clients that it is working.
The two options I can see are:

1) Break HADR, rollforward the standby systems and give them to the clients to test, then restore all the DB's and setup and sync all the systems again after testing but this means I have no DR during the testing period.

2) Perform a manual takeover outside business hours and allow the clients to perform non critical operations in the DR systems then takover again at the end of "testing". Obviously the downside to this is that they aren't testing the DB's really just the failover... and they can't do anything that they don't want to end up in their prod systems.

Any thoughts? What have I missed? What do you guys do?

Also if anyone know whether a 4Mb link is sufficient for near-sync...monitoring shows me that on ASYNC I'm using on average between 1-3 Mbit with several 4Mbit spikes each day....

Last edited by meehange; 09-11-07 at 22:30. Reason: change title
Reply With Quote
  #2 (permalink)  
Old 09-10-07, 23:52
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
The overall amount of network traffic should be about the same regardless of synch mode, since you are having to send the log data to the standby server in each scenario. The difference is in response time of the commit transaction on the primary server when using synch or near-synch mode.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 09-11-07, 00:31
meehange meehange is offline
Registered User
 
Join Date: Jul 2004
Posts: 256
Quote:
Originally Posted by Marcus_A
The overall amount of network traffic should be about the same regardless of synch mode, since you are having to send the log data to the standby server in each scenario. The difference is in response time of the commit transaction on the primary server when using synch or near-synch mode.
Yea I'm just worried that at those times that we hit the 4Mbit mark that commits on primary will be slowed significantly. When we first set it up we were on 2Mbit and we experienced the nasty side effect of "congestion" on the Standby/TCPIP Pipe which let to the logging on primary grinding to a halt, sometimes for several minutes at a time :/
Increasing the bandwidth and the buffers seems to have fixed that, so I'm looking at moving up to near-sync now
Reply With Quote
  #4 (permalink)  
Old 09-11-07, 03:32
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
To confirm, HADR is working, you have to demostrate two things :

a) When takeover happens, all transactions committed on the primary are available in the secondary.

b) When you switch back to the primary, all transactions that happened on the secondary are applied to primary

Therefore, I would go with option 2.

Sathyaram

Quote:
Originally Posted by meehange
DB2 8.2 FP9 on AIX 5.3
Hey all I've got HADR running for several databases using ASYNC. The 2 sites are far apart and connected via a 4Mb link.

What I'd like to do is get some ideas for some testing of this setup to demonstrate to clients that it is working.
The two options I can see are:

1) Break HADR, rollforward the standby systems and give them to the clients to test, then restore all the DB's and setup and sync all the systems again after testing but this means I have no DR during the testing period.

2) Perform a manual takeover outside business hours and allow the clients to perform non critical operations in the DR systems then takover again at the end of "testing". Obviously the downside to this is that they aren't testing the DB's really just the failover... and they can't do anything that they don't want to end up in their prod systems.

Any thoughts? What have I missed? What do you guys do?

Also if anyone know whether a 4Mb link is sufficient for near-sync...monitoring shows me that on ASYNC I'm using on average between 1-3 Mbit with several 4Mbit spikes each day....
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #5 (permalink)  
Old 09-11-07, 03:44
meehange meehange is offline
Registered User
 
Join Date: Jul 2004
Posts: 256
Quote:
Originally Posted by sathyaram_s
To confirm, HADR is working, you have to demostrate two things :

a) When takeover happens, all transactions committed on the primary are available in the secondary.

b) When you switch back to the primary, all transactions that happened on the secondary are applied to primary

Therefore, I would go with option 2.

Sathyaram
I agree, but the problem there is selling the idea to management and clients. There is no element of trust in HADR as it is a new concept to them. I can see that the logfiles are being applied and committed via the monitoring but in order to demonstrate that via the front end you have to essentially use the production systems in the test. Which is why I'm wondering what everyone else does?
Reply With Quote
  #6 (permalink)  
Old 10-03-07, 01:48
meehange meehange is offline
Registered User
 
Join Date: Jul 2004
Posts: 256
Anyone got anything more to say on this one?
Reply With Quote
  #7 (permalink)  
Old 10-09-07, 14:55
abeaton abeaton is offline
Registered User
 
Join Date: Jun 2007
Posts: 12
On a recent HADR demo I did, we added new data to the primary, did a manual takeover and then selected the inserted data from the new primary. After a takeover to return to the original primary, we deleted the new test data. The users were very impressed by how transparent the whole process was to the end users.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On