How to Create Health check on Google cloud platform.

Google Cloud provides health checking mechanisms that determine if backends, such as instance groups and zonal network endpoint groups (NEGs), properly respond to traffic.

  • Login to google cloud platform portal.
  • Click on Compute Engine.
  • Select Health Checks.

 

Fig 1

 

  • Click on Create health check.

 

Fig 2

 

  • Provide the health check name.
  • Select protocol  & port number.
  • Provide a ASCll value on Request & Response. By default request and response are empty, which means that the established connection alone indicates health.

 

Fig. 3

 

  • Select  On  for health check logs otherwise select Off.
  • Provide Check interval (in seconds) to send a health check & Timeout to wait (in seconds) before a request is considered a failure.
  • Provide Healthy threshold  for consecutive successes must occur to mark a VM instance healthy.
  • Provide Unhealthy threshold for consecutive failures must occur to mark a VM instance unhealthy.
  • Click on Create.

 

Fig. 5

 

  • After some time,health check is ready.

 

Fig. 8

 

Create Health checks using shell:

 

Fig. 6

 

Leave a Reply

Your email address will not be published.