如何配置Hazelcast IMDG进行就绪探测

huangapple go评论71阅读模式
英文:

How to configure hazelcast IMDG for readiness probe

问题

我正在尝试使用Spring Boot中的actuator来实现准备探测(readiness probe)。我已经在Helm中使用准备探测实现了数据库健康检查:

- name: management.endpoint.health.group.readiness.include
  value: 'readinessState,db'

我猜想我只需要修改value部分以添加Hazelcast IMDG,但我不确定是否正确。我找不到一个详细解释如何配置它的好网站。我应该如何实现这一点?

英文:

I am trying implement readiness probe using actuator in springboot. I already have database health check using readiness probe in my helm:

-  name: management.endpoint.health.group.readiness.include
   value: 'readinessState,db'

I am guessing that I just need to moditfy value portion to add Hazelcast IMDG, but I am not sure if this is the case. I couldn't find good website that explains how to configure it. How do I achieve this?

答案1

得分: 1

HazelcastHealthIndicator会按照Spring Boot Actuator:生产就绪特性中描述的方式自动配置。然而,从我所见,它只检查Hazelcast是否存在并具有UUID。

如果您想要一些更具体的Hazelcast就绪健康检查(比如检查hazelcast/health/ready端点或hazelcast/health/cluster-safe),那么我猜您需要编写一个自定义Spring Actuator Health Check Indicator

英文:

HazelcastHealthIndicator is automatically configured as described in Spring Boot Actuator: Production-ready Features. However, from what I see, it only checks if Hazelcast exists and has UUID.

If you want some more Hazelcast specific readiness health check (like checking hazelcast/health/ready endpoint or hazelcast/health/cluster-safe), then I guess that you need to write a custom Spring Actuator Health Check Indicator.

huangapple
  • 本文由 发表于 2020年8月12日 21:50:11
  • 转载请务必保留本文链接:https://go.coder-hub.com/63377975.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定