softwaremill / elasticmq

In-memory message queue with an Amazon SQS-compatible interface. Runs stand-alone or embedded.
https://softwaremill.com/open-source/
Apache License 2.0
2.48k stars 193 forks source link

Lack of healthcheck #776

Closed bitkill closed 1 month ago

bitkill commented 1 year ago

Hi,

I'm looking for a way to probe the health and readiness of elasticmq in the Docker container? What's the best way to do this?

adamw commented 1 year ago

We don't have a dedicated health/status endpoint (we should add one, good point :) ), but maybe listing queues could be a good replacement while this is not available: https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_ListQueues.html

chesleybrown commented 1 year ago

To add a specific example for use with docker compose's healthcheck (as it needs to be a command that executes within the container):

wget -q -S -O - 127.0.0.1:9324/?Action=ListQueues