Sticky session
来源:互联网 发布:淘宝手机图片尺寸 编辑:程序博客网 时间:2024/05/15 17:37
转载地址: http://blog.touchhappy.com/technology/sticky-session/
Sticky sessions work with the load balancer to improve efficiency of Persistent Sessions in a clustered configuration.
In a clustered configuration, the load balancer sends requests to multiple backend Resin servers. Each session has an owning Resin server and a backup Resin server. The load balancer will send a session’s request to the owning server or to the backup if the owning server is not available. The association of a session with a backend server is called “sticky sessions”.
Because the load balancing occurs before any interpretation of the Virtual Host or Web Application, it’s a <server> configuration variable, with the <session-cookie> directive.
Sticky Session encoding
Sticky sessions encodes the session cookie with the owning server. The encoding using a simple prefix value. ‘a’ refers to the first server in the cluster, ‘b’ refers to the second server, …, ‘z’ refers to the 26th server.
So the session cookie JSESSIONID=cnn8x02mPph_4sOKlbn would go to the third server, 192.168.0.12 in the following configuration
<cluster> <srun id="a" host="192.168.0.10" port="6802"/> <srun id="b" host="192.168.0.11" port="6803"/> <srun id="c" host="192.168.0.12" port="6803"/></cluster>
Note that this encoding works with ;jsessionid= as well, so a request to /test.jsp;jsesssionid=cnn8x02mPph_4sOKlbn would go to the third server.
- Sticky session
- session Replication & session sticky
- 关于Nginx session sticky
- 关于Nginx session sticky
- 关于Nginx session sticky
- 关于Nginx session sticky
- 分布式session会话Sticky Sessions
- nginx sticky 提供session 保持
- HAproxy with session sticky and HA
- windows+apache+Session Sticky的Tomcat集群
- Tomcat集群session管理解决方案(关于sticky session、session replication与使用memcached缓存session)
- Tomcat集群session管理解决方案(关于sticky session、session replication与使用memcached缓存session)
- Apache+Tomcat关于Session Sticky的负载均衡
- Apache+Tomcat关于Session Sticky的负载均衡
- Apache+Tomcat关于Session Sticky的负载均衡
- Nginx+Memcached+Tomcat集群配置实践(Sticky Session)
- Nginx+Memcached+Tomcat集群配置实践(Sticky Session)
- Apache+Tomcat关于Session Sticky的负载均衡
- Struts2基础
- 异步、sql转换成xml、保存到数据库出现异常
- 如何从零开始学好 Ruby?
- REST WebService与SOAP WebService的比较
- 让程序随机不定时间生成随机种类的图形并生成多个
- Sticky session
- 计算大数阶乘--Dos批处理版
- 查找Oracle数据库中占用最多CPU的SQL
- 南工acm11、12两年获奖
- 雷锋网专访8684 CEO夏天天:用户是最好的数据采集团队
- malloc,calloc,realloc等内存分配函数区别
- rpm包搜索网站
- 对Memcached的使用的总结
- ArcGIS API for Silverlight 鼠标移入移出地图要素弹出窗口(优化处理)