codership / glb

Galera Load Balancer - a simple TCP connection proxy and load-balancing library
GNU General Public License v2.0
153 stars 51 forks source link

about watchdog #21

Open limbo127 opened 7 years ago

limbo127 commented 7 years ago

Hello, I've devellop some watchdog using glb_wdog_backend model. It is working well, excect that router are only update after second watchdog call. The first call ( after add with echo ip:port;weight ) set ctx ->state to 3 , but it seems that's router is not update this first time, i must patient during -i interval Can you explain this behaviour Regards, Nicolas .

ayurchen commented 7 years ago

If I understood the question correctly, the reason for that is the watchdog main loop behavior where it waits for the preset interval to get as many destinations to report their states before processing the results (as opposed to reacting to every report). This is done to minimize computational expenses.