Autoscaling remove newest host first

Sometimes, in certain autoscale scenarios, new hosts can be created by the autoscaling engine due to maintenance being performed on existing session hosts i.e reboots or running long-running scripts.  

This can cause new hosts to be created and removed shortly after the maintenance has been completed. The issue lies in the case where configuration settings or applications may have been applied to the existing hosts, which then get removed and replaced by a brand new host that may require work to be done manually before being made available to the users. 

To avoid this scenario, it would be helpful in scenarios where we are creating new hosts to meet minimum host pool criteria that if any hosts were to be deleted, the newest hosts would be removed first, leaving the existing hosts untouched. 

3

Comments (2 comments)

0
Avatar
Marek Sokół

To add from my experience, single unavailability of VM (60 seconds), caused by restart, can trigger scaling plan to start creating new VM.

1
Avatar
Marek Sokół

Alternatively, during VM creation, trigger caused VM creation should be reevaluated, and if not valid anymore, VM creation process should be canceled.

Please sign in to leave a comment.