recovery - How can I know when MongoDB recovering will end -


as per title, have replicaset 1 primary, 1 secondary , 1 arbiter, restored big db in primary , faster instance secondary. secondary lagging lot (hours) , it's in recovery status since hours. can something? can know recovery progress?

i'll answer second question first. "can know recovery progress?" yes, may connect replica set primary , execute rs.status command see status of each member in rs. refere statestr field of output denote friendly name of status code. indicative of progress of recovery.

in title asked if can know when end. that's lot harder. there no way know "exactly" when secondary finish synching member.

regarding "can something?"; yes nothing give exact answer desire know when replication end. refer rs.status output , check optime field , compare secondary member , member synchronizing in case primary. provide "some" insight how far apart 2 servers apart. however, alone not exact , other factors can affect actual time take catch up. not tell done @ particular time.

also; head markus mahlberg's advice if in use case servers not of equal quality. , many other factors can contribute replication lag including disk io issues, network latency including cross data center factors. there no clear cut answer here.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -