-
Notifications
You must be signed in to change notification settings - Fork 927
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
More HealthChecker
implementations
#1854
Comments
@trustin any idea about how upstream server could propagate its state (like memory/disk..) to client side? |
You can add more than one health checker when you build a HealthCheckService, then a load balancer or HealthCheckedEndpointGroup will notice when any of the HealthCheckers becomes unhealthy. |
ah, seems I mistaken that you mean client side HealthChecker but seems that you talk about server side HealthCheck service, that should make sense |
@trustin Could I work on this issue? |
Sure. Please tell us what kind of health checkers you'd like to implement first, though. :-) |
Plus, what I want to suggest to implement is CPU based healthChecker that the healthiness is determined by average CPU usage which is a result of calculation of average during certain period of time(given by programmer) not by CPU rate at the moment It's asked. In example,
My reservations are that It could be a little bit ridiculous, because It should memorize and calculate periodically to determine whether It's healthy or because It's practically not usable. What do you think about that? Is it little bit ridiculous idea for healthChecker or inappropriate to be provided as default implementation? |
could i continuing this issue? |
Sure, it's all yours. |
Motivation: Resolves part of line#1854 Some users may want to use CPU usage to determine if their instance is healthy. From now on, Users can perform health checks in the following ways ``` DefaultCpuHealthChecker cpuHealthChecker = new DefaultCpuHealthChecker(20.0); cpuHealthChecker.isHealthy(); ``` Modifications: - Added DefaultCpuHealthChecker that checks cpu-usage by OperatingSystemMXBean Result: A User can health-check with system-cpu-usage p.s. Implemented this by referencing ProcessorMetrics.java in the micrometer core.
Motivation: Resolves part of #1854 Some users may want to use CPU usage to determine if their instance is healthy. From now on, Users can perform health checks in the following ways ```java HealthChecker cpuHealthChecker = HealthChecker.ofCpu(80, 80); cpuHealthChecker.isHealthy(); ``` Modifications: - Added DefaultCpuHealthChecker that checks cpu-usage by OperatingSystemMXBean Result: A User can health-check with system-cpu-usage p.s. Implemented this by referencing [ProcessorMetrics.java](https://github.com/micrometer-metrics/micrometer/blob/main/micrometer-core/src/main/java/io/micrometer/core/instrument/binder/system/ProcessorMetrics.java) in the micrometer core. --------- Co-authored-by: jrhee17 <[email protected]> Co-authored-by: Ikhun Um <[email protected]> Co-authored-by: Trustin Lee <[email protected]> Co-authored-by: Trustin Lee <[email protected]>
Looks like there was a follow-up. |
My friend @AnneMayor wants to join, so I recommended this issue. P.S. There are several options, but this seems like a good place to start. |
Thanks @Bue-von-hon :) |
It might be a little long to open PR. I need more time to review. I will let you know today when I could complete it. |
The text was updated successfully, but these errors were encountered: