docs: add load balancing weight documentation (#1883)

This commit is contained in:
Travis Groth 2021-02-17 12:36:47 -05:00 committed by GitHub
parent 5dac6ec671
commit ee28f008b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 27 additions and 5 deletions

View file

@ -105,6 +105,23 @@ policy:
least_request_lb_config:
choice_count: 2 # current envoy default
```
## Load Balancing Weight
When a list of upstream URLs is specified in the `to` field, you may append an optional load balancing weight parameter. The individual [`lb_policy`](#load-balancing-method) settings will take this weighting into account when making routing decisions.
### Example
This configuration uses the default `round_robin` load balancer policy but specifies different frequency of selection be applied to the upstreams.
```yaml
policy:
- from: https://myapp.localhost.pomerium.io
to:
- http://myapp-srv-1:8080,10
- http://myapp-srv-2:8080,20
- http://myapp-srv-3:8080,30
- http://myapp-srv-4:8080,20
- http://myapp-srv-5:8080,10
```
## Further reading
- [Introduction to modern network load balancing and proxying](https://blog.envoyproxy.io/introduction-to-modern-network-load-balancing-and-proxying-a57f6ff80236)

View file

@ -14,7 +14,8 @@ description: >-
With the v0.13 release, routes may contain [multiple `to` URLs](/reference/#to), and Pomerium will load balance between the endpoints. This allows Pomerium to fill the role of an edge proxy without the need for additional HTTP load balancers.
* Active [health checks](/reference/#health-checks) and passive [outlier detection](/reference/#outlier-detection)
* Configurable [load balancing algorithms](/reference/#load-balancing-policy)
* Configurable [load balancing policies](/reference/#load-balancing-policy)
* Configurable [load balancing weight](/reference/#to)
See [Load Balancing](/docs/topics/load-balancing) for more information on using this feature set.