Very new to load balancing here and doing my research before making the plunge. Right now I have a single server running Drupal 7. It’s using complex mysql queries and hosts a large amount of user uploaded images. To prepare for the future and continued expansion I’m looking at the following setup. Wondering if this makes sense, and any suggestions on tools to get the job done:
Public | Application (Private) | Database (Private) |
---|---|---|
Load Balancer | Drupal Droplet Master | Mysql Droplet |
Drupal Droplet Clone |
##My thoughts here:
##Quick Questions:
##Looking for guidance here:
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.
With just two nodes lsyncd might be a better option as it would provide quicker access to files since everything will be stored locally. GlusterFS may make things easier once you have 3 or more nodes and would also allow you to make more efficient use of your available space across nodes.
This approach would work but you would need to configure a method to increase space that will both spin up the new node from a snapshot and update nginx so that traffic is routed to it (or if using the DO load balancer service you could do this via the API).
Using object storage like S3 or DigitalOcean Spaces would be a viable solution here that should reduce the requirements on your nodes and would not need to set up some type of live redundancy of your files since you would reference the object storage directly.
Thanks, ended up using added a DO volume to the DB server and used NFS mount for the static files on each WEB server…thinking this is the simplest solutions…still testing performance.
Lsyncd works great and is allowing multiple nodes with a quick setup.