Mongodb on Kubernetes failing due to network issues

November 22, 2019 335 views
MongoDB Networking Kubernetes DigitalOcean Managed Kubernetes

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.

  • 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.


    John Kwiatkoski
    Senior Developer Support Engineer

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

1 Answer
Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!