google / seesaw

Seesaw v2 is a Linux Virtual Server (LVS) based load balancing platform.
Apache License 2.0
5.65k stars 511 forks source link

Avoid seesaw_ha crashing when processing large amount of services #70

Closed liuyuan10 closed 4 years ago

liuyuan10 commented 4 years ago
When there are large number of services, it takes minutes for the engine
main  goroutine to process the config. seesaw_ha will failed to push ha
update to the engine and goes into a crash loop.

This change make seesaw_ha wait longer and have the seesaw_engine main
goroutine process ha state at a higher priority.