-
FEATURED COMPONENTS
First time here? Check out the FAQ!
请教一下,我在apache2.2.15上配置负载均衡,普通的JSP可以在两个Tomcat中共享Session,但ZK的程序会Timeout,这是为什么呢?
以下为Apache的配置:
ProxyRequests Off <proxy balancer://cluster> BalancerMember ajp://127.0.0.1:8009 loadfactor=1 route=s1 smax=5 max=20 ttl=120 retry=300 timeout=15 BalancerMember ajp://127.0.0.1:8109 loadfactor=1 route=s2 smax=5 max=20 ttl=120 retry=300 timeout=15 ProxySet lbmethod=bytraffic </proxy> <VirtualHost *:80> ServerAdmin ***@*******.com ServerName localhost ServerAlias localhost ProxyPass / balancer://cluster stickysession=JSESSIONID|jsessionid nofailover=On ProxyPassReverse / balancer://cluster ErrorLog "logs/project-err.log" CustomLog "logs/project-access.log" common </VirtualHost>
在zk.xml中增加了以下配置:
<system-config> <ui-factory-class>org.zkoss.zk.ui.http.SerializableUiFactory</ui-factory-class> </system-config>
Check http://books.zkoss.org/wiki/ZK_Developer%27s_Reference/Clustering
Asked: 2010-11-19 00:55:31 +0800
Seen: 1,058 times
Last updated: May 01 '11