Setting up a load balanced Wordpress




Geniuswp show

Summary: Reviewed on 09 February 2022 • Published on 08 April 2019computeserverCloudWordpressLoad-BalancerLoad Balancer OverviewThe capacity of a single server is limited. Once a website gains more and more attraction the instance serving the site comes to a point where it can not handle any more users. The website starts to slow down or even become unavailable as the server goes down from the traffic.This is the point where a Load Balancer enters the game. It allows to spread the “load” that all those visitors and their requests create to be “balanced” over a series of different Instances.In case of increasing load on a setup, capacity can easily be increased by adding more Instances to the load balancers backend. This allows to scale your infrastructure without any downtime or delays whilst waiting for DNS zones to be updated.In this tutorial you learn how to setup a Scaleway managed Load Balancer with two Wordpress Instances and one Database Instance running MariaDB. The final setup is visible in this schema: Requirements: You have an account and are logged into the Scaleway consoleYou have configured your SSH keyPrework - Setting up the Backend InstancesDuring the tutorial the following IPs are used:10.45.2.3 for the first Wordpress instance10.45.2.4 for the second Wordpress instance10.46.5.6 for the MariaDB instance51.51.51.51 for the Load Balancer front-end IPLoad Balancer supports private IPs of Scaleway Instances for backend servers, allowing you to deploy Instances without public IPv4.Follow this tutorial to start an Ubuntu Instances and to install WordPress with LEMP on both of them.Set up a third instance with a MariaDB database as explained in this tutorial.Configuring a Load BalancerClick Load Balancer in the menu on the left, to enter the Load Balancer section, then click + Create a Load Balancer:Enter the Name of the Load Balancer, optionally you can enter a description and tags to simplify the management of them. Choose the Region for the Load Balancer (it should be the same region as the geographical region of your Instances), a new IP address is allocated automatically.Create a frontend rule for the Load Balancer. This rule specifies on which external port the service will listen on the load balanced IP address. As Wordpress is a web based application, specify the Port 80 and a name for the rule:Configure a backend rule, this rule defines the backend infrastructure that will be load balanced.The following parameters should be configured in the backend rule:ParameterDescriptionBackend NameA name for the backend rule (e.g. wordpress-backend-rule)ProtocolThe protocol to use. Set this value to HTTP, to have access to HTTP specific features of the Load Bala... You are listening to the topic about "Setting up a load balanced Wordpress", if you want to read the full article, please visit https://geniuswp.com or the link in the description.