473,385 Members | 1,373 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

HADR performance issue

Hi,

I have setup a HADR between two servers in different locations.
When I compare the application response time in standard environment
and in HADR environment,
I find the latter is more than twice slower than the former. I have
tried to tune some parameters
like DB2_HADR_BUF_SIZE, log buffer size, dbheap, but not much
improvement.

Can anyone give me some suggestions of how to improve HADR
performance? We use sync mode of HADR.

Thanks.

Jul 26 '07 #1
4 4841
"ebusiness" <we*******@hotmail.comwrote in message
news:11**********************@j4g2000prf.googlegro ups.com...
Hi,

I have setup a HADR between two servers in different locations.
When I compare the application response time in standard environment
and in HADR environment,
I find the latter is more than twice slower than the former. I have
tried to tune some parameters
like DB2_HADR_BUF_SIZE, log buffer size, dbheap, but not much
improvement.

Can anyone give me some suggestions of how to improve HADR
performance? We use sync mode of HADR.

Thanks.
Use near synch.

It is just as good unless both servers crash at the same time.
Jul 26 '07 #2
On Jul 26, 7:00 pm, "Mark A" <nob...@nowhere.comwrote:
"ebusiness" <wendy_...@hotmail.comwrote in message

news:11**********************@j4g2000prf.googlegro ups.com...
Hi,
I have setup a HADR between two servers in different locations.
When I compare the application response time in standard environment
and in HADR environment,
I find the latter is more than twice slower than the former. I have
tried to tune some parameters
like DB2_HADR_BUF_SIZE, log buffer size, dbheap, but not much
improvement.
Can anyone give me some suggestions of how to improve HADR
performance? We use sync mode of HADR.
Thanks.

Use near synch.

It is just as good unless both servers crash at the same time.
The project requires no data loss, but near sync can't archive this.

Jul 27 '07 #3
"ebusiness" <we*******@hotmail.comwrote in message
news:11**********************@j4g2000prf.googlegro ups.com...
The project requires no data loss, but near sync can't archive this.
Perhaps you don't understand how it works.

With near synch, when the application commits, DB2 guarantees that the data
is written to the DB2 transaction log on disk on the primary server (this is
normal even without HADR), and that the log information is successfully
written to the HADR buffer on the standby server. So even if the primary
server crashes before the data is written to the log disk files on the
standby server, it is in the log buffer on the standby and will be written
to log disk on the standby within a very short amount of time (it will not
be lost). This would happen before a takeover to the standby would take
effect.

Therefore, unless the standby server crashes within a few seconds of the
primary server crashing, you will not loose any data. The odds of both
servers crashing within a few seconds of each other are astronomical.

Keep in mind that if both primary and standby server did crash within a few
seconds of each other, you would know that, and simply choose to not do a
takeover to the standby (or a takeover by automated means would not be
possible because the standby server also crashed). So in this situation the
standby would not actually loose any data, since it would never be used as
the primary.

If your primary and standby servers have a slow network interface between
them, you are not EVER going to get the same level of performance as you
would without HADR. But even if they are close, "near synch" provides much
better performance in a high transaction environment, at only a miniscule
risk (actually non-existent risk IMO).


Jul 28 '07 #4
On Jul 28, 12:45 pm, "Mark A" <nob...@nowhere.comwrote:
"ebusiness" <wendy_...@hotmail.comwrote in message

news:11**********************@j4g2000prf.googlegro ups.com...
The project requires no data loss, but near sync can't archive this.

Perhaps you don't understand how it works.

With near synch, when the application commits, DB2 guarantees that the data
is written to the DB2 transaction log on disk on the primary server (this is
normal even without HADR), and that the log information is successfully
written to the HADR buffer on the standby server. So even if the primary
server crashes before the data is written to the log disk files on the
standby server, it is in the log buffer on the standby and will be written
to log disk on the standby within a very short amount of time (it will not
be lost). This would happen before a takeover to the standby would take
effect.

Therefore, unless the standby server crashes within a few seconds of the
primary server crashing, you will not loose any data. The odds of both
servers crashing within a few seconds of each other are astronomical.

Keep in mind that if both primary and standby server did crash within a few
seconds of each other, you would know that, and simply choose to not do a
takeover to the standby (or a takeover by automated means would not be
possible because the standby server also crashed). So in this situation the
standby would not actually loose any data, since it would never be used as
the primary.

If your primary and standby servers have a slow network interface between
them, you are not EVER going to get the same level of performance as you
would without HADR. But even if they are close, "near synch" provides much
better performance in a high transaction environment, at only a miniscule
risk (actually non-existent risk IMO).
Thanks guys, I'll try to persuade the management team to believe that
NEARSYNC can provide the data protection that meets the business
requirements.

Jul 30 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: bwmiller16 | last post by:
Folks - Linux RH3, UDB 8.2 FP9. I've got two tiny test boxes that I'm setting up to get a simple HADR configuration built. When I start the primary I get the famous SQL1768 RC=7 and also...
4
by: derekbarrett | last post by:
Hi all, Our business is in manufacturing, and we are running SAP on DB2 8.1, planning on upgrading to 8.2.2 within a couple of months. We are running operations 24/7, so are looking for ways to...
7
by: Mark A | last post by:
If server 01 running HADR in the primary role crashes, and the DBA does a HADR takeover by force on the 02 server to switch roles, then the 02 server is now the primary. What happens when the...
6
by: Gladiator | last post by:
Hai everyone...... i was trying to implement the HADR concept ........ i tried using the following commands ...... On server_1 db2 backup database prod to /backup_dir db2 update db cfg for...
8
by: Challenge | last post by:
Hi, I got error, SQL1768N Unable to start HADR. Reason code = "7", when I tried to start hadr primary database. Here are the hadr configuration of my primary db: HADR database role ...
6
by: shorti | last post by:
db2 8.1 fix pack 12 on AIX 5.3 This is a newly configured HADR machine. The HADR was up and running. I was 'playing' around some on the standby and did a db2 deactivate and things sort of went...
6
by: shorti | last post by:
I have two questions about HADR recovery. I am running db2 v8 fp12. 1) If the primary suddenly crashes would you always want to switch the standby to the primary by force...or would there be...
2
by: paul | last post by:
Hi, I have two databases in hadr, this morning i issued a "takeover ... by force" because the normal takeover didn't worked. Now i have two standard databases, and if i try to put the old primary...
0
DB2 Warlord
by: DB2 Warlord | last post by:
After countless time I was unabl to find the answer to my HADR questions and getting HADR to work in 9.5 via the Control Center. Please see my fix that seem strange but works. My error was as...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.