Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

AlwaysOn performance on Replica databases Expand / Collapse
Author
Message
Posted Thursday, September 26, 2013 9:08 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Yesterday @ 1:33 AM
Points: 47, Visits: 336
I am looking into AlwaysOn Availabilty Groups as both an HA and load spreading solution. But there is something I would like to clarify before I present to management.

Our production databases suffer from lots of blocking and deadlocks. Will this resource contention be "replicated" on the replica databases when the logs are applied? I'd like to offload many of the read operations (adhoc reports, etc.) to the replicas but don't just want to end up in the same situation as I am in now.

Thanks for any help.

Tom

p.s. - work is underway to address deadlocking, but it won't be fixed any time soon
Post #1498909
Posted Thursday, September 26, 2013 9:15 AM


SSC-Forever

SSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-ForeverSSC-Forever

Group: General Forum Members
Last Login: Yesterday @ 4:08 PM
Points: 40,177, Visits: 36,580
http://www.sqldiablo.com/2012/08/01/alwayson-availability-groups-isolation-levels-selects-blocking-writers/


Gail Shaw
Microsoft Certified Master: SQL Server 2008, MVP
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

We walk in the dark places no others will enter
We stand on the bridge and no one may pass

Post #1498913
Posted Thursday, September 26, 2013 3:47 PM


SSCarpal Tunnel

SSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal Tunnel

Group: General Forum Members
Last Login: Yesterday @ 1:14 PM
Points: 4,400, Visits: 6,259
Thomas Mucha (9/26/2013)
I am looking into AlwaysOn Availabilty Groups as both an HA and load spreading solution. But there is something I would like to clarify before I present to management.

Our production databases suffer from lots of blocking and deadlocks. Will this resource contention be "replicated" on the replica databases when the logs are applied? I'd like to offload many of the read operations (adhoc reports, etc.) to the replicas but don't just want to end up in the same situation as I am in now.

Thanks for any help.

Tom

p.s. - work is underway to address deadlocking, but it won't be fixed any time soon


It has been my experience consulting with numerous clients that deadlocks and blocking are most often rather easily addressed by proper indexing and it usually isn't very hard to figure out what index(es) to put where to accomplish the objectives.

Personally, given the hardware and licensing costs (and quite possibly consulting costs if you get help to get AGs done up right) to do SQL 2012 EE AGs, I would REALLY recommend doing a tuning exercise FIRST. It is quite possible that you can kill FOUR birds with one stone: faster queries, less blocking AND fewer deadlocks AND saving money because you won't NEED new hardware/EE licenses.


Best,

Kevin G. Boles
SQL Server Consultant
SQL MVP 2007-2012
TheSQLGuru at GMail
Post #1499091
Posted Friday, September 27, 2013 9:29 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Yesterday @ 1:33 AM
Points: 47, Visits: 336
TheSQLGuru (9/26/2013)

It has been my experience consulting with numerous clients that deadlocks and blocking are most often rather easily addressed by proper indexing and it usually isn't very hard to figure out what index(es) to put where to accomplish the objectives.

Personally, given the hardware and licensing costs (and quite possibly consulting costs if you get help to get AGs done up right) to do SQL 2012 EE AGs, I would REALLY recommend doing a tuning exercise FIRST. It is quite possible that you can kill FOUR birds with one stone: faster queries, less blocking AND fewer deadlocks AND saving money because you won't NEED new hardware/EE licenses.


Thanks for the reply. I didn't fully explain the scenario, sorry

Hardware and licenses aren't really an issue as we will be using existing SQL instances that are currently logshipping secondaries. And, as mentioned, we are addressing the performance issues at source. This is legacy code, rife with nested cursors and repetitive/overlapping queries, that is being slowly reworked. Index tuning and maintenance is one of my main tasks which I carry out on a weekly basis.

The implementation of availability groups is being planned as part of a wider improvement to high availability and disaster recovery. And, I thought it would be advantageous to further take advantage of the ability to perform read-only tasks (backups, some reporting) from the secondary servers. it is just likely that AG will be implemented before the code rewrite. So I didn't want to make outlandish promises if the secondary databases will run into the same blocking/deadlocking problems as the primary ones.

I hope this makes sense.

Tom
Post #1499464
Posted Friday, September 27, 2013 9:30 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Yesterday @ 1:33 AM
Points: 47, Visits: 336
Thanks for the link.
Post #1499465
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse