paritytech / scripts

Collection of Dockerfiles, scripts and related resources
Apache License 2.0
42 stars 39 forks source link

optimize ws-health-exporter #636

Closed BulatSaif closed 6 months ago

BulatSaif commented 6 months ago

Issue: https://github.com/paritytech/helm-charts/issues/330

When ws-health-exporter is used as a sidecar in Kubernetes, it adds a delay to the start and stop of the pod.

During startup, the node needs a couple of seconds to reach 10 peers. If we have 2 peers, it should be enough.

During shutdown, the container ignores the signal from Kubernetes, causing it to hang for another 30 seconds while the main container is dead.