{"id":63,"date":"2022-02-08T10:16:07","date_gmt":"2022-02-08T10:16:07","guid":{"rendered":"http:\/\/oraclas.dk\/?p=63"},"modified":"2022-02-08T10:16:07","modified_gmt":"2022-02-08T10:16:07","slug":"allways-on-falls-behind","status":"publish","type":"post","link":"https:\/\/oraclas.dk\/index.php\/2022\/02\/08\/allways-on-falls-behind\/","title":{"rendered":"Allways on falls behind"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">When using Allways On with asyncron secondary server, the secondary server sometimes fall behind if lots of changes on primary server. But how far behind? I am using this command to get a picture of the status. The command is executed on primary server.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">select recovery_lsn<br>,truncation_lsn<br>,last_hardened_lsn<br>,last_received_lsn<br>,last_redone_lsn<br>,last_redone_time<br>from sys.dm_hadr_database_replica_states<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>When using Allways On with asyncron secondary server, the secondary server sometimes fall behind if lots of changes on primary server. But how far behind? I am using this command to get a picture of the status. The command is executed on primary server. select recovery_lsn,truncation_lsn,last_hardened_lsn,last_received_lsn,last_redone_lsn,last_redone_timefrom sys.dm_hadr_database_replica_states<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[11],"class_list":["post-63","post","type-post","status-publish","format-standard","hentry","category-scripts-using-for-maintenance","tag-allways_on","entry"],"_links":{"self":[{"href":"https:\/\/oraclas.dk\/index.php\/wp-json\/wp\/v2\/posts\/63","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oraclas.dk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/oraclas.dk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/oraclas.dk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oraclas.dk\/index.php\/wp-json\/wp\/v2\/comments?post=63"}],"version-history":[{"count":1,"href":"https:\/\/oraclas.dk\/index.php\/wp-json\/wp\/v2\/posts\/63\/revisions"}],"predecessor-version":[{"id":65,"href":"https:\/\/oraclas.dk\/index.php\/wp-json\/wp\/v2\/posts\/63\/revisions\/65"}],"wp:attachment":[{"href":"https:\/\/oraclas.dk\/index.php\/wp-json\/wp\/v2\/media?parent=63"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oraclas.dk\/index.php\/wp-json\/wp\/v2\/categories?post=63"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oraclas.dk\/index.php\/wp-json\/wp\/v2\/tags?post=63"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}