-
Notifications
You must be signed in to change notification settings - Fork 62
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
Provide a way to disable health checks with configuration #335
Comments
@pgunapal I didn't know that MP Config doesn't support
Is this OK with you? cc/ @fabiobrz @donbourne |
@xstefank Is the |
@pgunapal we can do both the classname and the check name as originally proposed. In SR we currently only use classnames. |
To me using arrays looks like the best option, thanks @xstefank - same question as @pgunapal regarding the property name, and the value too, since IIUC this would affect the spec implementation to cover both cases, right? |
If no one objects, I would prefer to use both classname and health check name as possible values. As for the name of the property, I'm ok with |
So one thing we all forgot about is that mp.health.disabled.checks=org.acme.HC1,org.acme.HC2 but not: mp.health.disabled.checks=my-health-check1,my-health-check2 |
+1, thanks @xstefank - this solves one question I had about #337 |
Description
Provide a way to selectively disable individual health checks with MP Config values.
Proposal:
microprofile.health.check."check-name".enabled=true/false
microprofile.health.check."check-class".enabled=true/false
Use cases
Disable health check without the need to remove the implementation. This is useful when the same application deploys in different environments. We can disable checks that are not required or potentially cause problems without recompiling the application. This can also mean that we can offer avoiding having two "versions" of the same application for different environments.
Another use case is testing when we might not have dependent services available or the provided mocked instances don't offer health checks.
Seamless A/B testing when moving to the new version/implementation of a particular health check.
The text was updated successfully, but these errors were encountered: