| 1 |
= Proxy Load Balancing |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
*Goal:* To configure a server to load-balanceproxied requests across |
| 6 |
multiple home servers. |
| 7 |
|
| 8 |
*Time:* 10-15 minutes |
| 9 |
|
| 10 |
*File:* |
| 11 |
|
| 12 |
- `etc/raddb/proxy.conf` |
| 13 |
|
| 14 |
*Diagram:* |
| 15 |
|
| 16 |
image::proxy_load_balance.svg[Fig. Proxy Loadbalance] |
| 17 |
|
| 18 |
For this exercise, the users will be divided into the same groups as |
| 19 |
the previous exercise in xref:proxy_failover.adoc[Proxy Failover]. |
| 20 |
|
| 21 |
User 1 will edit his `proxy.conf` file, so that the entries for |
| 22 |
"realm2" are marked as load balancing. The users will send multiple |
| 23 |
requests to the server for "realm1", and observe how the proxied |
| 24 |
requests are distributed among the servers for "realm2". |
| 25 |
|
| 26 |
== Questions |
| 27 |
|
| 28 |
1. Why is load balancing useful? |
| 29 |
2. How is load balancing different than fail-over? |
| 30 |
3. What happens to the load balancing when one of the "realm2" |
| 31 |
servers is stopped, and the server for "realm1" tries to proxy |
| 32 |
requests to it? |
| 33 |
4. How would this exercise be different if there were more than two |
| 34 |
home server to load balance to? |
| 35 |
5. If the load balancing home server which has "failed" is started |
| 36 |
again, will the proxying server ever send requests to it again? If so, |
| 37 |
when? If not, why not? |
| 38 |
|
| 39 |
// Copyright (C) 2021 Network RADIUS SAS. Licenced under CC-by-NC 4.0. |
| 40 |
// This documentation was developed by Network RADIUS SAS. |