Google Cloud Load Balancer
The Google Cloud Load Balancer (GCLB) is a software defined globally distributed load balancing service. It enables GCP users to distribute applications across the world and scale compute up and down with very little configuration and cost. It allows for 0 to 1 million requests per second (rps) with no pre-warming.
Scale your application
Support heavy traffic
Detect and automatically remove unhealthy virtual machine instance
Route traffic to the closest virtual machine
Click > home > Network service >Load Balancing >create> HTTP(s) Load Balancer(choice any one )
Session Affinity :-
Session affinity sends all request from the same client to the same
Virtual machine instance as long as the instance stays healthy and has capacity.
GCP HTTP(s) LOad Balancing offers two types of session affinity
Client IP affinity
Generated cookie affinity
Load Balancer types : —
Global external load balancing
- HTTP(s) load balancing
- SSL Proxy Load balancing
- TCP Proxy load balancing
Regional external load balancing
- Network load balancing
- Regional internal load balancing
- Internal load balancing
HTTP Load Balancer :– GLOBAl
WEB Socket :-
You can use stackdriver logging for logging
Timeout’s and Retries
HTTP(s) load balancing has a default response timeout of 30 seconds
HTTP(s) load balancing has a TCP session timeout of 10 minutes (600 seconds by default
HTTP(s) load balancing retries failed GET request , but does not retry failed POST request
SSL & TCP LOAD Balancer:-
TCP Proxy Load Balancing Concepts:-
Google Cloud Platform (GCP) TCP Proxy Load Balancing allows you to use a single IP address for all users around the world. GCP TCP proxy load balancing automatically routes traffic to the instances that are closest to the user.
Cloud TCP Proxy Load Balancing is intended for non-HTTP traffic. For HTTP traffic, use HTTP Load Balancing instead. For proxied SSL traffic, use SSL Proxy Load Balancing.
TCP Proxy Load Balancing supports both IPv4 and IPv6 addresses for client traffic. Client IPv6 requests are terminated at the load balancing layer, then proxied over IPv4 to your backends.
TCP Proxy Load Balancing support the following ports:-
SSL Proxy Load Balancing Concepts:-
Google Cloud SSL Proxy Load Balancing terminates user SSL (TLS) connections at the load balancing layer, then balances the connections across your instances using the SSL or TCP protocols. Cloud SSL proxy is intended for non-HTTP(S) traffic. For HTTP(S) traffic, HTTP(S) load balancing is recommended instead.
SSL Proxy Load Balancing supports both IPv4 and IPv6 addresses for client traffic. Client IPv6 requests are terminated at the load balancing layer, then proxied over IPv4 to your backends
Better utilization of the virtual machine instances
SSL proxy supports the following ports : 25,43,110,143,195,443,465,587,700,993,995,1883,5222
Network services > Load Balancing > create >TCP Load balancing (start config)
GCE: Auto Scaling :–
Compute engine > instance group