devenv icon indicating copy to clipboard operation
devenv copied to clipboard

Add readiness probes for elasticmq

Open penguincoder opened this issue 8 months ago • 3 comments

By default the SQS-REST endpoint will listen on port 9324. If you change this value, I give you the escape hatches to change where to ask the server /health. The test in examples/ has been updated to query the server for the readiness endpoint, as well.

4 seconds may be a long time for a default installation, but that should (hopefully) be sufficient for any customized installations to finish booting.

penguincoder avatar Jun 27 '25 14:06 penguincoder

Would we be able to get the host out of the settings?

domenkozar avatar Jun 27 '25 14:06 domenkozar

possibly, yes. there are two configuration stanzas for elasticmq. One is for the SQS endpoint, the other is for the HTTP point-and-click interface. The rest-sqs one, though, uses bind-port and bind-hostname which are unique slugs to that endpoint and that's great... but only if the user generated configuration file has defined them. Otherwise they won't exist and we will be back to using the defaults (these values are the default values).

is there an existing service that pulls the configuration value out of a file already?

penguincoder avatar Jun 27 '25 14:06 penguincoder

@penguincoder I wonder if these are not part of cfg.settings, we should expose other settings? Not sure what's the best way here :)

domenkozar avatar Nov 25 '25 17:11 domenkozar