英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论