diff --git a/pkg/healthcheck/healthcheck.go b/pkg/healthcheck/healthcheck.go index 8f1d186..42e75c3 100644 --- a/pkg/healthcheck/healthcheck.go +++ b/pkg/healthcheck/healthcheck.go @@ -210,7 +210,8 @@ func (m *Manager) SetStatus(uuid string, status Status) error { func (m *Manager) sendWorkerUpdate(uuid string) { for _, worker := range m.Workers { if worker.UUIDStr == uuid { - worker.sendUpdate(worker.CheckResult) // send update with no change + // do update in the background, don't wait for it + go worker.sendUpdate(worker.CheckResult) // send update with no change } } } diff --git a/test/mercury-template.toml b/test/mercury-template.toml index 41d32b7..0cff602 100644 --- a/test/mercury-template.toml +++ b/test/mercury-template.toml @@ -299,7 +299,7 @@ method = "sticky,leastconnected" [[loadbalancer.pools.INTERNAL_VIP_LB.backends.example_lc.healthchecks]] # httpreply = "login" httpstatus = 200 - httprequest = "https://www.ghostbox.org" + httprequest = "https://www.exmple.com" # httppostdata = "" type = "httpget" # httpheaders = ["Content-Type: application/soap+xml; charset=utf-8"] @@ -606,10 +606,10 @@ domain = "dnsonly.nl" hostname = "test_lb_dns" ip = "%LOCALIP%" [[loadbalancer.pools.test_tcp.backends.test_lb_dns.nodes]] -hostname = "server2.local" +hostname = "server2" ip = "95.142.102.176" port = 80 [[loadbalancer.pools.test_tcp.backends.test_lb_dns.nodes]] -hostname = "server1.local" +hostname = "server1" ip = "95.142.102.175" port = 79