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

gefragt vor 7 Monaten354 Aufrufe
2 Antworten
0
Akzeptierte Antwort

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
EXPERTE
beantwortet vor 7 Monaten
  • 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
EXPERTE
beantwortet vor 7 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen