0

In a PSS architecture ?

Question1 Are there a possibilities to get estimation of replication state change from ?

<STARTUP> To <RECOVERING>
<STARTUP> or <RECOVERING> To <ROLLBACK>   
<ROLLBACK> To <SECONDARY>

We can set the time for below state change.

<SECONDARY> To <PRIMARY>

Question2? In what conditions following state change will happen ?

<STARTUP> To <ROLLBACK>    
<RECOVERING> To <ROLLBACK>

Please help me understand I'm not sure if there are situations for above 2 or only either of 2 will likely to happen.

7
  • 1
    Try rs.printSecondaryReplicationInfo(), returns a InitialSyncRemainingEstimatedDuration Mar 16 at 13:42
  • I see only 2 optionsmongo9999:RECOVERING> rs.print `rs.printReplicationInfo( rs.printSlaveReplicationInfo('
    – unknown
    Mar 16 at 14:14
  • mongo9999:STARTUP2> rs.printSecondaryReplicationInfo() 2022-03-16T07:37:17.716-0700 E QUERY [main] TypeError: rs.printSecondaryReplicationInfo is not a function : @(shell):1:1
    – unknown
    Mar 16 at 14:37
  • 1
    Strange, nothing documented that it is a new function. Maybe it works only if the node is already in SECONDARY. Do you get anything from rs.status().initialSyncStatus? Mar 16 at 14:41
  • 1
    Which version do you run? initialSyncStatus was added in release 4.2.1 I guess you have a problem on your deployment. Did you have a look at mongod log file? Mar 16 at 15:27

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.