NGINX Full Version

借助 Keepalived 和弹性 IP 地址在 AWS 上实现 NGINX Plus 的高可用性

Part of the appeal of cloud computing is the promise of greater uptime. To achieve that, all parts of your architecture must be highly available, including the load balancer. Now you can achieve high availability (HA) for NGINX Plus on AWS with a new solution that combines keepalived and the AWS Elastic IP address feature.

Editor – Since the publication of this post, we have developed an additional solution that combines a highly available active‑active deployment of NGINX Plus with the AWS Network Load Balancer (NLB).

One widely used approach for HA on AWS is to put Elastic Load Balancer (ELB) in front of NGINX Plus instances. While this approach can be a good starting point, using ELB not only increases complexity and cost, but also imposes the following limitations:

To avoid these limitations, our solution eliminates ELB in favor of a combination of keepalived and an AWS Elastic IP address. An Elastic IP address is a single static IP address assigned to an active‑passive pair of NGINX Plus instances. If the primary NGINX Plus instance goes out of service, keeaplived automatically promotes the backup instance to primary and transfers the Elastic IP address to it as shown in the figure.

For more information, including step‑by‑step instructions, see our Deployment Guide. For information about on‑premises high availability of NGINX Plus, including a solution based on keepalived, see the NGINX Plus Admin Guide.

Editor – For details about our other solution for highly available NGINX Plus on AWS in combination with the AWS Network Load Balancer (NLB), see our Deployment Guide.

New to NGINX Plus on AWS? Try it free for 30 days. For links to the available AMIs, see Installing NGINX Plus AMIs on Amazon EC2.