【问题标题】:How to install a program on the load balancer如何在负载均衡器上安装程序
【发布时间】:2022-01-22 14:48:26
【问题描述】:

我使用 Beanstalk 创建了一个 Web 应用程序。我想在负载均衡器上安装一个程序。它是 Zerotier(使您能够通过 Internet 创建本地网络的程序)。但是,我无法找到登录负载平衡器服务器的方法来执行此操作。我知道我可以直接在 EC2 实例中安装程序,但这里的问题是程序在自动缩放时会停止工作。

【问题讨论】:

  • AWS 负载均衡器是一项完全托管的服务。你不能在它们上面安装任何东西。
  • @JeremyThompson 我想在 AWS 上部署一个 Web 应用程序,并使其只能在我的 Zerotier 本地网络中访问。
  • 您应该仍然能够在单个子网/AZ 中执行此操作。您可以将 AutoScaleGroup 限制为单个子网/可用区。我只是不确定Zeroteir 提供什么好处?这里的最终目标是什么?
  • @JeremyThompson 我仅将 AWS 用于 Web 应用程序。所以 Zerotier 是我将设备连接在一起的方式。
  • @BuSaeed 对,也许可以考虑使用本地网络的 VPN 连接。我查看了“It Just Works”网站,所以也许阅读了他们的文档。我会使用内置的 AWS 服务并使用 Cloud Formation 脚本来设置它。 Beanstalk 是为不了解 AWS(EC2、子网、AZ、ELB、IGW 等)的开发人员提供的服务。

标签: amazon-web-services amazon-ec2 amazon-elastic-beanstalk aws-load-balancer zerotier


【解决方案1】:

通过部署或服务来安装和添加程序,而不是在负载均衡器中,而是在集群中,您的负载均衡器将帮助您平均分配工作。在 AWS 上,它会自动为您提供负载均衡器。

A load balancer serves as the single point of contact for clients. The load balancer distributes incoming application traffic across multiple targets, such as EC2 instances, in multiple Availability Zones. This increases the availability of your application. You add one or more listeners to your load balancer.

source

【讨论】:

  • 这需要额外的服务器。
猜你喜欢
  • 1970-01-01
  • 2019-10-01
  • 1970-01-01
  • 2021-12-07
  • 1970-01-01
  • 2017-07-28
  • 2023-04-05
  • 1970-01-01
  • 2012-02-11
相关资源
最近更新 更多