Fault-tolerant website with load balancing via a Yandex Network Load Balancer
In this tutorial, you will learn how to create a fault-tolerant website with load balancing. You will create a Yandex Virtual Private Cloud network, deploy a Yandex Compute Cloud instance group, and configure load balancing between two availability zones to protect your website against failures using Network Load Balancer.
For the website, you will use the LAMP
Note
Each VM in the instance group has its own independent MySQL® database, with no data replication between them. If you write data to one VM, that data might not be available on your next request as the load balancer may route your request to another VM. Use an external managed service, such as Yandex Managed Service for MySQL®, to store shared data.
You can create the infrastructure for your website using one of these tools:
- Management console: Create your infrastructure step by step from the Yandex Cloud management console.
- Terraform: Streamline creating and managing your resources using the infrastructure as code (IaC) approach. Download a Terraform configuration example and then deploy the infrastructure using the Yandex Cloud Terraform provider.