了解 elb 自动实例创建

Understanding elb auto instance creation

我是aws elb的初学者。有人可以帮助我了解 elb 如何根据流量或 cpu 使用情况自动创建新实例。此外,当它创建一个新实例时,它如何从现有实例复制代码? 任何 link/article 也将不胜感激。 提前致谢。

How elb automatically creates a new instance depending on the traffic or cpu usage?

ELB 不会创建新实例,新实例是由您设置的启动配置和自动缩放组规则创建的。 https://docs.aws.amazon.com/autoscaling/latest/userguide/GettingStartedTutorial.html

Also when it creates a new instnces how does it copies code from existing instance?

当从 AMI 创建新实例时,您必须使用用户数据脚本 (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html) 添加复制机制,或者 运行 该实例上的 cron 作业将复制文件从 S3 存储桶到该实例。