all groups > sql server replication > october 2004 >
You're in the

sql server replication

group:

replication performance


replication performance Hassan
10/30/2004 10:27:57 PM
sql server replication:
We currently use log shipping as a means of reporting for users to query off
of on the secondary hence eliminating ad hoc querying on the live OLTP
server

Problem with log shipping is obvious..Users are kicked off when logs are
being restored.

So if we do use replication for each and every table out there and all OLTP
databases, are there any performance hits on these publishers.. either from
a CPU/IO/Mem ...We would like to setup transactional replication. Like to
know if this is worth implementing or should we just use log shipping if
there are performance concerns to using replication on the publishers

Thanks

Re: replication performance Mike Epprecht (SQL MVP)
10/31/2004 6:45:15 AM
Hi

With replication, you will experience the issue of locking and blocking.

Every 1/5/15 minutes (or whatever your interval is), you will get a flurry
of activity on your reporting DB as the changes are applied.
This performance hit spills back into the distribution DB, and might have an
impact on your production DB.

How often do you need to refresh your data?

Regards
--------------------------------
Mike Epprecht, Microsoft SQL Server MVP
Zurich, Switzerland

IM: mike@epprecht.net

MVP Program: http://www.microsoft.com/mvp

Blog: http://www.msmvps.com/epprecht/

[quoted text, click to view]

Re: replication performance Hassan
10/31/2004 10:32:02 AM
Since the log reader agent reads off the log file, I am assuming that
replication never touches any base tables on the publisher directly ..right
? This is transactional replication and if I did want to use it, my
frequency would be in continuous mode...Please advice..


[quoted text, click to view]

Re: replication performance Hilary Cotter
10/31/2004 11:12:09 AM
The performance impact is a function of your hardware, the frequency and
polling interval of your log reader and distribution agents, the number of
transactions and how many rows are affected by each of these transactions.

Set up correctly there will be minimal locking/blocking while using
replication.

[quoted text, click to view]

Re: replication performance Hilary Cotter
10/31/2004 4:25:29 PM
That depends on what you mean by touching the tables.

While your snapshot is generated the tables will be read. You can use the
concurrent option which will minimize locking while the snapshot is been
generated.

Other than that the base tables are not modified or read.

There may be some blocking/locking if your server is under heavy load, which
might be what Mike Epprecht is referring to.

In this case you need to use a remote distributor to minimize it.

[quoted text, click to view]

Re: replication performance Hassan
11/1/2004 6:08:09 PM
But that blocking/locking if any is on the distributor right and not on the
publishing dbs ?

[quoted text, click to view]

Re: replication performance Hilary Cotter
11/2/2004 8:12:59 AM
Yes, that is my experience.

Replication will put a load on your system as a whole. Typically the load
will not be significant. You can get an idea of the added load by stopping
your distribution and log reader agents and see how CPU usage (for one)
declines.

--
Hilary Cotter
Looking for a SQL Server replication book?
http://www.nwsu.com/0974973602.html


[quoted text, click to view]

AddThis Social Bookmark Button