You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In current implementation, I noticed healthcheck function 1 does not support for retrying along with graceful handling. 2
Proposal
It would be nice to add a something failureThreshold to ConfigHealthCheck. So that after ping fails failureThreshold times in a row, go-dcp-client should treats the CB connection as unhealthy and triggers a restart/reconnect for that specific server.
erayarslan
changed the title
proposal: make healthcheck more resilient (retry + reconnect)
feat: make healthcheck more resilient (retry + reconnect)
Dec 18, 2023
In current implementation, I noticed healthcheck function 1 does not support for retrying along with graceful handling. 2
Proposal
It would be nice to add a something
failureThreshold
toConfigHealthCheck
. So that after ping fails failureThreshold times in a row, go-dcp-client should treats the CB connection as unhealthy and triggers a restart/reconnect for that specific server.Happy to discuss reasonable.
Footnotes
https://github.com/Trendyol/go-dcp-client/blob/16ab8a163b085e1578d688e0e38a617e8cfd028b/dcp.go#L56-L70 ↩
https://github.com/Trendyol/go-dcp-client/blob/16ab8a163b085e1578d688e0e38a617e8cfd028b/dcp.go#L117 ↩
The text was updated successfully, but these errors were encountered: