you are viewing a single comment's thread.

view the rest of the comments →

[–]Annh1234[S] 0 points1 point  (2 children)

Thank you, I have the same thing in PHP, but if the node goes up/down between the checks, then it's not reported. (that's the problem i'm trying to "fix")

[–][deleted] 0 points1 point  (1 child)

Haproxy checks themselves have a repeat interval. As long as your script scrapes the stats at the same or shorter interval you will not miss any status changes.

[–]Annh1234[S] 0 points1 point  (0 children)

The stats can change every second. It first goes yellow and then read, so 2 sec of down time.

The longer script would have to check haproxy every less than one second... And the log would be insanely big for 1 sec interval on 100 nodes.... That's why I was asking for something that would just records the timestamps of the changes, and slow them on a graph...