Would storing a flag in shared memory and checking it on /healthcheck requests do the trick?
For example,
1. flag is initialized with true
2. a request can be sent to turn it to false (or vice versa)
3. now each /healthcheck request checks the flag and responds with failure
Are there any other thing that have to be considered to account for multiple workers?
Can anyone recommend the best way to do this?
Thank you!