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

demandé il y a 7 mois353 vues
2 réponses
0
Réponse acceptée

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
EXPERT
répondu il y a 7 mois
  • 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
EXPERT
répondu il y a 7 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions