puppetlabs / puppetserver

Server automation framework and application
https://tickets.puppetlabs.com/browse/SERVER
Apache License 2.0
292 stars 235 forks source link

Provide more detail about service state during startup/jruby instance creation #2841

Open Alives opened 5 months ago

Alives commented 5 months ago

/status/v1/services seems to return running state once the first jruby instance is started. I'd prefer to wait until all of my instances have started before exposing that the service is healthy. 1 instance cannot handle the flood of traffic soon to come its way.

/status/v1/services?level=debug gives more detail including:

Maybe if another metric could be exposed here of num-initialized-jrubies or equivalent, healthcheck could monitor that. And maybe also a way for the basic /status/v1/services to return startup instead of running until num-initialized-jrubies == num-jrubies while in a startup mode.

Are there currently any ways to prevent traffic until the service is ready regarding these contexts?

Alives commented 5 months ago

This is a dupe of https://github.com/puppetlabs/puppetserver/issues/2844