Cloud Load Balancing Flashcards
What is cloud Load Balancing?
It is a means to distribute workloads across cloud infrastructure.
What are 5 key points of Cloud Load Balancing?
- it distributes workloads across cloud infrastructure
- it adapts to failed or degraded servers
- autoscales resources to accommodate changes in workloads
- supports internal load balancing so IP addresses don’e need to be exposed
- can load balance HTTP, HTTPS, TCP/SSL and UDP
What are three main features of GCP load balancers?
- Global vs Regional
- External vs Internal
- Traffic Type
What are the differences between global and regional load balancers?
Global has 3 load balancers.
1. HTTP(S) - balances HTTP and HTTPS
2. SSL Proxy - terminates SSL/TLS connections
3. TCP Proxy - terminates TCP sessions at the load balancer then forwards traffic to backend servers
Regional
1. Internal TCP/UDP - balances TCP/UDP traffic on private networks hosting internal VMs
2. Network TCP/UDP - balances based on IP protocol, address and port, used for SSL and TCP traffic not supported by the SSL Proxy and TCP Proxy Load balancers
What is the difference between internal and external load balancing?
External distributes traffic from the internet while internal distributes traffic that originates within GCP. The Internal TCP/UDP load balancer is the only internal load balancer
How do you set up load balancing via command line?
gcloud compute forwarding-rules create [NAME] –port=[PORT] –target-pool [POOL]
target pools are created via :gcloud compute target-pools add-instances [NAME] –instances [INSTANCE 1, INSTANCE 2…]