sipb / spike

Implementing a packet level software network load balancer
MIT License
11 stars 10 forks source link

[RFC] Support multiple types of health checking #43

Closed krawthekrow closed 6 years ago

krawthekrow commented 6 years ago

This is more of a proposal to allow testing without real backends. If I understand correctly, there might eventually be different types of backends with different health checking procedures (such as XVM-type backends) so this isn't unnecessary additional complexity.

cryslith commented 6 years ago

I think 4d08aaedbb31ba27123790c462513a44b6f4ca5b is unnecessary because of #30

cryslith commented 6 years ago

Need to fix merge conflicts

krawthekrow commented 6 years ago

Merge conflicts fixed. Changed so that you pass in a health check function instead of the enum (Lua still passes the enum to Go, but the enum is switched in lookup instead of health). Also changed the ticker code so that the first tick fires immediately.