Reputation: 40520
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:
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?
Upvotes: 5
Views: 6598
Reputation: 2579
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
Upvotes: 0
Reputation: 1547
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.
Upvotes: 3
Reputation: 130
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.
Upvotes: 4