Feature: fallback pool (prefer on prem, fallback to another cloud) #443
Replies: 6 comments
-
Hi @brandonkal ! You already can! 😁 Well, at least for the case where one pool is at capacity. You can switch your entity pool balancer type from garm-cli repo update --pool-balancer-type pack YOUR_REPO_ID Then you can set priorities to your pools: garm-cli pool update YOUR_POOL_ID --priority 200
garm-cli pool update YOUR_BACKUP_POOL_ID --priority 100 Pools are sorted by priority in descending order. So if the priority is set to And on that note, I did a terrible job at documenting things. I just noticed I have just one mention of priorities in the docs, but absolutely no example of how to use the feature 😓. Give it a shot and let me know if it works. |
Beta Was this translation helpful? Give feedback.
-
to view pool priorities when listing them, you can run: garm-cli pool ls --all --long |
Beta Was this translation helpful? Give feedback.
-
Thank you this is good to know. My hypervisor host is without internet today so I have to set up an AWS fallback (which has been on my list but now is a must). Ultimately I want to:
I suppose for now I can set my primary pool to have 0 capacity. |
Beta Was this translation helpful? Give feedback.
-
You can use the priority option and just swap priorities when you notice an outage. Set a priority of You can define as many pools as you like. You can also have multiple pools with the same labels that can handle the same jobs. I recommend you use a single, unique label for pools (eg: If you only define a single pool for arm64 on aws, then that is the only place where arm64 will spin up. |
Beta Was this translation helpful? Give feedback.
-
You can also enable/disable pools. So if you notice that a provider is down, you can disable pools for that provider. |
Beta Was this translation helpful? Give feedback.
-
I migrated the issue into a discussion. We can continue here. If we find there is an issue we can act on, we can create an issue from the discussion. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
It would be nice to give pools priority. So that you could either:
Beta Was this translation helpful? Give feedback.
All reactions