简体   繁体   English

带有应用程序负载均衡器的 AWS 负载均衡服务器

[英]AWS Load Balancing Server with Application Load Balancer

Let's say If I am using my own application load balancer instead of an Elastic Load balancer and I am using Nginx which is installed and configured in EC2 Instance.假设我使用自己的应用程序负载均衡器而不是弹性负载均衡器,并且我使用的是在 EC2 实例中安装和配置的 Nginx。

Nginx is serving as a web-server and reverses proxy which has few upstream proxy servers at the backend. Nginx 充当 Web 服务器并反向代理,后者在后端几乎没有上游代理服务器。 I can define cloud watch to check my backend servers load and set up the configuration to launch new instances when the server is in load but how to register that instance setting on Nginx?我可以定义 cloud watch 来检查我的后端服务器负载并设置配置以在服务器负载时启动新实例,但如何在 Nginx 上注册该实例设置?

What are the best practices for achieving auto-scaling in my case?在我的案例中实现自动缩放的最佳实践是什么? How to offload it once the load is normalized负载正常化后如何卸载

In this case, you need to create your own AutoScaling service and create your own API to talk with Nginx when a new server starts or when a server shutdown.在这种情况下,您需要创建自己的 AutoScaling 服务并创建自己的 API,以便在新服务器启动或服务器关闭时与 Nginx 对话。

But this is not the preferred way to use your application on Cloud.但这不是在云上使用应用程序的首选方式。 AWS services offer solutions for this. AWS 服务为此提供了解决方案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM