4
votes

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?

3

3 Answers

4
votes

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.

3
votes

Google uses multiple systems to health check the probe, that is why you see multiple requests. Source here: https://cloud.google.com/load-balancing/docs/health-check-concepts#multiple-probers

On the same document, they explain that each of these multiple systems will still obey the check interval you defined: https://cloud.google.com/load-balancing/docs/health-check-concepts#probes

So, my understanding is that you can defined how often they check the health of you service, but you cannot define how many simultaneous systems are running to check the health.

0
votes

Please note this along with the Health check creation in GCP.

There are some mandate ingress rule to be added for the Health Check of Google LB's to work.

https://cloud.google.com/load-balancing/docs/health-check-concepts#ip-ranges