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

Reaper interval environment variable #49

Merged
merged 5 commits into from Sep 19, 2019

Conversation

msaizar
Copy link
Contributor

@msaizar msaizar commented Sep 3, 2019

Currently an instance will be placed in an error state if there is no spot capacity available in AWS for example. These will count towards the autoscaler's capacity, and won't be destroyed until the reaper gets rid of them in the next hour. I moved the reaper interval to an environment variable so that one can choose the frequency.

config/config.go Outdated
@@ -65,6 +65,11 @@ type (
Cache string `envconfig:"DRONE_GC_CACHE" default:"10gb"`
}

Reaper struct {
Enabled bool `envconfig:"DRONE_ENABLE_REAPER" default:"false"`
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Enabled isn't used yet, right? It's currently based directly on the env variable without using this config.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right, I've removed it for now

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.

None yet

3 participants