Yandex Cloud
Documentation
PresentationContact UsTry it for free
© 2026 Direct Cursus Technology L.L.C.
Tutorials
    • All tutorials
    • Architecture and protection of a basic web service
    • Cost analysis by resource using Object Storage
    • Obtaining the information you need to request the Russian Ministry of Digital Development to whitelist a resource
      • Configuring a fault-tolerant architecture in Yandex Cloud
        • Overview
        • Management console
        • Terraform
      • Autoscaling an instance group to process messages enqueued in Message Queue
      • Updating an instance group under load
      • Creating a budget trigger that invokes a function to stop a VM
      • Deploying a fault-tolerant architecture with preemptible VMs
      • Creating triggers that invoke functions to stop VMs and send Telegram notifications
  1. Basic infrastructure
  2. Fault tolerance and scaling
  3. Fault-tolerant website with load balancing via a Network Load Balancer
  4. Overview

Fault-tolerant website with load balancing via a Yandex Network Load Balancer

Written by
Yandex Cloud
Updated at November 9, 2026
View in Markdown

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 (Linux, Apache HTTP Server, MySQL®, PHP) or LEMP (Apache web server is replaced with Nginx) stack.

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.

Was the article helpful?

Previous
Configuring a fault-tolerant architecture in Yandex Cloud
Next
Management console
© 2026 Direct Cursus Technology L.L.C.