Load balancing an IIS/Lucee install

94 views
Skip to first unread message

Brian Besthorne

unread,
Dec 8, 2015, 9:49:23 AM12/8/15
to Lucee
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?

Jordan Michaels

unread,
Dec 8, 2015, 2:18:56 PM12/8/15
to lu...@googlegroups.com
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 <Host> 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
--
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+un...@googlegroups.com.
To post to this group, send email to lu...@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.

Brian Besthorne

unread,
Dec 8, 2015, 10:31:27 PM12/8/15
to lu...@googlegroups.com
Excellent advice, that did the trick and makes perfect sense.

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+un...@googlegroups.com.

To post to this group, send email to lu...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages