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

Adding support for WriteQueueLimitLow & WriteQueueLimitHigh #178

Merged
merged 1 commit into from
Nov 13, 2014

Conversation

joshgarnett
Copy link

WriteQueueLimitLow & WriteQueueLimitHigh are very useful config options that were added in collectd 5.4. If for any reason the output plugin can't send events it'll prevent the collectd processes from slowly consuming all of the memory on the server.

@mmoll
Copy link
Contributor

mmoll commented Sep 12, 2014

it would be nice to check $::collectd_version if the options can be added to the config

@joshgarnett
Copy link
Author

@mmoll Any preference in how that is done? If either setting is set, we could then also check the collectd_version. What would the failure case look like? Should we use fail or err with a log message?

@joshgarnett
Copy link
Author

There is also an order of operations issue there. If the package isn't installed yet, $::collectd_version will return nil. We could try and use $version, but that can be set to installed in default cases. Having the setting in place doesn't break older clients. Perhaps it may just make more sense to add a comment on the class parameters?

@mmoll
Copy link
Contributor

mmoll commented Sep 12, 2014

I don't think there was ever a formal discussion about that, so just as a reference point one place I know of having it implemented is there: https://github.com/pdxcat/puppet-module-collectd/blob/master/templates/plugin/df.conf.erb#L12

@txaj
Copy link

txaj commented Sep 12, 2014

The issue you are pinpointing with $::collectd_version not being known at the first run is already reported in #162. We do not have an ideal solution yet for that, but your input is welcome :)

@blkperl
Copy link
Member

blkperl commented Sep 26, 2014

Ping, please add the $::collectd_version check so we can merge this. Thanks

@blkperl
Copy link
Member

blkperl commented Oct 23, 2014

@joshgarnett ping

@blkperl blkperl closed this Oct 23, 2014
@blkperl blkperl reopened this Oct 23, 2014
@joshgarnett
Copy link
Author

@blkperl as mentioned previously, there can be an order of operations issue as per #162 There shouldn't be an issue with the configs being in place for older versions of collectd, so this feels like a non-issue. Your call though.

blkperl added a commit that referenced this pull request Nov 13, 2014
Adding support for WriteQueueLimitLow & WriteQueueLimitHigh
@blkperl blkperl merged commit ff1831d into voxpupuli:master Nov 13, 2014
@blkperl
Copy link
Member

blkperl commented Nov 13, 2014

ok thanks for clearing that up. Thanks for the contribution.

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.

4 participants