Search code examples
google-cloud-platformhealth-monitoring

Google Cloud HTTP Load Balancer health checks sends too many requests?


We've setup Wordpress in the Google Cloud (Kubernetes in Google Container Engnine if that matters) and configured an HTTP Load Balancer. As a part of doing this we've setup a health check that is configured like this:

enter image description here

But the strange thing is that when I tail the logs of the Wordpress instance it looks like this:

10.244.1.1 - - [21/Jan/2016:08:52:28 +0000] "GET /?healthCheck=true HTTP/1.1" 200 36784 "-" "GoogleHC/1.0"
10.244.1.1 - - [21/Jan/2016:08:52:30 +0000] "GET /?healthCheck=true HTTP/1.1" 200 36784 "-" "GoogleHC/1.0"
10.240.0.3 - - [21/Jan/2016:08:52:32 +0000] "GET /?healthCheck=true HTTP/1.1" 200 36784 "-" "GoogleHC/1.0"
10.244.1.1 - - [21/Jan/2016:08:52:33 +0000] "GET /?healthCheck=true HTTP/1.1" 200 36784 "-" "GoogleHC/1.0"
10.240.0.2 - - [21/Jan/2016:08:52:35 +0000] "GET /?healthCheck=true HTTP/1.1" 200 36784 "-" "GoogleHC/1.0"

I.e. it looks like the health check is sent every other second (or even more?). Why could this be?


Solution

  • There are several health checkers that health check your VM to provide redundancy in case of one health checker misbehaves or down. Each of them abide by configured health checking frequency.