MongoDB replication issue

Hi,

I configured MongoDB replication with one primary and two secondaries in AWS EC2 instances.

I noticed one of the secondary members is not syncing with primary and replication delay is continuously increasing.

MongoDB version is 6.0.5 community edition
OS version: Red Hat Enterprise Linux release 8.10 (Ootpa)

Could you please provide your support to resolve this issue.

Regards,
Satya

Hi @satya_dommeti,
Based on what you wrote, I would check for network latency issues.

Regards

It is possible the secondary has fallen too far behind and requires an Initial Sync.

To check if this is the case look in the secondary’s log file for the following:
Too stale to catch up. Entering maintenance mode The message contains a link on how to perform and initial sync.

https://www.mongodb.com/docs/manual/tutorial/resync-replica-set-member/

3 Likes