Report this

What is the reason for this report?

MongoDB Data replication between two servers when using Load Balancer.

Posted on September 8, 2020

I am using load balancer and 2-3 servers within it. I want to replicate the data(MongoDB) of one server to automatically. I using PHP(CodeIgniter)+MongoDB.

Please suggest me, how it can be done.

Thanks in advance!!



This textbox defaults to using Markdown to format your answer.

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

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.

Hi @logicalclass ,

Have you already taken a look at the mongoDB sharded cluster? https://docs.mongodb.com/manual/tutorial/deploy-shard-cluster/

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.