Server Configuration"
From Documentation
m (add other servlet container) |
|||
Line 3: | Line 3: | ||
The configuration of a Web server really depends on the server itself. There is no standard approach. | The configuration of a Web server really depends on the server itself. There is no standard approach. | ||
+ | = Load Balancer (Required) = | ||
+ | Be sure to configure [http://wiki.metawerx.net/wiki/StickySessions sticky session] on your load balancer because ZK only works correctly on this case. | ||
+ | <ref> | ||
+ | Check DesktopImpl's source, you will see there are lots of <tt>synchronized</tt> used in many methods including: | ||
+ | * generate desktop ID | ||
+ | * addPage(), removePage() | ||
+ | * enableServerPush() | ||
+ | * processing server push update | ||
+ | |||
+ | The keyword <tt>synchronized</tt> only works in single JVM, so it’s impossible to keep the same state between 2 different nodes of a clustering even with session replication if 2 nodes receive 1 requests at roughly the same time. | ||
+ | </ref> | ||
+ | |||
+ | <references/> | ||
=Apache + Tomcat= | =Apache + Tomcat= | ||
Revision as of 06:59, 13 January 2020
The configuration of a Web server really depends on the server itself. There is no standard approach.
Load Balancer (Required)
Be sure to configure sticky session on your load balancer because ZK only works correctly on this case. [1]
- ↑
Check DesktopImpl's source, you will see there are lots of synchronized used in many methods including:
- generate desktop ID
- addPage(), removePage()
- enableServerPush()
- processing server push update
Apache + Tomcat
For configuring Apache + Tomcat, please refer to
- How to Run ZK on Apache + Tomcat clustering, Part I
- How to Run ZK on Apache + Tomcat clustering, Part II
More detail settings
Google App Engine
For configuring Google App Engine, please refer to
Apache + JBoss
For configuring JBoss, please refer to
Glassfish
For configuring Glassfish, please refer to
WebLogic
For configuring WebLogic, please refer to
Version History
Version | Date | Content |
---|---|---|