Title: Preparing for load balancing
Last modified: November 28, 2022

---

# Preparing for load balancing

 *  [3rn1z](https://wordpress.org/support/users/3rn1z/)
 * (@3rn1z)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/preparing-for-load-balancing/)
 * Hello everyone,
 * I’m doing a little project, trying to setup load balancing on wordpress servers.
   The main thing that is blocking my way is the permalinks, because all permalinks
   will always redirect me to one server instead of, unless I make my page link 
   to be load balancer link, then I would not be able to make any changes without
   installing legacy editor plugin.Also it would probably make website editor unaccessable
   if the first server is down.
    Is the tradeoff worth it, or is there any way to
   actually make wordpress fully work on multiple servers that have their databases
   synced in multi-master.
    -  This topic was modified 3 years, 6 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [George Appiah](https://wordpress.org/support/users/gappiah/)
 * (@gappiah)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/preparing-for-load-balancing/#post-16238564)
 * “Load balancing” can take many different forms, depending on what specific problem
   you’re trying to solve. And the setup will differ as a result.
 * For instance, in the image below, there’s a dedicated load-balancing server in
   front of two web servers that run the application (WordPress), both of which 
   connect to the same database server and offload their media uploads to the same
   external storage provider (eg AWS S3). The database server may be a single, stand-
   alone server… or it may be a single master server **_replicated_** to one or 
   more slave servers.
 * **Your architecture may be completely different from this!**
 * ![](https://i0.wp.com/i.snipboard.io/FpJPKs.jpg?ssl=1)
 * > or is there any way to actually make wordpress fully work on multiple servers
   > that have their databases synced in multi-master.
 * WordPress does not natively support connecting to multiple database servers. 
   For that, you’re going to need a little help from a plugin like HyperDB — from
   Automattic, the folks behind WordPress.com: [https://wordpress.org/plugins/hyperdb/](https://wordpress.org/plugins/hyperdb/)
 *  Thread Starter [3rn1z](https://wordpress.org/support/users/3rn1z/)
 * (@3rn1z)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/preparing-for-load-balancing/#post-16238620)
 * OK thank you,
 * my “load balancing” project at this moment will be reverse proxy that redirects
   all incoming traffic to VPS servers that have wordpress. I wanted to use single
   database for this project, but in fact realised that I need to remove some points
   of failure, and that one database was one of them. So my system right now would
   look like this: 2 dedicated servers using same floating ip with BGP, atleast 
   3 backend VPS servers with wordpress and multi-master database setup. Setting
   up the display address would kinda solve my issue because the servers would still
   be loaded kinda same. I’m about to test this thing and will see what happens 
   if I turn off first server that was the main one for all others. I’ll update 
   this post with the results.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Preparing for load balancing’ is closed to new replies.

## Tags

 * [question](https://wordpress.org/support/topic-tag/question/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [3rn1z](https://wordpress.org/support/users/3rn1z/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/preparing-for-load-balancing/#post-16238620)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
