I’ve been checking logging on some of my services. When I noticed that my services are basically being DDOS’d by the health check service.
See below for logs from one service. There is only one thing that calls “health check” on that service and thats the rancher health check (no external load balancer).
Why so many? There looks like many origins of this
- Every HAProxy Service (I have 6 hosts currently)
- From the healthcheck service on that host.
So we are looking at about That should be about 7 requests per 2 seconds, as you can see from the log below it is more. I’m not quite sure why HAProxy does a health check when you have a health check service? That seems like an odd setup?
I would expect the health check service to test the services then update HAProxy config (via etc or similar). What happens when I have 10,20,30 nodes? This doesn’t seem scalable?
(RancherOS 0.8.1, Rancher Server 1.5.3, Cattle Stack everything running latest updates.)
3/28/2017 4:18:28 PM10.42.167.221 - - [28/Mar/2017:15:18:28 +0000] "GET /healthcheck HTTP/1.0" 200 82 "-" "-" 19
3/28/2017 4:18:28 PM10.42.45.119 - - [28/Mar/2017:15:18:28 +0000] "GET /healthcheck HTTP/1.1" 200 - "-" "Jersey/2.23.1 (HttpUrlConnection 1.8.0_121)" 21
3/28/2017 4:18:28 PM10.42.195.86 - - [28/Mar/2017:15:18:28 +0000] "GET /healthcheck HTTP/1.0" 200 82 "-" "-" 22
3/28/2017 4:18:28 PM10.42.45.119 - - [28/Mar/2017:15:18:28 +0000] "GET /healthcheck HTTP/1.1" 200 - "-" "Jersey/2.23.1 (HttpUrlConnection 1.8.0_121)" 26
3/28/2017 4:18:28 PM10.42.197.10 - - [28/Mar/2017:15:18:28 +0000] "GET /healthcheck HTTP/1.0" 200 82 "-" "-" 26
3/28/2017 4:18:28 PM10.42.45.119 - - [28/Mar/2017:15:18:28 +0000] "GET /healthcheck HTTP/1.1" 200 - "-" "Jersey/2.23.1 (HttpUrlConnection 1.8.0_121)" 17
3/28/2017 4:18:28 PM10.42.43.37 - - [28/Mar/2017:15:18:28 +0000] "GET /healthcheck HTTP/1.0" 200 82 "-" "-" 19
3/28/2017 4:18:29 PM10.42.45.119 - - [28/Mar/2017:15:18:29 +0000] "GET /healthcheck HTTP/1.1" 200 - "-" "Jersey/2.23.1 (HttpUrlConnection 1.8.0_121)" 16
3/28/2017 4:18:29 PM10.42.163.10 - - [28/Mar/2017:15:18:29 +0000] "GET /healthcheck HTTP/1.0" 200 82 "-" "-" 19
3/28/2017 4:18:29 PM10.42.45.119 - - [28/Mar/2017:15:18:29 +0000] "GET /healthcheck HTTP/1.1" 200 - "-" "Jersey/2.23.1 (HttpUrlConnection 1.8.0_121)" 17
3/28/2017 4:18:29 PM10.42.161.170 - - [28/Mar/2017:15:18:29 +0000] "GET /healthcheck HTTP/1.0" 200 82 "-" "-" 20
3/28/2017 4:18:29 PM10.42.45.119 - - [28/Mar/2017:15:18:29 +0000] "GET /healthcheck HTTP/1.1" 200 - "-" "Jersey/2.23.1 (HttpUrlConnection 1.8.0_121)" 22
3/28/2017 4:18:29 PM10.42.39.7 - - [28/Mar/2017:15:18:29 +0000] "GET /healthcheck HTTP/1.0" 200 82 "-" "-" 24
3/28/2017 4:18:30 PM10.42.45.119 - - [28/Mar/2017:15:18:30 +0000] "GET /healthcheck HTTP/1.1" 200 - "-" "Jersey/2.23.1 (HttpUrlConnection 1.8.0_121)" 18
3/28/2017 4:18:30 PM10.42.167.221 - - [28/Mar/2017:15:18:30 +0000] "GET /healthcheck HTTP/1.0" 200 82 "-" "-" 21
3/28/2017 4:18:30 PM10.42.45.119 - - [28/Mar/2017:15:18:30 +0000] "GET /healthcheck HTTP/1.1" 200 - "-" "Jersey/2.23.1 (HttpUrlConnection 1.8.0_121)" 20
3/28/2017 4:18:30 PM10.42.195.86 - - [28/Mar/2017:15:18:30 +0000] "GET /healthcheck HTTP/1.0" 200 82 "-" "-" 22
3/28/2017 4:18:30 PM10.42.45.119 - - [28/Mar/2017:15:18:30 +0000] "GET /healthcheck HTTP/1.1" 200 - "-" "Jersey/2.23.1 (HttpUrlConnection 1.8.0_121)" 26
3/28/2017 4:18:30 PM10.42.197.10 - - [28/Mar/2017:15:18:30 +0000] "GET /healthcheck HTTP/1.0" 200 82 "-" "-" 27
3/28/2017 4:18:30 PM10.42.45.119 - - [28/Mar/2017:15:18:30 +0000] "GET /healthcheck HTTP/1.1" 200 - "-" "Jersey/2.23.1 (HttpUrlConnection 1.8.0_121)" 16
3/28/2017 4:18:30 PM10.42.43.37 - - [28/Mar/2017:15:18:30 +0000] "GET /healthcheck HTTP/1.0" 200 82 "-" "-" 19
3/28/2017 4:18:31 PM10.42.45.119 - - [28/Mar/2017:15:18:31 +0000] "GET /healthcheck HTTP/1.1" 200 - "-" "Jersey/2.23.1 (HttpUrlConnection 1.8.0_121)" 17
3/28/2017 4:18:31 PM10.42.163.10 - - [28/Mar/2017:15:18:31 +0000] "GET /healthcheck HTTP/1.0" 200 82 "-" "-" 19
3/28/2017 4:18:31 PM10.42.45.119 - - [28/Mar/2017:15:18:31 +0000] "GET /healthcheck HTTP/1.1" 200 - "-" "Jersey/2.23.1 (HttpUrlConnection 1.8.0_121)" 15
3/28/2017 4:18:31 PM10.42.161.170 - - [28/Mar/2017:15:18:31 +0000] "GET /healthcheck HTTP/1.0" 200 82 "-" "-" 17
3/28/2017 4:18:31 PM10.42.45.119 - - [28/Mar/2017:15:18:31 +0000] "GET /healthcheck HTTP/1.1" 200 - "-" "Jersey/2.23.1 (HttpUrlConnection 1.8.0_121)" 20
3/28/2017 4:18:31 PM10.42.39.7 - - [28/Mar/2017:15:18:31 +0000] "GET /healthcheck HTTP/1.0" 200 82 "-" "-" 21
3/28/2017 4:18:32 PM10.42.45.119 - - [28/Mar/2017:15:18:32 +0000] "GET /healthcheck HTTP/1.1" 200 - "-" "Jersey/2.23.1 (HttpUrlConnection 1.8.0_121)" 21
3/28/2017 4:18:32 PM10.42.167.221 - - [28/Mar/2017:15:18:32 +0000] "GET /healthcheck HTTP/1.0" 200 82 "-" "-" 23
3/28/2017 4:18:32 PM10.42.45.119 - - [28/Mar/2017:15:18:32 +0000] "GET /healthcheck HTTP/1.1" 200 - "-" "Jersey/2.23.1 (HttpUrlConnection 1.8.0_121)" 29
3/28/2017 4:18:32 PM10.42.195.86 - - [28/Mar/2017:15:18:32 +0000] "GET /healthcheck HTTP/1.0" 200 82 "-" "-" 30
3/28/2017 4:18:32 PM10.42.45.119 - - [28/Mar/2017:15:18:32 +0000] "GET /healthcheck HTTP/1.1" 200 - "-" "Jersey/2.23.1 (HttpUrlConnection 1.8.0_121)" 58
3/28/2017 4:18:32 PM10.42.197.10 - - [28/Mar/2017:15:18:32 +0000] "GET /healthcheck HTTP/1.0" 200 82 "-" "-" 60
3/28/2017 4:18:32 PM10.42.45.119 - - [28/Mar/2017:15:18:32 +0000] "GET /healthcheck HTTP/1.1" 200 - "-" "Jersey/2.23.1 (HttpUrlConnection 1.8.0_121)" 62
3/28/2017 4:18:32 PM10.42.43.37 - - [28/Mar/2017:15:18:32 +0000] "GET /healthcheck HTTP/1.0" 200 82 "-" "-" 63
3/28/2017 4:18:33 PM10.42.45.119 - - [28/Mar/2017:15:18:33 +0000] "GET /healthcheck HTTP/1.1" 200 - "-" "Jersey/2.23.1 (HttpUrlConnection 1.8.0_121)" 45
3/28/2017 4:18:33 PM10.42.163.10 - - [28/Mar/2017:15:18:33 +0000] "GET /healthcheck HTTP/1.0" 200 82 "-" "-" 50
3/28/2017 4:18:33 PM10.42.45.119 - - [28/Mar/2017:15:18:33 +0000] "GET /healthcheck HTTP/1.1" 200 - "-" "Jersey/2.23.1 (HttpUrlConnection 1.8.0_121)" 24
3/28/2017 4:18:33 PM10.42.161.170 - - [28/Mar/2017:15:18:33 +0000] "GET /healthcheck HTTP/1.0" 200 82 "-" "-" 26
3/28/2017 4:18:33 PM10.42.45.119 - - [28/Mar/2017:15:18:33 +0000] "GET /healthcheck HTTP/1.1" 200 - "-" "Jersey/2.23.1 (HttpUrlConnection 1.8.0_121)" 23
3/28/2017 4:18:33 PM10.42.39.7 - - [28/Mar/2017:15:18:33 +0000] "GET /healthcheck HTTP/1.0" 200 82 "-" "-" 24
3/28/2017 4:18:34 PM10.42.45.119 - - [28/Mar/2017:15:18:34 +0000] "GET /healthcheck HTTP/1.1" 200 - "-" "Jersey/2.23.1 (HttpUrlConnection 1.8.0_121)" 64
3/28/2017 4:18:34 PM10.42.167.221 - - [28/Mar/2017:15:18:34 +0000] "GET /healthcheck HTTP/1.0" 200 82 "-" "-" 66
3/28/2017 4:18:34 PM10.42.45.119 - - [28/Mar/2017:15:18:34 +0000] "GET /healthcheck HTTP/1.1" 200 - "-" "Jersey/2.23.1 (HttpUrlConnection 1.8.0_121)" 22
3/28/2017 4:18:34 PM10.42.195.86 - - [28/Mar/2017:15:18:34 +0000] "GET /healthcheck HTTP/1.0" 200 82 "-" "-" 25
3/28/2017 4:18:34 PM10.42.45.119 - - [28/Mar/2017:15:18:34 +0000] "GET /healthcheck HTTP/1.1" 200 - "-" "Jersey/2.23.1 (HttpUrlConnection 1.8.0_121)" 28
3/28/2017 4:18:34 PM10.42.197.10 - - [28/Mar/2017:15:18:34 +0000] "GET /healthcheck HTTP/1.0" 200 82 "-" "-" 32
3/28/2017 4:18:34 PM10.42.45.119 - - [28/Mar/2017:15:18:34 +0000] "GET /healthcheck HTTP/1.1" 200 - "-" "Jersey/2.23.1 (HttpUrlConnection 1.8.0_121)" 16
3/28/2017 4:18:34 PM10.42.43.37 - - [28/Mar/2017:15:18:34 +0000] "GET /healthcheck HTTP/1.0" 200 82 "-" "-" 19
3/28/2017 4:18:35 PM10.42.45.119 - - [28/Mar/2017:15:18:35 +0000] "GET /healthcheck HTTP/1.1" 200 - "-" "Jersey/2.23.1 (HttpUrlConnection 1.8.0_121)" 17
3/28/2017 4:18:35 PM10.42.163.10 - - [28/Mar/2017:15:18:35 +0000] "GET /healthcheck HTTP/1.0" 200 82 "-" "-" 19
3/28/2017 4:18:35 PM10.42.45.119 - - [28/Mar/2017:15:18:35 +0000] "GET /healthcheck HTTP/1.1" 200 - "-" "Jersey/2.23.1 (HttpUrlConnection 1.8.0_121)" 16
3/28/2017 4:18:35 PM10.42.161.170 - - [28/Mar/2017:15:18:35 +0000] "GET /healthcheck HTTP/1.0" 200 82 "-" "-" 18
3/28/2017 4:18:35 PM10.42.45.119 - - [28/Mar/2017:15:18:35 +0000] "GET /healthcheck HTTP/1.1" 200 - "-" "Jersey/2.23.1 (HttpUrlConnection 1.8.0_121)" 15
3/28/2017 4:18:35 PM10.42.39.7 - - [28/Mar/2017:15:18:35 +0000] "GET /healthcheck HTTP/1.0" 200 82 "-" "-" 18
3/28/2017 4:18:36 PM10.42.45.119 - - [28/Mar/2017:15:18:36 +0000] "GET /healthcheck HTTP/1.1" 200 - "-" "Jersey/2.23.1 (HttpUrlConnection 1.8.0_121)" 15
3/28/2017 4:18:36 PM10.42.167.221 - - [28/Mar/2017:15:18:36 +0000] "GET /healthcheck HTTP/1.0" 200 82 "-" "-" 17
3/28/2017 4:18:36 PM10.42.45.119 - - [28/Mar/2017:15:18:36 +0000] "GET /healthcheck HTTP/1.1" 200 - "-" "Jersey/2.23.1 (HttpUrlConnection 1.8.0_121)" 18
3/28/2017 4:18:36 PM10.42.195.86 - - [28/Mar/2017:15:18:36 +0000] "GET /healthcheck HTTP/1.0" 200 82 "-" "-" 20
3/28/2017 4:18:36 PM10.42.45.119 - - [28/Mar/2017:15:18:36 +0000] "GET /healthcheck HTTP/1.1" 200 - "-" "Jersey/2.23.1 (HttpUrlConnection 1.8.0_121)" 15
3/28/2017 4:18:36 PM10.42.197.10 - - [28/Mar/2017:15:18:36 +0000] "GET /healthcheck HTTP/1.0" 200 82 "-" "-" 18
3/28/2017 4:18:36 PM10.42.45.119 - - [28/Mar/2017:15:18:36 +0000] "GET /healthcheck HTTP/1.1" 200 - "-" "Jersey/2.23.1 (HttpUrlConnection 1.8.0_121)" 16
3/28/2017 4:18:36 PM10.42.43.37 - - [28/Mar/2017:15:18:36 +0000] "GET /healthcheck HTTP/1.0" 200 82 "-" "-" 17
3/28/2017 4:18:37 PM10.42.45.119 - - [28/Mar/2017:15:18:37 +0000] "GET /healthcheck HTTP/1.1" 200 - "-" "Jersey/2.23.1 (HttpUrlConnection 1.8.0_121)" 16
3/28/2017 4:18:37 PM10.42.163.10 - - [28/Mar/2017:15:18:37 +0000] "GET /healthcheck HTTP/1.0" 200 82 "-" "-" 19
3/28/2017 4:18:37 PM10.42.45.119 - - [28/Mar/2017:15:18:37 +0000] "GET /healthcheck HTTP/1.1" 200 - "-" "Jersey/2.23.1 (HttpUrlConnection 1.8.0_121)" 17
3/28/2017 4:18:37 PM10.42.161.170 - - [28/Mar/2017:15:18:37 +0000] "GET /healthcheck HTTP/1.0" 200 82 "-" "-" 19
3/28/2017 4:18:37 PM10.42.45.119 - - [28/Mar/2017:15:18:37 +0000] "GET /healthcheck HTTP/1.1" 200 - "-" "Jersey/2.23.1