-
Notifications
You must be signed in to change notification settings - Fork 35
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 is called unnecessarily #342
Comments
Also as part of this change we need to consider comments by @rbarry82 on #349:
Agreed, but to limit the scope of this change, and given #342 will be addressed very soon, can live with this for now?
This would be in direct contrast to the common exit hook pattern. I'd rather not mix both approaches in the same charm. Also, once #342 is fixed this will be much less painful to look at.
Agreed. I don't particularly like that status comparison pattern and it should be fixed as part of #342.
Sounds presumptuous at first glance. And what will the charm do with the various exceptions? Just choose one message over another? Maybe, if we have insight, expose a Originally posted by @sed-i in #349 (comment) |
A little self-referential, since this is #342 ;) Are we addressing it here then?
I think that's a little bit the point -- the common exit hook cannot cleanly address this, but we actually do need to do so. There are multiple non-
Why would it be changed there? It also affects this. There seems to be three cases where the charm may not be accessible:
The first two are meaningful here.
The exceptions could have a property with a message, or a lookup table in the charm, or whatever. The charm would set a status message to tell the administrator what is happening and why Prometheus may not be reachable which is more useful than a "configuration is invalid" message which may not be true or an A |
Bug Description
Currently, every
_configure
, the charm would either reload configurationprometheus-k8s-operator/src/charm.py
Lines 272 to 273 in e75eb0b
or replan:
prometheus-k8s-operator/src/charm.py
Lines 281 to 282 in e75eb0b
This means the prometheus service will be unavailable for potentially significant duration (e.g. big wal replay).
To Reproduce
NA
Environment
NA
Relevant log output
Additional context
_configure
inupdate-status
as a workaround forready_for_unit
is emitted too early traefik-k8s-operator#78.The text was updated successfully, but these errors were encountered: