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

[agent][dogstatsd] Add support for changing niceness on POSIX systems #2021

Closed
wants to merge 1 commit into from

Conversation

armenb
Copy link

@armenb armenb commented Oct 31, 2015

…ocesses on POSIX systems

let me know if you'd like a unit test for this, thanks :-)

@irabinovitch
Copy link
Contributor

@armenb @armenfirespotter Thank you for the patch! Our team will review and be in touch soon with any feedback, most likely as part of the 5.7 release/review process. In the mean time, tests are always greatly appreciated!

@armenb
Copy link
Author

armenb commented Nov 9, 2015

Hi DD team, do you have any initial comments/questions/concerns regarding this patch? Thanks!

@remh
Copy link
Contributor

remh commented Nov 19, 2015

Thanks this is an interesting patch.

I'm not sure it makes sense to have the agent governs itself like that.

I think it would make more sense to patch your /etc/dd-agent/supervisor.conf file with nice/ionice commands.

What do you think ?

@remh remh modified the milestones: To be determined, 5.7.0 Nov 19, 2015
@armenb
Copy link
Author

armenb commented Dec 8, 2015

remh - great idea, I think that's ultimately a better and simpler way to do this. However, I think there is an issue with upgrading the datadog-agent via apt after doing this - it seems that the supervisor.conf file gets overwritten.

@remh
Copy link
Contributor

remh commented Dec 10, 2015

It does indeed. You could maybe manage this file through chef or something similar though.
Or we could pass the niceness as an environment variable.

DOGSTATSD_NICENESS=-5 /etc/init.d/datadog-agent restart

What do you think?
Meanwhile i'm closing this PR.

Thanks again for the feedback!

@remh remh closed this Dec 10, 2015
@olivielpeau
Copy link
Member

Related: #3086

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.

5 participants