Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Transactional Replication - Performance Problem

 
   Database Help (Home) -> Replication RSS
Next:  click ?  
Author Message
Joe111

External


Since: Aug 19, 2004
Posts: 70



(Msg. 1) Posted: Wed Dec 31, 2008 5:14 am
Post subject: Transactional Replication - Performance Problem
Archived from groups: microsoft>public>sqlserver>replication (more info?)

Hello!

Would you reckon with a performance problem when you set up a Transactional
Replication for your database?

We had too much trouble with performance when we set it up. Is this
something expected? I know it depends on the hardware and workload from the
users, but we weren't expecting a huge impact like this.

Do you have some tips to make Transactional Replication work
performance-free problems?

Thank you,
Joe

 >> Stay informed about: Transactional Replication - Performance Problem 
Back to top
Login to vote
Hilary Cotter

External


Since: Jan 16, 2008
Posts: 143



(Msg. 2) Posted: Wed Dec 31, 2008 10:19 am
Post subject: RE: Transactional Replication - Performance Problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

replication should have a very low impact on the instances it is running on.
This really depends on your workload and hardware as you point out.

What sort of performance degradation are you seeing and have you done any
sort of bottle neck analysis to pinpoint the exact cause.

Also you might want to look at a remote distributor if you are using
transactional replication.

"Joe" wrote:

> Hello!
>
> Would you reckon with a performance problem when you set up a Transactional
> Replication for your database?
>
> We had too much trouble with performance when we set it up. Is this
> something expected? I know it depends on the hardware and workload from the
> users, but we weren't expecting a huge impact like this.
>
> Do you have some tips to make Transactional Replication work
> performance-free problems?
>
> Thank you,
> Joe

 >> Stay informed about: Transactional Replication - Performance Problem 
Back to top
Login to vote
Joe111

External


Since: Aug 19, 2004
Posts: 70



(Msg. 3) Posted: Thu Jan 01, 2009 4:23 am
Post subject: RE: Transactional Replication - Performance Problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Last night, while I was sleeping I think I found the problem.

I think I was just looking for the problem at the wrong place.

Here's the environment:
- ServerA is the Publisher (OLTP)
- ServerB is the Subscriber and Distributor. (Reporting server)

ServerA' s hardware:
8 core, 12GB RAM, RAID5 for the data file, RAID1 for the Log, RAID1 for the
TEMPDB

ServerB' s hardware:
8 core, 12GB RAM, RAID5 for data file, log file, tempdb, distributor.

And I just was running the Performance Monitor against the ServerA and never
thought the problem could be about the ServerB. But last night I remembered
about the distributor. The workload on the ServerA' s physical disk would
occur to the disk where the distributor and replicated database are. I just
missed this point... So I think this is where the problem occurs. As the
arrays of ServerA is much more powerful than the ServerB' s, I'll put the
distributor database on ServerA' s disks.

Do you think I should separate the data and log files of distributor
database on the ServerA' s RAID5 and RAID1? What could be a better
implementation in terms of the distributor and according to the hardware
listed above?

Thanks indeed,
Joe


"Hilary Cotter" wrote:

> replication should have a very low impact on the instances it is running on.
> This really depends on your workload and hardware as you point out.
>
> What sort of performance degradation are you seeing and have you done any
> sort of bottle neck analysis to pinpoint the exact cause.
>
> Also you might want to look at a remote distributor if you are using
> transactional replication.
>
> "Joe" wrote:
>
> > Hello!
> >
> > Would you reckon with a performance problem when you set up a Transactional
> > Replication for your database?
> >
> > We had too much trouble with performance when we set it up. Is this
> > something expected? I know it depends on the hardware and workload from the
> > users, but we weren't expecting a huge impact like this.
> >
> > Do you have some tips to make Transactional Replication work
> > performance-free problems?
> >
> > Thank you,
> > Joe
 >> Stay informed about: Transactional Replication - Performance Problem 
Back to top
Login to vote
Hilary Cotter3

External


Since: Aug 28, 2004
Posts: 458



(Msg. 4) Posted: Thu Jan 01, 2009 7:47 am
Post subject: Re: Transactional Replication - Performance Problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I kind of doubt it.

I would run perf mon and study your disk times. If either are over 50-55%
you are in trouble. If the disk latencies are consistently high and over 2%
the number of disks you are possibly in trouble. Basically you are going to
disk a lot and you need to find out why. Then you need to check your disk
response times to ensure they are below 50 ms.

