generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: maintain idle pool of runners (#1038)
Adds `--idle-runners` arg to define how large the idle pool should be. Fixes #1036 Fixes #1030 ### Previous notes Currently a draft because this PR makes #1036 more likely to be hit. Before this change, killing all deployments would mean there are 0 runners, leading to no runner id collisions when you bring up more deployments After this change, killing all deployments means that there will still be runners which will cause collisions if the idle runner ids aren't the lowest possible [`R00000000000000000000002000`, `R00000000000000000000004000` ... ] I've been testing with a hacky fix replacing line `bankend/controller/scaling/local_scaling.go:96` to: ``` binary.BigEndian.PutUint32(ulid[10:], rand.Uint32()) ```
- Loading branch information
Showing
3 changed files
with
6 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters