Use load balancing to distribute user requests among sets of instances.
For more about scaling your application with load balancing, see Load Balancing and Scaling.
Before you begin
- If you want to use the command-line examples in this guide:
- If you want to use the API examples in this guide, set up API access.
Types of load balancing
Global external load balancing
- HTTP(S) load balancing distributes HTTP(S) traffic among groups of instances based on proximity to the user, the requested URL, or both.
- SSL Proxy load balancing distributes SSL traffic among groups of instances based on proximity to the user.
- TCP Proxy load balancing distributes TCP traffic among groups of instances based on proximity to the user.
Regional external load balancing
- Network load balancing distributes traffic among a pool of instances within a region. Network load balancing can balance any kind of TCP/UDP traffic.
Regional internal load balancing
- Internal load balancing distributes traffic from Google Cloud Platform virtual machine instances to a group of instances in the same region.
Load balancing pricing
See Load balancing and protocol forwarding on the Google Compute Engine Pricing page.