AG SECONDARY DATABASE "Synchronizing" Query

The query below will tell us how much of the REDO log needs to harden in the secondry replica of secondary database. Run the query in SECONDARY REPLICA. If the "redo_queue_size" in KB value reducing means the database soon will come into "Synchronized"state have patience and wait for it.


select is_primary_replica,synchronization_state_desc,
is_commit_participant,synchronization_health_desc,
redo_queue_size
from  sys.dm_hadr_database_replica_states

Comments

Popular posts from this blog

System.Data.SqlClient.SqlException (0x80131904): Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding. ---> System.ComponentModel.Win32Exception (0x80004005): The wait operation timed out

Pre login Handshake or Connection Timeout Period

Always On FailOver Events