sorintlab / stolon

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

feat: add retry times when request store #890

Closed shangjin92 closed 1 year ago

shangjin92 commented 1 year ago

Sometimes, the storage is not stable, and cannot get cluster data from storage, or maybe timeout. It will cause to stop listening, and disconnect current connection, but the keeper is actually healthy. So add retry method when request cluster data, it will make system more reliable.

sgotti commented 1 year ago

@shangjin92 This will defeat the purpose of the stolon proxy: stop connections when we can't know the cluster state. There's already a retry done by TimeoutChecker until ProxyTimeout. See https://github.com/sorintlab/stolon/blob/master/doc/architecture.md