-
Notifications
You must be signed in to change notification settings - Fork 335
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
fix broker select error in arbiter #1565
base: master
Are you sure you want to change the base?
fix broker select error in arbiter #1565
Conversation
Seems valid :) I'll give a test. Just a pep8 error (look at https://travis-ci.org/naparuba/shinken/jobs/57749243 for it). I'm waiting the 2.4 release before merge it, but when 2.4 is release and I test your code, will be merged :) |
@naparuba , i will check the pop8 error and fix it soon. |
Cool thanks :) On Thu, Apr 9, 2015 at 9:43 AM, Ning Xie [email protected] wrote:
|
One more thing, i do not take care about whether the push_broks function will succeed. However, in the original implementation the broks should only be removed when push_broks will succeed. I have thought that there will be some problem if we continue to collect broks when all the brokers down, thus we will continue to collect broks and consume the memory. It is dangerous only if we can make a threshold that we can not store more than high_water_level broks( or anything like that) . If we just do not care about the execution status about push_broks then we just have some status broks lost and everything about schedule, check and notification will still work properly. When the downed broker daemon coming start again we can sent it with the newest status broks. Since we can get the satellite link info from the update broks not the initial broks, then we can simply send the satellite link broks and then remove all of them from Additionally, if the broker down unexpectedly, then we can have problems when we restart it and it can not have any information about the satellite links, so it will not display the System info in WebUI's System tab. |
delete useless file
@naparuba , can you please take a look at this PR. |
This pull request will fix the problem proposed in #1562, for more info please go to #1562。