mehdy / keepalived-exporter

Prometheus Keepalived exporter
GNU General Public License v3.0
115 stars 37 forks source link

feat: open the keepalived stats file with retry support #99

Closed mingqing closed 1 year ago

mingqing commented 1 year ago

In the default wait time of 10ms, if the keepalive state has not been generated, setting the max wait time to 100ms in the PROD ENV has been met the requirements.

Here, the max waiting time for the state file is set to 2s, and the waiting time for each retry will gradually increase. If the file is not generated in the first 10ms, then wait for 50ms, 100ms, 200ms, 400ms, 800ms, and 1s sequentially. If it is not completed within the max total waiting time of 2s, the service is considered to have failed.

85

Closes #75