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

preguntada hace 7 meses355 visualizaciones
2 Respuestas
0
Respuesta aceptada

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
EXPERTO
respondido hace 7 meses
  • 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
EXPERTO
respondido hace 7 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas