Hi,
I've been working on a piece of code to announce IPs (via ExaBGP) only if:
* HAProxy is running
* HAProxy actually uses a given IP
* a frontend with given IP is up for few seconds.
I could do that via lsof but that's pretty processor-intensive. Is there a way to extract list of binded IPs (or, running config) via stats socket ? I found a way to do that with backend server IPs but I can't seem to find a way to do it for frontends.
Cheers, Mariusz
--
Mariusz Gronczewski, Administrator
Efigence S. A.
ul. Wołoska 9a, 02-583 Warszawa
T: [+48] 22 380 13 13
F: [+48] 22 380 13 14
E: mariusz.gronczewski@efigence.com <mailto:mariusz.gronczewski@efigence.com>
I've been working on a piece of code to announce IPs (via ExaBGP) only if:
* HAProxy is running
* HAProxy actually uses a given IP
* a frontend with given IP is up for few seconds.
I could do that via lsof but that's pretty processor-intensive. Is there a way to extract list of binded IPs (or, running config) via stats socket ? I found a way to do that with backend server IPs but I can't seem to find a way to do it for frontends.
Cheers, Mariusz
--
Mariusz Gronczewski, Administrator
Efigence S. A.
ul. Wołoska 9a, 02-583 Warszawa
T: [+48] 22 380 13 13
F: [+48] 22 380 13 14
E: mariusz.gronczewski@efigence.com <mailto:mariusz.gronczewski@efigence.com>