Also check you disk read to write % to ensure that they are both 20% writes
or less.

There's lots more counters you can look at for analysis, but I would start
there. If they are high check your memory counters (cache hit ration, page
life expectency) to ensure that you don't have a memory pressures which are
causing high disk io.

Pal is a good tool overall to give you an idea to see if your workload is
too much for your hardware. If it raises a lot of alerts you need to review
the alerts to see if they are significant.


"Joe" wrote in message

> Last night, while I was sleeping I think I found the problem.
>
> I think I was just looking for the problem at the wrong place.
>
> Here's the environment:
> - ServerA is the Publisher (OLTP)
> - ServerB is the Subscriber and Distributor. (Reporting server)
>
> ServerA' s hardware:
> 8 core, 12GB RAM, RAID5 for the data file, RAID1 for the Log, RAID1 for
> the
> TEMPDB
>
> ServerB' s hardware:
> 8 core, 12GB RAM, RAID5 for data file, log file, tempdb, distributor.
>
> And I just was running the Performance Monitor against the ServerA and
> never
> thought the problem could be about the ServerB. But last night I
> remembered
> about the distributor. The workload on the ServerA' s physical disk would
> occur to the disk where the distributor and replicated database are. I
> just
> missed this point... So I think this is where the problem occurs. As the
> arrays of ServerA is much more powerful than the ServerB' s, I'll put the
> distributor database on ServerA' s disks.
>
> Do you think I should separate the data and log files of distributor
> database on the ServerA' s RAID5 and RAID1? What could be a better
> implementation in terms of the distributor and according to the hardware
> listed above?
>
> Thanks indeed,
> Joe
>
>
> "Hilary Cotter" wrote:
>
>> replication should have a very low impact on the instances it is running
>> on.
>> This really depends on your workload and hardware as you point out.
>>
>> What sort of performance degradation are you seeing and have you done any
>> sort of bottle neck analysis to pinpoint the exact cause.
>>
>> Also you might want to look at a remote distributor if you are using
>> transactional replication.
>>
>> "Joe" wrote:
>>
>> > Hello!
>> >
>> > Would you reckon with a performance problem when you set up a
>> > Transactional
>> > Replication for your database?
>> >
>> > We had too much trouble with performance when we set it up. Is this
>> > something expected? I know it depends on the hardware and workload from
>> > the
>> > users, but we weren't expecting a huge impact like this.
>> >
>> > Do you have some tips to make Transactional Replication work
>> > performance-free problems?
>> >
>> > Thank you,
>> > Joe
 >> Stay informed about: Transactional Replication - Performance Problem 
Back to top
Login to vote
Joe111

External


Since: Aug 19, 2004
Posts: 70



(Msg. 5) Posted: Thu Jan 01, 2009 9:21 am
Post subject: Re: Transactional Replication - Performance Problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Users of OLTP server complain about performance degradation and they say "we
simply can't use the application (an interface that use the OLTP Instance)".
When I stop the synchronization for the subscriber and stop the log reader
agent, then everything runs normal and nobody calls me.

During that slow performance period I closely watch server using Performance
Monitor and using counters such as "read\write\avg queue length", "disk
time", "page life expectancy", "cache hit ratio" etc. I don't see any
bottlenecks.

This is really about the Replication, otherwise users would still complain
about the performance when I drop it, but they don't. They say "performance
is good now".

So I think the Log Reader Agent which runs on the ServerB just can't
transfer log records from the ServerA to ServerB because ServerB has only one
RAID5 and every database related stuff runs on it despite ServerA has 3
separate RAID arrays.

Thanks,
Joe

"Hilary Cotter" wrote:

