mq-container icon indicating copy to clipboard operation
mq-container copied to clipboard

Healthcheck

Open Nicklas2751 opened this issue 5 years ago • 4 comments

Please add a healthcheck to the container so other containers/services can wait for the mq container to be healthy.

Nicklas2751 avatar Aug 04 '20 15:08 Nicklas2751

We have a healthcheck command called chkmqhealthy, which we use for a Kubernetes liveness probe. I think what you're asking for is a Docker Swarm compatible health check. We'll have to ensure that it doesn't clash on Kubernetes.

arthurbarr avatar Aug 04 '20 16:08 arthurbarr

Hi, I tried to add HealthCheck command chkmqhealthy to my own docker file.

HEALTHCHECK --interval=1m --timeout=30s --retries=3 CMD chkmqhealthy || exit 1

But this what I get as result when I run my image

standard_init_linux.go:219: exec user process caused: no such file or directory

Any clues about my issue ? Thanks

ant-1 avatar Apr 30 '21 15:04 ant-1

My guess would be that you should put the fully qualified path to the command in, for example /usr/local/bin/chkmqhealthy

arthurbarr avatar May 04 '21 10:05 arthurbarr

Is there a way to check health from load balancer?

vmazyliukTW avatar Nov 24 '21 12:11 vmazyliukTW