feat: add MaxGrowthRate to limit the number of instances added in parallel#962
Conversation
|
Hey @rohaquinlop! 👋 Thank you for your contribution to the project. Please refer to the contribution rules for a quick overview of the process. Make sure that this PR clearly explains:
With submitting this PR you confirm that you hold the rights of the code added and agree that it will published under this LICENSE. The following ChatOps commands are supported:
Simply add a comment with the command in the first line. If you need to pass more information, separate it with a blank line from the command. This message was generated automatically. You are welcome to improve it. |
|
Hi @npalm @kayman-mk, A peer review here would be greatly appreaciated! 🙏🏽 |
|
Seems that the formatting is broken. Could you please run a |
|
Looks good at first hand. But I would prefer not to mention this parameter in the examples as it is quite specific and an advanced configuration. |
712241e to
7a45a06
Compare
|
@kayman-mk already added your suggestions, thanks in advance for your help! |
|
Did you test the change without specifying the |
align `versions.tf` with lock file
|
@kayman-mk No, I was trying to test it but I don't understand completely the documentation. I'm still trying to figure out how to run the tests. |
|
If you are talking about the |
|
Ok, just checked, that the parameter is set as expected. Works fine. |
…scaling parameters.
MaxGrowthRate to limit the number of instances added in parallel
kayman-mk
left a comment
There was a problem hiding this comment.
Good job! Thanks for adding this feature.
🤖 I have created a release *beep* *boop* --- ## [7.1.0](7.0.0...7.1.0) (2023-09-28) ### Features * add `MaxGrowthRate` to limit the number of instances added in parallel ([#962](#962)) ([ae6d38a](ae6d38a)) ### Bug Fixes * convert the fleet instance type in migration script ([#975](#975)) ([51b2842](51b2842)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --------- Signed-off-by: Niek Palm <dev.npalm@gmail.com> Co-authored-by: cattle-ops-releaser-2[bot] <134548870+cattle-ops-releaser-2[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
|
@kayman-mk Thank you so much for all the help! |
Description
This feature allows to support
MaxGrowthRatewhich limits the number of instances added in parallel by the Runner. The default of0(unlimited) is used if no value is given.The parameter is added to
runner_worker_docker_machine_instanceas this is the only Runner type for which it makes sense. All other types are not able to scale and thus it is not arunner_workerparameter.See advanced-configuration
Closes #851
Migrations required
NO
Verification
MaxGrowthRatein config file is 0.MaxGrowthRatein config file is "any value"