Jamie Hannaford | e514541 | 2014-11-06 12:35:59 +0100 | [diff] [blame] | 1 | /* |
Jamie Hannaford | cfe2f28 | 2014-11-07 15:11:21 +0100 | [diff] [blame] | 2 | Package sessions provides information and interaction with the Session |
| 3 | Persistence feature of the Rackspace Cloud Load Balancer service. |
Jamie Hannaford | e514541 | 2014-11-06 12:35:59 +0100 | [diff] [blame] | 4 | |
| 5 | Session persistence is a feature of the load balancing service that forces |
| 6 | multiple requests from clients (of the same protocol) to be directed to the |
| 7 | same node. This is common with many web applications that do not inherently |
| 8 | share application state between back-end servers. |
| 9 | |
| 10 | There are two modes to choose from: HTTP_COOKIE and SOURCE_IP. You can only set |
| 11 | one of the session persistence modes on a load balancer, and it can only |
| 12 | support one protocol. If you set HTTP_COOKIE mode for an HTTP load balancer, it |
| 13 | supports session persistence for HTTP requests only. Likewise, if you set |
| 14 | SOURCE_IP mode for an HTTPS load balancer, it supports session persistence for |
| 15 | only HTTPS requests. |
| 16 | |
| 17 | To support session persistence for both HTTP and HTTPS requests concurrently, |
| 18 | choose one of the following options: |
| 19 | |
| 20 | - Use two load balancers, one configured for session persistence for HTTP |
| 21 | requests and the other configured for session persistence for HTTPS requests. |
| 22 | That way, the load balancers support session persistence for both HTTP and |
| 23 | HTTPS requests concurrently, with each load balancer supporting one of the |
| 24 | protocols. |
| 25 | |
| 26 | - Use one load balancer, configure it for session persistence for HTTP requests, |
| 27 | and then enable SSL termination for that load balancer. The load balancer |
| 28 | supports session persistence for both HTTP and HTTPS requests concurrently. |
| 29 | */ |
| 30 | package sessions |