Load balancing an IIS/Lucee install

We are currently load balancing two IIS servers running Lucee/Tomcat. We
have the firewall forwarding port 443 to port 8888 so that when there is an
issue with Lucee the firewall will detect no connection and take that
server out of rotation. The issue with serving over port 80 or 443 is that
we get a 503 instead of the connection timeout that the firewall needs to
monitor. The only issue with using port 8888 is that on initial load we
get the “Welcome to Lucee” page until we make that first request on port
80. I read somewhere that this is due the initial load taking too long and
a timeout setting in the Tomcat configuration results in the catch all page
being displayed. Is there a way to change this setting to avoid this? Are
there any other configuration changes we can make?

The problem you describe of the initial request taking too long has been corrected for a while now. What you probably want is for your contexts to get created at startup rather than the initial request. To do this, you can manually add the context information to the Tomcat server.xml file. On your Tomcat/Lucee servers, open the /opt/lucee/tomcat/conf/server.xml file and scroll down close to the bottom of the file. You’ll see an example entry. Add your specific host and restart Tomcat. Your context should now be created at Tomcat boot rather than the initial request.

Kind regards,
Jordan Michaels----- Original Message -----
From: “Brian Besthorne” <@Brian_Besthorne>
To: “Lucee” lucee@googlegroups.com
Sent: Tuesday, December 8, 2015 6:49:23 AM
Subject: [Lucee] Load balancing an IIS/Lucee install

We are currently load balancing two IIS servers running Lucee/Tomcat. We
have the firewall forwarding port 443 to port 8888 so that when there is an
issue with Lucee the firewall will detect no connection and take that
server out of rotation. The issue with serving over port 80 or 443 is that
we get a 503 instead of the connection timeout that the firewall needs to
monitor. The only issue with using port 8888 is that on initial load we
get the “Welcome to Lucee” page until we make that first request on port
80. I read somewhere that this is due the initial load taking too long and
a timeout setting in the Tomcat configuration results in the catch all page
being displayed. Is there a way to change this setting to avoid this? Are
there any other configuration changes we can make?


Love Lucee? Become a supporter and be part of the Lucee project today! - http://lucee.org/supporters/become-a-supporter.html

You received this message because you are subscribed to the Google Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/9e33a16f-ce97-4a1c-859a-bd6eea43137c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Excellent advice, that did the trick and makes perfect sense.On Tue, Dec 8, 2015 at 2:18 PM, Jordan Michaels <@Jordan_Michaels> wrote:

The problem you describe of the initial request taking too long has been
corrected for a while now. What you probably want is for your contexts to
get created at startup rather than the initial request. To do this, you can
manually add the context information to the Tomcat server.xml file. On your
Tomcat/Lucee servers, open the /opt/lucee/tomcat/conf/server.xml file and
scroll down close to the bottom of the file. You’ll see an example
entry. Add your specific host and restart Tomcat. Your context should now
be created at Tomcat boot rather than the initial request.

Kind regards,
Jordan Michaels

----- Original Message -----
From: “Brian Besthorne” <@Brian_Besthorne>
To: “Lucee” lucee@googlegroups.com
Sent: Tuesday, December 8, 2015 6:49:23 AM
Subject: [Lucee] Load balancing an IIS/Lucee install

We are currently load balancing two IIS servers running Lucee/Tomcat. We
have the firewall forwarding port 443 to port 8888 so that when there is an
issue with Lucee the firewall will detect no connection and take that
server out of rotation. The issue with serving over port 80 or 443 is that
we get a 503 instead of the connection timeout that the firewall needs to
monitor. The only issue with using port 8888 is that on initial load we
get the “Welcome to Lucee” page until we make that first request on port
80. I read somewhere that this is due the initial load taking too long and
a timeout setting in the Tomcat configuration results in the catch all page
being displayed. Is there a way to change this setting to avoid this? Are
there any other configuration changes we can make?


Love Lucee? Become a supporter and be part of the Lucee project today! -
http://lucee.org/supporters/become-a-supporter.html

You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/9e33a16f-ce97-4a1c-859a-bd6eea43137c%40googlegroups.com
.
For more options, visit https://groups.google.com/d/optout.


Love Lucee? Become a supporter and be part of the Lucee project today! -
http://lucee.org/supporters/become-a-supporter.html

You received this message because you are subscribed to a topic in the
Google Groups “Lucee” group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/lucee/iwjJi8T6e6Q/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/838282573.271030.1449602333853.JavaMail.zimbra%40viviotech.net
.
For more options, visit https://groups.google.com/d/optout.

Hi,

we are now using Lucee with round robin DNS with Windows IIS servers setup .
I see that there is load balancing solution but I can not find some documentation how to setup etc.
Can you please help me with this ?
Br
Niels

It’s been so long since I worked with Lucee but what we did was use a standard LB with HA setup to use sticky sessions. We had to use port 8888 as the health port to take inactive servers out of rotation. There is a way to use non-sticky sessions as well but we never implemented that. If you look at this thread you will also see the required Tomcat config needed. I hope this helps.