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달 전355회 조회
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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인