Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to "deallocate" instead of "delete" when scaling in Azure VMSS #583

Open
chilloutman opened this issue May 24, 2022 · 1 comment
Open

Comments

@chilloutman
Copy link

Deallocating a VMSS instance means that the VM is only stopped as opposed to deleted. The advantage would be that starting the VM back up should be faster than creating a new one.

From the Azure VMSS FAQ:

  • You want to start a set of VMs more quickly than you can scale out a virtual machine scale set.
  • Related to this scenario, you might have created your own autoscale engine and want a faster end-to-end scale.

Would this be a useful feature?


The default behavior should stay "delete". When enabled, a "deallocate" option would have to deallocate instead of delete when scaling in here:

future, err := t.vmss.DeleteInstances(ctx, resourceGroup, vmScaleSet, compute.VirtualMachineScaleSetVMInstanceRequiredIDs{

and, I would expect, first look for deallocated VMs to start before scaling out here:

future, err := t.vmss.Update(ctx, resourceGroup, vmScaleSet, compute.VirtualMachineScaleSetUpdate{

@lgfa29
Copy link
Contributor

lgfa29 commented May 26, 2022

Hi @chilloutman 👋

This sounds pretty cool! I didn't know about this feature. It also sounds like a good item for new contributions. Would you be interested in giving it a try? 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants