Question

How to use a load balancer for multiple Parse Servers?

Right now we have just one droplet hosting a Parse Server (2.8.4) and a Parse Dashboard (1.2.0). The Parse Server uses the built-in sessions, installations, cloud code, and config and uses MongoDB, which is hosted in another droplet.

What I want to do now, is to add a load balancer, the one DigitalOcean offers, and one extra droplet for another Parse Server. I am completely clueless as to how to do it; I’ve never used a load balancer before.

Could someone please walk me through the process?

Subscribe
Share

Submit an 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.

Hello,

What you could do is:

  • First, create your second Parse Server. You could for example create the server from a snapshot or a backup of your current server:

https://docs.digitalocean.com/products/images/snapshots/how-to/create-and-restore-droplets

  • Once you have your second server up and running, you can create your load balancer as per the instructions here:

https://docs.digitalocean.com/products/networking/load-balancers/how-to/create/

  • Next, once you have your Load Balancer ready, you can add your Droplets to the Load Balancer by following the steps here:

https://docs.digitalocean.com/products/networking/load-balancers/how-to/manage/

Then when you visit your Load Balancer’s IP address your traffic will be load balanced between your two Parse Server Droplets.

For a quick introduction on how load balancing works I could suggest the following tutorial:

https://www.digitalocean.com/community/tutorials/what-is-load-balancing

Hope that this helps!

Best,

Bobby