Skip to content

[Feature] How can healthcheck be conducted for the current project in docker? #9698

@Conmi-WhiteJoker

Description

@Conmi-WhiteJoker

Is Your Feature Request Related to a Problem?

目前的docker镜像中好像没有相应的健康检查功能,我们无法查询名称服务和broker服务的正常运行情况。

It seems that the current docker image does not have the corresponding health check function. We are unable to query the normal operation status of the name service and the broker service.

Describe the Solution You'd Like

当前我的解决方案是使用继承这个镜像,然后安装nmap或者nc,通过端口扫描的方式进行判活。

Currently, my solution is to inherit this image, then install nmap or nc, and perform port scanning to check for activation.

Describe Alternatives You've Considered

我打算创建一个程序,包含生产者和消费者,创建一个主题,用于检测存活状态,但有感觉有点繁琐,同时又消耗一部分资源,所以想看看官方有没有更好的解决思路。🤔

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions