Appstream Scheduled Scaling Policy

0

Our Appstream fleet has a scaling policy to add 2 machines if utilization is above 80% and remove 1 machine if utilization is below 70%. This works fine for most of the day but it can't handle the initial 3 hour usage surge that starts at 5:15 UTC Monday through Friday.

I have a CHRON expression 0 15 5 ? * MON-FRI * in the Scheduled Scaling Policies box set for 45 minimum and 50 maximum to handle the rush. This is ok but I only want this CHRON rule to be in effect for 3 hours and then allow the fleet to scale down normally using the rules in the first paragraph above. Only during this period 5:15am - 8:15am do I want to manually set a minimum. The rest of the time should be set by utilization percentage. Thanks

已提問 7 個月前檢視次數 353 次
2 個答案
0
已接受的答案

Hello. To achieve your desired outcome: Continue with the utilization-based scaling policy as you described:

Increase capacity by 2 instances when utilization is above 80%.
Decrease capacity by 1 instance when utilization is below 70%.

Use two CRON expressions to handle the morning surge:

First CRON expression at 5:15 UTC (0 15 5 ? * MON-FRI *): Set the minimum capacity to 45 and the maximum capacity to 50.
Second CRON expression at 8:15 UTC (0 15 8 ? * MON-FRI *): Set the minimum capacity back to its default value (could be 0 or a suitable number for your needs) and the maximum capacity to a higher value if needed (or you can leave it unrestricted).

Regards, Andrii

profile picture
專家
已回答 7 個月前
  • Thank you, I will test tonight and then comment/close this ticket.

0

Could you accept the answer if it helped you? Thanks)

profile picture
專家
已回答 7 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南