Creating a health check on Google Cloud Platform

Last Updated : Apr 12, 2023 |

About this task

Google Cloud Platform enables you to create or select a health check when you complete the backend configuration of the load balancer in the console. The overall health state of each backend determines eligibility to receive new requests or connections.

You can use the same health check to configure the TCP and UDP load balancers.

Procedure

  1. Log on to the Google Cloud Platform.
  2. Navigate to Compute Engine > Health checks.
  3. Click Create a health check.
  4. On the Create a health check page, provide the following information:
  • Name: Name for the health check.

  • Description: Description of the health check.

  • Scope: Choose Regional and select Region.

  • Protocol: Select TCP.

  • Port: Enter 5060.

  • Check interval: Define the duration from the start of one probe to the start of the next one as 1 second.

  • Timeout: Define the duration for which Google Cloud waits for a response to a probe as 1 second.

  • Healthy threshold: Define the duration that Google Cloud waits for a response to a probe as 2.

  • Unhealthy threshold: Define the number of sequential probes that must fail for the VM instance to be considered unhealthy as 2.

  1. Click Create.