--- title: "Highly available deployments using load balancers" slug: "highly-available-deployments-using-load-balancers" tags: ["Local Development"] updated: 2025-10-20T19:58:01Z published: 2025-10-20T19:58:01Z canonical: "legacy-docs.strata.io/highly-available-deployments-using-load-balancers" --- > ## Documentation Index > Fetch the complete documentation index at: https://legacy-docs.strata.io/llms.txt > Use this file to discover all available pages before exploring further. # Highly available deployments using load balancers In this guide, you'll learn how to add a load balancer for high availability support. You can use the load balancers included below to complete this task. - [AWS Application Load Balancer](/docs/highly-available-deployments-using-load-balancers#aws-application-load-balancer) - [Prerequisites](/docs/highly-available-deployments-using-load-balancers#prerequisites) - [Steps](/docs/highly-available-deployments-using-load-balancers#steps) - [Nginx](/docs/highly-available-deployments-using-load-balancers#nginx) - [Prerequisites](/docs/highly-available-deployments-using-load-balancers#prerequisites-1) - [Steps](/docs/highly-available-deployments-using-load-balancers#steps-1) > [!NOTE] > **Note**: Maverics Docs are current with the newest Maverics release. Please contact [sales@strata.io](mailto:sales@strata.io) to ensure you are on the latest release. Additionally, if you are new to Maverics, please visit our [product capabilities](/) and [installation](/cloud/install) docs first. ## AWS Application Load Balancer ### Prerequisites - An AWS subscription. If you don't have a subscription, you can sign up for one [here](https://portal.aws.amazon.com/billing/signup#/start). - A VPC network. For this guide, we'll use the default one created. - At least two EC2 instances with the Maverics Orchestrator installed. ### Steps 1. Set up your load balancer on AWS, for more details see [Getting started with Application Load Balancers](https://docs.aws.amazon.com/elasticloadbalancing/latest/application/application-load-balancer-getting-started.html) in the AWS documentation. 2. Enable [sticky sessions](https://docs.aws.amazon.com/elasticloadbalancing/latest/application/sticky-sessions.html) on the load balancer. - By default, Strata recommends using the AWS cookie as a persistence mechanism. However, in some deployments, it may make sense to use the Maverics `maverics_session` cookie instead. 3. The final step is to update your DNS records to point to the load balancer instead of the Maverics Orchestrator. When this is done you should see all traffic for your user going to one Orchestrator instance because you've enabled the session stickiness. In the event that your Maverics Orchestrator goes down, the AWS load balancer will reroute traffic to the other Maverics Orchestrators that are attached to the load balancer. ## Nginx ### Prerequisites - Three server machines, two for the Maveric Orchestrator and one for the Nginx server. - 192.168.0.1 is the IP address of the Nginx server. - 192.168.0.2 and 192.168.0.3 are the IP addresses for the Maveric Orchestrator servers. ### Steps 1. Install Nginx using a package manager. ```plaintext sudo yum install -y epel-release && sudo yum install -y nginx ``` 1. Enable and start Nginx. ```plaintext sudo systemctl enable nginx && sudo systemctl start nginx ``` 1. Add a upstream block with the. In this example, our upstream server block would look like this. ```plaintext upstream myapp1 {       ip_hash; # Load balancer provided sticky session. http://nginx.org/en/docs/http/ngx_http_upstream_module.html#ip_hash       server 192.168.0.2;       server 192.168.0.3;       } ``` If you want to use the Maveric Orchestrator cookie to achieve sticky sessions, then your upstream server block will look like this. ```plaintext upstream myapp1 {    server 192.168.0.2;    server 192.168.0.3;     sticky cookie maverics_session; # Application provided sticky session. http://nginx.org/en/docs/http/ngx_http_upstream_module.html#sticky } ``` 1. Restart Nginx to load the new configuration. ```plaintext sudo systemctl restart nginx ``` 1. Update your DNS record to point to the Nginx server. After updating the DNS you will see the traffic load balancing between the machines you added in the upstream server block. You will also see that each client "sticks" to specific upstream server.