mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
check: added script checker (#195)
This commit is contained in:
1 parent
65d606d29c
commit
eaaa6d5aa9
6 files changed
+33
-5
No files matched your search
@@ -209,6 +209,8 @@ func (p *FwdrGroup) Check() {
|
||||
expect = ex
|
||||
}
|
||||
checker = newHttpChecker(addr, u.RequestURI(), expect, timeout)
|
||||
case "file":
|
||||
checker = newFileChecker(u.Host + u.Path)
|
||||
default:
|
||||
p.config.MaxFailures = 0
|
||||
log.F("[group] invalid check config `%s`, disable health checking", p.config.Check)
|
||||
|
||||
Reference in new issue
Block a user