I’m running and MongoDB replica set on a kubernetes cluster (3 nodes) and on a regular basis of about 1 a day I get errors that indicating that networking between the 3 nodes has failed which results in errors such as Ending connection to host due to bad connection status and none of the nodes can see each other resulting in the replica set failing.

I’ve made sure that there is no issues with the pods running mongo i.e they are not restarting due to errors or lack of resources so I’m bit lost as not sure there anything I can do to fix networking issues between nodes.

2 comments
  • Hi there!

    Thank you for contacting DigitalOcean! What size nodes are you using? This can often times occur on small nodes if they are overcommitted. Did they ever work or does this issue happen repeatedly without success.

    Regards,

    John Kwiatkoski
    Senior Developer Support Engineer

  • Yes looks like it was the use of small nodes.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer