何时在 AWS 上启用应用程序负载均衡器

When to enable application load balancers on AWS

我目前在 AWS ELB 上启动了一个应用程序。 AWS 自动启用应用程序负载均衡器,这对我的应用程序来说是一个重要的成本驱动因素。我现在只有 20 个用户,所以我的应用程序的负载很低。什么时候启用负载平衡比较好?

如果您还不想使用负载均衡器,请在 Elastic Beanstalk 中使用单实例环境。

参考:https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features-managing-env-types.html#single-instance-environ

引用:

Single-instance environment

A single-instance environment contains one Amazon EC2 instance with an Elastic IP address. A single-instance environment doesn't have a load balancer, which can help you reduce costs compared to a load-balanced, scalable environment. Although a single-instance environment does use the Amazon EC2 Auto Scaling service, settings for the minimum number of instances, maximum number of instances, and desired capacity are all set to 1. Consequently, new instances are not started to accommodate increasing load on your application.

Use a single-instance environment if you expect your production application to have low traffic or if you are doing remote development. If you're not sure which environment type to select, you can pick one and, if required, you can switch the environment type later. For more information, see Changing environment type.