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

feat: scale down idle runners #56

Merged
merged 1 commit into from
Jan 12, 2023

Conversation

maigl
Copy link
Contributor

@maigl maigl commented Jan 10, 2023

This automatically scales down superfluous runners.

There are a number of scenarios where we end up with more runners than the idle pool size.
E.g. when you change the min_pool_size ..

This PR is an example of how we could scale down runners that are not needed at the moment.
What do you think?

The runners are deleted not all at once but each PoolScaleDownInterval half of the surplus is deleted until we hit min_idle_runners

So far, neither the Iterval (1 Minute) nor the percentage of runners to be removed is configurable.

Michael Kuhnt michael.kuhnt@mercedes-benz.com Mercedes-Benz Tech Innovation GmbH (ProviderInformation)

@maigl maigl closed this Jan 10, 2023
@maigl maigl reopened this Jan 11, 2023
@gabriel-samfira
Copy link
Member

I was wondering why you closed it yesterday 😄 .

Will have a proper look in the morning!

@gabriel-samfira
Copy link
Member

This is great. Thanks!

@gabriel-samfira gabriel-samfira merged commit b2a22e1 into cloudbase:main Jan 12, 2023
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.

2 participants