Home > Storage > ObjectScale and ECS > Product Documentation > Dell ECS with NGINX (OpenResty) > Global load balancing example
When deploying ECS in a multi-site environment, global load balancing is recommended. This example describes a sample utilization of OpenResty as a global load balancer. As a best practice, a highly redundant environment is recommended for the global load balancer and on each site to prevent single point of failures. However, in this example (Figure 67), for simplicity, a single OpenResty is deployed as the global load balancer which points to two site load balancers. The site load balancers forward requests to two different ECS systems which are geo-federated and configured as a single replication group. This example only provides details for handling S3 requests using the S3 Browser.
To optimize reads and writes for ECS in a geo-replicated environment, the Dell DevOps team has developed a geo-pinning Lua script. They have also developed some health check scripts to validate the upstream servers. This section describes the scripts and configuration files to deploy OpenResty with two ECS in a global environment.