patternsqlMinor
AlwaysOn AG - CPU limitations
Viewed 0 times
cpulimitationsalwayson
Problem
I’ve been trying to find out if the same CPU limitations database mirroring has apply to Availability Groups. My guess is that the same limitations exists, given that Availability Groups was built on the same technology as Mirroring, so the following would still apply.
– 64 bit architectures: 1 global thread, 2 threads per mirrored databases and one additional thread for each mirrored database for every 4 processor cores.
Is this correct?
Thank you!
- Principal server: 1 global thread and 2 threads per each of the mirrored databases.
- Mirror server:
– 64 bit architectures: 1 global thread, 2 threads per mirrored databases and one additional thread for each mirrored database for every 4 processor cores.
Is this correct?
Thank you!
Solution
This is documented here on BOL: Thread Usage By Availability Groups. For redundancy purposes, here is the breakdown:
Other points to consider:
Other references:
AlwaysON - HADRON Learning Series: Worker Pool Usage for HADRON Enabled Databases
Monitoring SQL Server 2012 AlwaysOn Availability Groups Worker Thread Consumption
- 3 to 10 shared threads (but can increase depending on primary replica workload)
- (primary replica) 1 log capture thread per primary database
- (primary replica) 1 log send thread per secondary database
- (secondary replica) 1 redo thread for each secondary database
- (secondary replica) during a backup, holds a thread on the primary replica for the duration of the backup
Other points to consider:
- There is a shared pool of threads for hadr, and this is the max number of threads except 40 (so hadr worker thread pool could take a significant amount of threads)
- Idle threads (about 15 seconds of idle-ness) can be released back to the pool
Other references:
AlwaysON - HADRON Learning Series: Worker Pool Usage for HADRON Enabled Databases
Monitoring SQL Server 2012 AlwaysOn Availability Groups Worker Thread Consumption
Context
StackExchange Database Administrators Q#97220, answer score: 4
Revisions (0)
No revisions yet.