-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Making GC related fields tunable #2261
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -53,6 +53,9 @@ client { | |||
data_points = 35 | |||
collection_interval = "5s" | |||
} | |||
gc_interval = "6s" | |||
gc_disk_usage_threshold = 82 | |||
gc_inode_usage_threshold = 91 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whitespace
@@ -151,6 +151,18 @@ type Config struct { | |||
// TLSConfig holds various TLS related configurations | |||
TLSConfig *config.TLSConfig | |||
|
|||
// GCInterval is the time interval at which the client triggers garbage | |||
// collection | |||
GCInterval time.Duration |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Website docs
7e74f83
to
6b0a1eb
Compare
@diptanu will this allow me to configure nomad to not wipe any allocations before, say, 24h ? |
@jippi Nope this just allows picking at what disk usage percentage GC kicks in |
@dadgar okay, i really want to be able to extend the disk GC to be more than 4h, more than once i've lost template or logs for debugging :) |
I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions. |
No description provided.