oxheadalpha / tezos-k8s

Deploy a Tezos Blockchain on Kubernetes
https://tezos-k8s.io/
MIT License
51 stars 26 forks source link

Add timeout for /is_synced endpoint in sidecar.py #581

Closed puppetninja closed 1 year ago

puppetninja commented 1 year ago

In out prod environment we could observe that requests piling up as there is no timeout in default requests get method. Here we timeout and close the connection timely to avoid the piling up.

This is an alternative way to fix the issue mentioned here https://github.com/oxheadalpha/tezos-k8s/pull/562

puppetninja commented 1 year ago

please see my latest comment I have updated the comment with right probe filed name, please have a review

harryttd commented 1 year ago

thank you!