AlwaysOn Maintenance Jobs

Rebuild Index-


Rebuild index is resource intensive task and if we are rebuilding index in always on databases we need  to be extra careful as it will replicate all this changes to secondary replicas 
 
To minimize this impact we can follow some best practices 

1.Rather then running rebuild index on all the index at a time,We can check for index which are fragmented more than 30% and rebuild, If fragmentation is less then 30% we can reorganize the index 

2.Log file size may grow big during this activity we should monitor log file growth to understand the behavior

3. We can switch from synchronous to asynchronous mode to  improve the performance in primary replica during the rebuild to avoid  wait till the time it receives acknowledgement from secondary replica to commit the changes 




Comments

Popular posts from this blog

How to read MSDTC Trace logs

CDC Monitoring

Error - Exclusive access could not be obtained because the database is in use. Msg 3101, Level 16, State 1, Line 3 Exclusive access could not be obtained because the database is in use. Msg 3013, Level 16, State 1, Line 3 RESTORE DATABASE is terminating abnormally.