Difference between revisions of "How to configure an Apache load balancer"

From LogicalDOC Community Wiki
Jump to navigationJump to search
(Configuration Guides)
 
Line 3: Line 3:
 
Sticky session will ensure that one visitor generally will be handled by the same server over the lifetime of a session. This is a requirement for the proper functioning of LogicalDOC in this mode.
 
Sticky session will ensure that one visitor generally will be handled by the same server over the lifetime of a session. This is a requirement for the proper functioning of LogicalDOC in this mode.
  
Actually there are two configuration options for Apache: proxy via mod_proxy and proxy via mod_proxy_ajp.
+
Actually there are two configuration options for Apache: proxy via [https://httpd.apache.org/docs/2.4/mod/mod_proxy.html mod_proxy] and proxy via [https://httpd.apache.org/docs/2.4/mod/mod_proxy_ajp.html mod_proxy_ajp].
 
The main difference is that mod_proxy sends http communications while with mod_proxy_ajp the messages exchanged between Apache and Tomcat take place in binary format.
 
The main difference is that mod_proxy sends http communications while with mod_proxy_ajp the messages exchanged between Apache and Tomcat take place in binary format.
  

Latest revision as of 10:12, 27 June 2019

At a certain amount of traffic, or a certain need on availability, you might consider using multiple public instances. Most likely those instances are on different servers as well. This guide will illustrate how to setup a load-balanced system using three different servers, where one acts as the load-balancer (using Apache for splitting the requests) and the two remaining servers host the LogicalDOC public instances.

Sticky session will ensure that one visitor generally will be handled by the same server over the lifetime of a session. This is a requirement for the proper functioning of LogicalDOC in this mode.

Actually there are two configuration options for Apache: proxy via mod_proxy and proxy via mod_proxy_ajp. The main difference is that mod_proxy sends http communications while with mod_proxy_ajp the messages exchanged between Apache and Tomcat take place in binary format.

Configuration Guides

Please choose one configuration. Trying to configure for both mod_proxy and mod_jk will only lead to confusion and tears.