Origin, edge ASG policy setting

sangsoo

Member
Hello.
I have a question about the origin,edge ASG policy setting.
WCS Version: 5.2.832

*Note the following:
- https://flashphoner.com/cdn-with-balancing-and-autoscaling-powered-by-amazon-web-services
- https://docs.flashphoner.com/display/WCS52EN/AWS+load+balancer+with+auto+scale+quick+setup

1. ASG policy enable (enable) "Target Tracking Policy".
- Average CPU Utilization 50%, 60secs Warm up

2. Started the load test (pull streams, 15 minutes).
- https://docs.flashphoner.com/pages/viewpage.action?pageId=9242540
- Can I change the load test time (flashphoner.properties)?

3. After a while, the CPU of the instance running WCS (ASG group) exceeded 50% and the instance was added.

4. After the added instance is initialized, the instance is continuously added in stages until "In service".
- As a result, more instances have been added than expected.
- Detailed monitoring is also activated.(1 minute period)
1606550838453.png


5. ASG Group's CPU utilization indicator was reflected only after 10 minutes. ASG activity log is also attached.
asg cpu+log2.png


***** Questions
The effect of ASG (increase) could only be achieved after 10 minutes. (The side effect of increasing the instance continuously for 10 minutes)
As a result, the service load occurred for 10 minutes, so we are looking for ways to reduce this time.
How can I load balance the server as quickly as possible by adding only as instances as I need?
I would like to know how to optimally configure ASG.

Thanks.
Best Regards.
 
Last edited:

Max

Administrator
Staff member
Good day.
You've set up 60 seconds warm up interval. This means a new instance will not be monitored during this time from its launching, and then CPU utilization is averaging during 1 minute after, so autoscaler probably does not take this value into account. Therefore, two minutes later a new instance is started, and again, and again...
Please try to set warm up interval to 20 seconds. Also reduce health check interval for Load Balancer from 30 seconds shown in example screenshots to 10 seconds, this should speed up load balancer to detect instance startup.
 
Top