-
Notifications
You must be signed in to change notification settings - Fork 141
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
How totally stop/disable health service on my server? #773
Comments
I assume the health service is already stopped. |
The only way I have found: public class EndpointServerBuilderNoHealth extends EndpointServerBuilder { |
You could also create a class that implements HealthServiceAsync and then set EndpointServerBuilder's health service: serverBuilder.setHealthService(new HealthServiceAsyncImpl()); |
How totally stop/disable health service on my server?
There are lots of annoying messages in the log HealthService::checkInOk() many times...
I tried many ways,but it's still alive:
ManagedServiceBuilder......setEnableLocalHealth(false).setHealthService(null);
.....
managedServiceBuilder.....setEnableHealthEndpoint(false)
.....
HealthServiceImpl healthService.....
healthService.stop();
The text was updated successfully, but these errors were encountered: