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

Configure workspace template to feed idle VM shutdown mechanism #169

Open
SamSheldon opened this issue Sep 27, 2024 · 2 comments
Open

Configure workspace template to feed idle VM shutdown mechanism #169

SamSheldon opened this issue Sep 27, 2024 · 2 comments
Assignees

Comments

@SamSheldon
Copy link

No description provided.

@BIOKU-BH
Copy link

BIOKU-BH commented Oct 1, 2024

The below is the approach that I am thinking of using for this task.

  1. Progammatically get the list of resource groups that has the suffix matching this pattern rg-sdebeta-ws-
  2. periodically (1 hour interval) poll each resource group to retrieve the VMs it
  3. Check the metrics of each Machine and deallocate any machine that is running below 3 and has been up for at least 1hour

This will help make the solution more robust and flexible by extending its workability to any workspace that would be created in the future as well as the VMs in the RG.

@TonyWildish-BH
Copy link
Collaborator

this looks good, thanks. For step 1, is it possible to make the pattern a parameter, with a list of patterns, so we can add multiple SDEs?

Something like "rg-sdebeta-ws-|rg-sdemvp-ws-|rg-sdeprod-ws", so we know how to add items without editing existing code or risking breaking the expression, maybe as an environment variable or something.

It doesn't have to be too fancy, and if it's not easy, ignore it.

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

No branches or pull requests

3 participants