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

Do not create nor update skipped hooks #573

Merged
merged 9 commits into from
Nov 17, 2015

Conversation

michalwski
Copy link
Contributor

This PR prevents creating a spiral metric for skipped hook. Such metric is dangerous because it may have lot of (tens of thousands) updates in a minute which can lead to too long message inbox for process holding this metric and can crash exometer_reporter.

Also, this PR adds some tests for metric subscriptions.

@michalwski michalwski changed the title Do not create nor updated skipped hooks Do not create nor update skipped hooks Nov 4, 2015
end),
Reporters = get_reporters_cfg(Port),
application:set_env(exometer, report, Reporters),
PortServer = receive
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this receive could be encapsulated inside the carbon_sever module- ex. wait_wait_for_client or sth similar. Btw we can name it carbon_cache_server. Initially, I thought that it might have something to do with carbon copies.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea. I'll do that.

@ppikula
Copy link
Contributor

ppikula commented Nov 16, 2015

What about testing title's feature - skipped hooks? I see two ways of doing that, either extend carbon_server and make it understand metric reports or use meck to validate if "mongoose_metrics:update/2" has/hasn't been called.

@michalwski
Copy link
Contributor Author

Done. Also I renamed the carbon_server and applied your suggestion.

@michalwski michalwski force-pushed the exometer-reporters-stability-improvement branch from 86c656b to cbe4144 Compare November 17, 2015 08:34
ppikula added a commit that referenced this pull request Nov 17, 2015
…ment

Do not create nor update skipped hooks
@ppikula ppikula merged commit b1b06c1 into master Nov 17, 2015
@ppikula ppikula deleted the exometer-reporters-stability-improvement branch November 17, 2015 10:40
@michalwski michalwski mentioned this pull request Dec 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants