How to Create internet-facing load balancer on Google Cloud Platform.
Load balancing is the process of distributing traffic across your network of servers to ensure that the system does not get overwhelmed and all requests are handled easily and efficiently.
An internet-facing load balancer has a publicly resolvable DNS name, so it can route requests from clients over the internet to the EC2 instances that are registered with the load balancer.
- Login to google cloud platform portal.
- Click on Network services.
- Select Load balancing.
- Click on Create load balancer.
- Select HTTP(S) Load Balancing.
- Click on Start Configuration.
- Select internet-facing load balancer.
- Then click on Continue.
- Provide the New HTTP(S) load balancer name.
- Click on Backend configuration.
- Click on Create A Backend Service.
- Provide the backend service name.
- Select backend type.
- If needs to add Backends, Select the existing Instance group name.
- Provide port numbers.
- Provide the max backend utilization & Capacity. If you want your instances to operate at a max 80% backend utilization, set your balancing mode to 80% max backend utilization and your capacity to 100%.
- By default Cloud CDN is disable. Cloud CDN caches HTTP(S) content closer to your users so content delivery is faster while also reducing serving costs.
- Click on Health Check.
- Click on Create a health check.
- Create a new or existing health check so click on link https://www.hackerxone.com/blog/how-create-health-check-google-cloud-platform for how to create health check.
- Once Backend service is created then we can see Host & path rules and Frontend configuration also has been done.
- Then click on Review & Finalize.
- Then click on create.
- After sometime load balancer is ready then go to load balancing home page.
- Load Balancer is there with the name we provide.