bfenetworks / bfe

A modern layer 7 load balancer from baidu
https://www.bfe-networks.net
Apache License 2.0
6.09k stars 942 forks source link

Active health check #385

Open iyangsj opened 4 years ago

iyangsj commented 4 years ago

Background

Description Add Active Health Check support:

Changes to configuration

type BackendCheck struct {
    ...
    CheckMode *string    // health check mode (PASSIVE/ACTIVE)
}
nitishm commented 4 years ago

@iyangsj I would love to take on this task. What would this entail?

iyangsj commented 4 years ago

@nitishm Thanks for your contribution! The issue has been updated.

nitishm commented 4 years ago

@iyangsj So I make the configuration change. Where does the configuration get used? I am searching for the existing passive health check code. Looking at healthcheck.go https://github.com/baidu/bfe/blob/develop/bfe_balance/backend/health_check.go but kind find the right place to plug it in.