[但有遇到過流量高峰過後仍保持擴張狀態未自動縮減的情況嗎?]
因為不管是擴張還是縮減都會使用到IP,如果CIDR的子網IP用完不夠了,
就連要縮減擴張後的實例也會因為需要用到IP而無法縮減,
所以如果要使用ALB的自動縮放功能,建議至少要給子網/27的IP數量,
確保不會出現因達到IP使用的上限而無法在自動縮放實例,並依實際使用調整。
參考網址
https://docs.aws.amazon.com/zh_tw/elasticloadbalancing/latest/application/introduction.html
https://docs.aws.amazon.com/zh_tw/elasticloadbalancing/latest/application/application-load-balancers.html#availability-zones