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.

 

Fig 1

 

  • Click on Create load balancer.

 

Fig 2

 

  • Select HTTP(S) Load Balancing.
  • Click on Start Configuration.

 

Fig. 3

 

  • Select internet-facing load balancer.
  • Then click on Continue.

 

Fig. 4

 

  • Provide the New HTTP(S) load balancer name.
  • Click on Backend configuration.

 

Fig. 5

 

  • Click on Create A Backend Service.

Fig. 6

 

  • Provide the backend service name.
  • Select backend type.
  • If needs to add Backends, Select the existing Instance group name.
  • Provide port numbers.

 

Fig. 7

 

  • 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%.

 

Fig. 7

 

  • 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.

 

Fig. 8

 

  • Click on Create a health check.

 

Fig. 9

 

 

Fig.10

 

  • Once Backend service is created then we can see Host & path rules and Frontend configuration also has been done.
  • Then click on Review & Finalize.

 

Fig.11

 

  • Then click on create.

 

Fig.12

 

  • After sometime load balancer is ready then go to load balancing home page.
  • Load Balancer is there with the name we provide.

 

Fig.13

 

Leave a Reply