Request - Disable pool autoscale during script

Ran into an issue with a host pool when running a script that required a reboot.

Pool is base 2 minimum 1. 1 host is in drain mode and excluded from scale in/out just to use as a backup.

Using the schedule script at 3 AM which put the main host into drain mode for 10 minutes beforehand. Autoscale then added a 3rd host.

I am assuming my quick fix is to turn of the 10 minute notify but do think an option to pause autoscale during script execution would be nice as well. To avoid issues with a script being stuck possibly a pause for x time during script execution instead of only a "while running"

Alternatively a scale out restrictions option so we can specify in the current autoscale settings.

2

Comments (3 comments)

Avatar
DStephenson

+1
Being able to set hosts in drain mode while scripted actions are running is something I've wanted for a while.
There is the Delay host availability in AVD for 10 minutes runbook that can work as a bandaid or possibly use an alternate autoscale schedule until Nerdio is able to add this feature.


1
Avatar
Tomas

DStephenson

Yes I dont think the delay host runbook would solve my issue as that doesnt effect the nerdio automation side which is causing the problem.

Alternative schedule would if we were running it on certain days but we are running it everyday.
Which (Unless I am mistaken) the alternative schedule would be the full day meaning It would also not solve the problem. I couldnt have an alternative schedule during the hours of 12:00 to 3:00

0
Avatar
DStephenson
(Edited )

Ah. I see it now. Sorry, I misread the issue.
There may be some Trigger/Scale-Out settings that you could tweak, but realistically, you're going to need to be able to schedule a maintenance mode in Nerdio so it disables the auto scale settings.

The odd thing is there are options in the API to pause/un-pause the autoscale so I would think that Nerdio could probably add a way to pause autoscale for a certain time frame like you're suggesting.

If you're motivated enough, you could schedule a maintenance sequence/API call with Power Automate to disable autoscale for your host pool(s) and then remove it at the end of your maintenance window.

I'm guessing if you posted for help in the Nerdio Manager API – Nerdio Help Center (getnerdio.com) channel, someone could help out with the structure needed for those kinds of calls.

 

0

Please sign in to leave a comment.