sorintlab / stolon

PostgreSQL cloud native High Availability and more.
https://talk.stolon.io
Apache License 2.0
4.62k stars 443 forks source link

proxy: Add --exit-on-store-error flag #907

Open nh2 opened 1 year ago

nh2 commented 1 year ago

Workaround for #888.

--exit-on-store-error can be given when stolon-proxy is managed with something that will restart it on exit, e.g. systemd or similar.

nh2 commented 1 year ago

Note this workaround isn't perfect.

It will trigger the proces to exit even on temporary consul HTTP 500 errors that are recoverable.

It would be much better to distinguish between proper consul hangs, and such temporary errors.