To make a Servoy Application Server work properly with the Apache HTTP Server and Load balancing, the following modifications to the configuration of the Servoy Application Server are required:
{servoyInstall}/application_server/server/conf/server.xml
and make the following adjustments:Add the following connector before the already declared one in both installations:
Code Block |
---|
<Connector port="8009" enableLookups="false" maxThreads="500" connectionTimeout="60000" redirectPort="8443" useBodyEncodingForURI="true" protocol="AJP/1.3"/> |
When the Servoy Application Servers and the Apache HTTP Server is started, connecting clients will be automatically distributed over the configured Servoy Application Servers in a weighted round-robin load balancing with sticky sessions manner.
Load-balancing of Smart Clients is done by serving the JNLP file from the different Servoy Application Servers when the Apache HTTP front-end is accessed. The Apache HTTP Server serves the JNLP file to the requesting client and using the JNLP, the requesting client will connect directly to the Servoy Application Server that supplied the JNLP.
...