-
Notifications
You must be signed in to change notification settings - Fork 107
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
Reload route config (handle aggregations) #32
Comments
Agreed, it requires expiration of the aggregates that exist now, this isn't implemented (yet). |
Yeah, I understand that it's not that easy, but I think it'll be very useful to have such feature. |
Agree with Vladimir, it's very useful function. |
update: I've made some steps here, but it requires quite a bit of code overhaul, so please bear with me here |
thanks Fabian, I'll be useful indeed to have this! |
first shot just pushed, but don't try to use this just yet, I needed a syncpoint :) |
Nice, this feature is perfect of confd + docker |
so, I think what needs to be done here, is (apart from some testing) to handle aggregations. |
For issues #32 and #133, get the aggregator to expire as if it was shutting down on a reload of the configuration. Side effect of this is that we need to suspend the dispatchers such that we don't get data while we're clearing out the aggregators. In this scheme, a reload will cause a slight service interruption. New connections are still accepted, but no data is read while the aggregations are flushed, and the dispatchers load the new configuration. The upside of this is that there will be an atomic reload, that is, everything is either routed according to the old configuration, or the new configuration, not both at the same time as was the case before this commit.
I think I've finally tackled this! |
For issues grobian#32 and grobian#133, get the aggregator to expire as if it was shutting down on a reload of the configuration. Side effect of this is that we need to suspend the dispatchers such that we don't get data while we're clearing out the aggregators. In this scheme, a reload will cause a slight service interruption. New connections are still accepted, but no data is read while the aggregations are flushed, and the dispatchers load the new configuration. The upside of this is that there will be an atomic reload, that is, everything is either routed according to the old configuration, or the new configuration, not both at the same time as was the case before this commit.
I think it's good idea to have sort of "fast restart" ability - e.x. when you add new aggregates, there should be a way to perform "fast" reload of the rules.
The text was updated successfully, but these errors were encountered: