Summary: | Load balancer doesn't work for jk 2.0.4 with IIS | ||
---|---|---|---|
Product: | Tomcat Connectors | Reporter: | Dave |
Component: | Common | Assignee: | Tomcat Developers Mailing List <dev> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | david.oxley, mramshaw |
Priority: | P3 | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Windows XP |
Description
Dave
2004-04-28 12:24:37 UTC
I get exactly the sane error with Tomcat 4.1.29 on Windows 2003. I found a suggestion that the load balancing was at fault; after removing all references to the load balancer in the workers.prpoperties file and re-booting, everything worked correctly. Which brings up the question of how the workers are controlled: are they under the control of IIS, or are they daemon processes ? It seems that the only way to have them re-load their configuration details is to re-boot.I get exactly the sane error with Tomcat 4.1.29 on Windows 2003. I found a suggestion that the load balancing was at fault; after removing all references to the load balancer in the workers.prpoperties file and re-booting, everything worked correctly. Which brings up the question of how the workers are controlled: are they under the control of IIS, or are they daemon processes ? It seems that the only way to have them re-load their configuration details is to re-boot. Sorry about the duplicated message. Please use the tomcat-user list for debugging, investigating configurations, inquiring about different load balancing options, etc. This is not the place for a long discusssion, only exact bugs and test cases we can use to reproduce them. Thanks. I wasn't starting a discussion, this is a bug. Load balancing just doesn't work with IIS and JK2 2.0.4. If you try it you'll see. I use the same workers2.properties and Tomcat config for both Apache2 and IIS (I just switch between using Apache or IIS depending on what our customer wants), but I also have to comment out the group=lb and set a worker to get around this bug at the moment. What sort of test case do you want? Just set up load balancing in JK2 with IIS and it doesn't work!!! I wasn't entering into a discussion about how configure load-balancing. I was giving work-around details about how to disable load-balancing which, as written, doesn't work. Sorry to pollute the purity of this bug log, but when something doesn't work for me, I check the documentation, and then the bug reports. So it seems to me that this is exactly the right place for this discussion. Excuse me while I write up a documentation bug ;^} After finding a spare moment to debug the jk2 connector I've found that the problem was in the configuration. I had specified 'group=lb' but should have specified 'group=lb:lb'. This bug is now that the example workers2.properties at http://cvs.apache.org/viewcvs.cgi/jakarta-tomcat- connectors/jk/conf/workers2.properties?rev=1.19&view=auto is incorrect and needs to be changed. I also don't know why this hadn't gone wrong with Apache 2 (But I do think that changing the config fixed a cookie problem I was having under Apache 2). OK, updated workers2.properties to have group:lb:lb and group:lb:lb_1 instead of group:lb and group:lb_1 (left the old versions in the file but commented out). |