0
0
GCPcloud~30 mins

Health checks configuration in GCP - Mini Project: Build & Apply

Choose your learning style9 modes available
Health checks configuration
📖 Scenario: You are setting up a Google Cloud Platform (GCP) load balancer to distribute traffic to your web servers. To ensure traffic is only sent to healthy servers, you need to configure health checks that monitor the servers' status.
🎯 Goal: Build a health check configuration in GCP that checks the health of backend instances by sending HTTP requests to a specific path and port.
📋 What You'll Learn
Create a health check resource with a specific name
Set the health check to use HTTP protocol
Configure the health check to check a specific port and request path
Set the check interval and timeout values
💡 Why This Matters
🌍 Real World
Health checks are essential to ensure that load balancers only send traffic to servers that are working properly, improving reliability and user experience.
💼 Career
Cloud engineers and DevOps professionals regularly configure health checks to maintain high availability and fault tolerance in cloud infrastructure.
Progress0 / 4 steps
1
Create the initial health check resource dictionary
Create a dictionary called health_check with the key name set to "my-health-check".
GCP
Need a hint?

Use a Python dictionary with the key name and value "my-health-check".

2
Add protocol and port configuration
Add the keys type with value "HTTP" and port with value 80 to the health_check dictionary.
GCP
Need a hint?

Add "type": "HTTP" and "port": 80 inside the dictionary.

3
Add request path and timing settings
Add the keys requestPath with value "/health", checkIntervalSec with value 5, and timeoutSec with value 3 to the health_check dictionary.
GCP
Need a hint?

Add the keys for the request path and timing inside the dictionary.

4
Complete the health check configuration
Add the key unhealthyThreshold with value 2 and healthyThreshold with value 3 to the health_check dictionary to complete the configuration.
GCP
Need a hint?

Set the thresholds for healthy and unhealthy checks.