> I kind of doubt it.
>
> I would run perf mon and study your disk times. If either are over 50-55%
> you are in trouble. If the disk latencies are consistently high and over 2%
> the number of disks you are possibly in trouble. Basically you are going to
> disk a lot and you need to find out why. Then you need to check your disk
> response times to ensure they are below 50 ms.
>
> Also check you disk read to write % to ensure that they are both 20% writes
> or less.
>
> There's lots more counters you can look at for analysis, but I would start
> there. If they are high check your memory counters (cache hit ration, page
> life expectency) to ensure that you don't have a memory pressures which are
> causing high disk io.
>
> Pal is a good tool overall to give you an idea to see if your workload is
> too much for your hardware. If it raises a lot of alerts you need to review
> the alerts to see if they are significant.
>
>
> "Joe" wrote in message
>
> > Last night, while I was sleeping I think I found the problem.
> >
> > I think I was just looking for the problem at the wrong place.
> >
> > Here's the environment:
> > - ServerA is the Publisher (OLTP)
> > - ServerB is the Subscriber and Distributor. (Reporting server)
> >
> > ServerA' s hardware:
> > 8 core, 12GB RAM, RAID5 for the data file, RAID1 for the Log, RAID1 for
> > the
> > TEMPDB
> >
> > ServerB' s hardware:
> > 8 core, 12GB RAM, RAID5 for data file, log file, tempdb, distributor.
> >
> > And I just was running the Performance Monitor against the ServerA and
> > never
> > thought the problem could be about the ServerB. But last night I
> > remembered
> > about the distributor. The workload on the ServerA' s physical disk would
> > occur to the disk where the distributor and replicated database are. I
> > just
> > missed this point... So I think this is where the problem occurs. As the
> > arrays of ServerA is much more powerful than the ServerB' s, I'll put the
> > distributor database on ServerA' s disks.
> >
> > Do you think I should separate the data and log files of distributor
> > database on the ServerA' s RAID5 and RAID1? What could be a better
> > implementation in terms of the distributor and according to the hardware
> > listed above?
> >
> > Thanks indeed,
> > Joe
> >
> >
> > "Hilary Cotter" wrote:
> >
> >> replication should have a very low impact on the instances it is running
> >> on.
> >> This really depends on your workload and hardware as you point out.
> >>
> >> What sort of performance degradation are you seeing and have you done any
> >> sort of bottle neck analysis to pinpoint the exact cause.
> >>
> >> Also you might want to look at a remote distributor if you are using
> >> transactional replication.
> >>
> >> "Joe" wrote:
> >>
> >> > Hello!
> >> >
> >> > Would you reckon with a performance problem when you set up a
> >> > Transactional
> >> > Replication for your database?
> >> >
> >> > We had too much trouble with performance when we set it up. Is this
> >> > something expected? I know it depends on the hardware and workload from
> >> > the
> >> > users, but we weren't expecting a huge impact like this.
> >> >
> >> > Do you have some tips to make Transactional Replication work
> >> > performance-free problems?
> >> >
> >> > Thank you,
> >> > Joe
>
>
 >> Stay informed about: Transactional Replication - Performance Problem 
Back to top
Login to vote
Hilary Cotter3

External


Since: Aug 28, 2004
Posts: 458



(Msg. 6) Posted: Fri Jan 02, 2009 12:46 pm
Post subject: Re: Transactional Replication - Performance Problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Joe, something does not seem right here. Contact me offline if you want me
to look at it with you.


"Joe" wrote in message

