积极答复者
请教下alwayson同步流程的疑问

问题
答案
-
Hi database_noob,
>>比如6个节点的alwayson,其中有一台机器的数据库状态不可用,变为RECOVERY_PENDING,这是主库还在正常备份日志,这时主库上的日志会截断吗,如果那台问题的辅库一直不处理,主库的日志是不是会越来越大?如果过了一天那台辅库的机器处理完毕,能够正常同步,同步的日志还是从主库上传来的吗
你的理解是正确的,如果辅助数据库的状态一直是recovery_pending,导致主要副本的日志发送不过去,日志就一直不会截断,即使是做了日志备份。主副本的日志会变得越来越大,所以建议先将有问题的辅助副本移除ag,处理好了在添加回去。
辅助副本处理好了,能正常同步了,日志还是会按照顺序从主要副本上传送过去。是有个flag标记在主要副本的日志中,表明从这开始的日志的记录还未发送到次要副本上。
Best regards,
Dedmon Dai
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com- 已建议为答案 Dedmon DaiMicrosoft contingent staff 2019年11月21日 7:59
- 已标记为答案 database_noob 2019年11月21日 8:23
全部回复
-
Hi database_noob,
>>比如6个节点的alwayson,其中有一台机器的数据库状态不可用,变为RECOVERY_PENDING,这是主库还在正常备份日志,这时主库上的日志会截断吗,如果那台问题的辅库一直不处理,主库的日志是不是会越来越大?如果过了一天那台辅库的机器处理完毕,能够正常同步,同步的日志还是从主库上传来的吗
你的理解是正确的,如果辅助数据库的状态一直是recovery_pending,导致主要副本的日志发送不过去,日志就一直不会截断,即使是做了日志备份。主副本的日志会变得越来越大,所以建议先将有问题的辅助副本移除ag,处理好了在添加回去。
辅助副本处理好了,能正常同步了,日志还是会按照顺序从主要副本上传送过去。是有个flag标记在主要副本的日志中,表明从这开始的日志的记录还未发送到次要副本上。
Best regards,
Dedmon Dai
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com- 已建议为答案 Dedmon DaiMicrosoft contingent staff 2019年11月21日 7:59
- 已标记为答案 database_noob 2019年11月21日 8:23
-
如果我的回复帮助到了你,能否将它标记为答案,方便有类似问题的人更快地看到答案,感谢你对论坛地支持。
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com