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

fix: exclude VM templates and include containers when calculating a host's reserveable memory #40

Merged
merged 1 commit into from
Dec 18, 2023

Conversation

pborn-ionos
Copy link
Contributor

@pborn-ionos pborn-ionos commented Dec 17, 2023

Description of changes:

Previously, it was only checked for VMs, without taking their Template status into consideration. (A Template VM can't be started, without explicitly removing the flag.). Existing LXCs on a host weren't taken into consideration either.

Now, we'll no longer include VM Template in our calculations. But in exchange we include LXCs now.

Issue #, if available:
Fixes #36.

Testing performed:

  • provisioned a cluster
  • assigned an unrealistic amount of memory to a template
  • tried to scale out the cluster to provoke a failure
  • applied patched CAPMOX image
  • tried to scale out the cluster again, which worked this time around

…ost's reserveable memory

Previously, it was only checked for VMs, without taking their Template status into consideration. (A Template VM can't be started, without explicitly removing the flag.). Existing LXCs on a host weren't taken into consideration either.

Now, we'll no longer include VM Template in our calculations. But in exchange we include LXCs now.

Fixes #36.
Copy link

sonarcloud bot commented Dec 17, 2023

@pborn-ionos pborn-ionos merged commit db7ace8 into main Dec 18, 2023
9 checks passed
@pborn-ionos pborn-ionos deleted the fix/38 branch December 18, 2023 09:19
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

Successfully merging this pull request may close these issues.

scheduler: memory assignment of templates is included in calculations
3 participants