> Users of OLTP server complain about performance degradation and they say
> "we
> simply can't use the application (an interface that use the OLTP
> Instance)".
> When I stop the synchronization for the subscriber and stop the log reader
> agent, then everything runs normal and nobody calls me.
>
> During that slow performance period I closely watch server using
> Performance
> Monitor and using counters such as "read\write\avg queue length", "disk
> time", "page life expectancy", "cache hit ratio" etc. I don't see any
> bottlenecks.
>
> This is really about the Replication, otherwise users would still complain
> about the performance when I drop it, but they don't. They say
> "performance
> is good now".
>
> So I think the Log Reader Agent which runs on the ServerB just can't
> transfer log records from the ServerA to ServerB because ServerB has only
> one
> RAID5 and every database related stuff runs on it despite ServerA has 3
> separate RAID arrays.
>
> Thanks,
> Joe
>
> "Hilary Cotter" wrote:
>
>> I kind of doubt it.
>>
>> I would run perf mon and study your disk times. If either are over 50-55%
>> you are in trouble. If the disk latencies are consistently high and over
>> 2%
>> the number of disks you are possibly in trouble. Basically you are going
>> to
>> disk a lot and you need to find out why. Then you need to check your disk
>> response times to ensure they are below 50 ms.
>>
>> Also check you disk read to write % to ensure that they are both 20%
>> writes
>> or less.
>>
>> There's lots more counters you can look at for analysis, but I would
>> start
>> there. If they are high check your memory counters (cache hit ration,
>> page
>> life expectency) to ensure that you don't have a memory pressures which
>> are
>> causing high disk io.
>>
>> Pal is a good tool overall to give you an idea to see if your workload is
>> too much for your hardware. If it raises a lot of alerts you need to
>> review
>> the alerts to see if they are significant.
>>
>>
>> "Joe" wrote in message
>>
>> > Last night, while I was sleeping I think I found the problem.
>> >
>> > I think I was just looking for the problem at the wrong place.
>> >
>> > Here's the environment:
>> > - ServerA is the Publisher (OLTP)
>> > - ServerB is the Subscriber and Distributor. (Reporting server)
>> >
>> > ServerA' s hardware:
>> > 8 core, 12GB RAM, RAID5 for the data file, RAID1 for the Log, RAID1 for
>> > the
>> > TEMPDB
>> >
>> > ServerB' s hardware:
>> > 8 core, 12GB RAM, RAID5 for data file, log file, tempdb, distributor.
>> >
>> > And I just was running the Performance Monitor against the ServerA and
>> > never
>> > thought the problem could be about the ServerB. But last night I
>> > remembered
>> > about the distributor. The workload on the ServerA' s physical disk
>> > would
>> > occur to the disk where the distributor and replicated database are. I
>> > just
>> > missed this point... So I think this is where the problem occurs. As
>> > the
>> > arrays of ServerA is much more powerful than the ServerB' s, I'll put
>> > the
>> > distributor database on ServerA' s disks.
>> >
>> > Do you think I should separate the data and log files of distributor
>> > database on the ServerA' s RAID5 and RAID1? What could be a better
>> > implementation in terms of the distributor and according to the
>> > hardware
>> > listed above?
>> >
>> > Thanks indeed,
>> > Joe
>> >
>> >
>> > "Hilary Cotter" wrote:
>> >
>> >> replication should have a very low impact on the instances it is
>> >> running
>> >> on.
>> >> This really depends on your workload and hardware as you point out.
>> >>
>> >> What sort of performance degradation are you seeing and have you done
>> >> any
>> >> sort of bottle neck analysis to pinpoint the exact cause.
>> >>
>> >> Also you might want to look at a remote distributor if you are using
>> >> transactional replication.
>> >>
>> >> "Joe" wrote:
>> >>
>> >> > Hello!
>> >> >
>> >> > Would you reckon with a performance problem when you set up a
>> >> > Transactional
>> >> > Replication for your database?
>> >> >
>> >> > We had too much trouble with performance when we set it up. Is this
>> >> > something expected? I know it depends on the hardware and workload
>> >> > from
>> >> > the
>> >> > users, but we weren't expecting a huge impact like this.
>> >> >
>> >> > Do you have some tips to make Transactional Replication work
>> >> > performance-free problems?
>> >> >
>> >> > Thank you,
>> >> > Joe
>>
>>
 >> Stay informed about: Transactional Replication - Performance Problem 
Back to top
Login to vote
Joe111

External


Since: Aug 19, 2004
Posts: 70



(Msg. 7) Posted: Mon Jan 05, 2009 3:22 am
Post subject: Re: Transactional Replication - Performance Problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thank you for your interest Hilary, I appreciate it; however I'm too far away
from you and I guess my new thread may give you a clue about this performance
problem.

Joe

"Hilary Cotter" wrote:

> Joe, something does not seem right here. Contact me offline if you want me
> to look at it with you.
 >> Stay informed about: Transactional Replication - Performance Problem 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Combining Transactional Replication and Merge Replication - I would like to know if this scenario is possible: I have main database (Server A) that I replicate to another server using transactional replication (Server B), know I would like to publish this database on Server B as a merge publication and then...

Transactional Replication - I had 3 servers 2 transactional servers and one is main server i.e., Multiple Publishers and Single Subscriber A(TRANS SERVER) B(TRANS SERVER) C(MAIN SERVER) I HAD CONFIGURED TRANSACTION REPLICATION A TO C AND B TO C In these servers i had taken on...

Can you have transactional replication of blobs? - I am having an issue using transactional replication on a SQL 2005 SP2 system when trying to replicate an Image data type. The data won't write to the Prod system, let alone replicate. However, when I remove the table from the publication everything..

Bidirectional Transactional replication - Hi All Do any one know where to get good Knowledge resources for writing and implementing stored procedures for bidirectional transactional replication. I f any body has one implemented recently can you spare the steps involved and the best practises....

UDFs & Transactional Replication - I created a UDF... create FUNCTION dbo.WhatLocationIsThis() RETURNS numeric AS begin declare @return as numeric SELECT @return = Location FROM storemain..tblLocationTable return @return end GO When I run 'select dbo.WhatLocationIsThis()' it..
   Database Help (Home) -> Replication All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]