tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alvaro Mota <alv...@rededc.com.br>
Subject Tomcat Clustering
Date Mon, 09 Sep 2002 15:49:50 GMT
Hi


I have a cluster of 2 tomcats running in a loadbalancing.


Two Problems:

1) when one fails none of the others nodes accept
any requests until shutdown complete. I run shutdown in
nodes one at time.
For example:

   a) shutdown tomcat1, startup tomcat1; shutdown tomcat2, startup
tomcat2;...

java.lang.RuntimeException: Read of HTTP Request POST parameters failed:
read < content length	at
org.apache.catalina.connector.HttpRequestBase.parseParameters(HttpRequestBase.java:658)
	at
org.apache.catalina.connector.HttpRequestBase.getParameterNames(HttpRequestBase.java:723)
	at
org.apache.catalina.connector.RequestFacade.getParameterNames(RequestFacade.java:165)
	at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:924)
	at
org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:795) 




          at
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
          at java.lang.Thread.run(Thread.java:484)

2002-09-06 17:54:29 Ajp13Processor[18080][1] process: invoke
java.io.IOException: Broken pipe
          at java.net.SocketOutputStream.socketWrite(Native Method)
          at java.net.SocketOutputStream.write(SocketOutputStream.java:96)
          at org.apache.ajp.Ajp13.send(Ajp13.java:525)
          at org.apache.ajp.RequestHandler.finish(RequestHandler.java:495)
          at org.apache.ajp.Ajp13.finish(Ajp13.java:395)
          at
org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.java:196)
          at
org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:464)
          at
org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
          at java.lang.Thread.run(Thread.java:484)


b) when node return for cluster, your session not uptaded.

1) My worker.properties

worker.list=loadbalancer

# ------------------------
# First tomcat server
# ------------------------
worker.tomcat1.port=18080
worker.tomcat1.host=localhost
worker.tomcat1.type=ajp13
worker.tomcat1.lbfactor=1


worker.tomcat2.port=19080
worker.tomcat2.host=localhost
worker.tomcat2.type=ajp13
worker.tomcat1.lbfactor=1Vc vai ter que escrever uma subclasse de Policy 
q pegue

worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=tomcat1, tomcat2

In mod_jk.log in apache.

[Fri Sep 06 18:31:55 2002]  [jk_ajp13_worker.c (228)]:
connection_tcp_get_message: Error - jk_tcp_socket_recvfull failed
[Fri Sep 06 18:31:55 2002]  [jk_ajp13_worker.c (712)]: Error reading reply
[Fri Sep 06 18:31:55 2002]  [jk_ajp13_worker.c (845)]: In
jk_endpoint_t::service, get_reply failed in send loop 0
[Fri Sep 06 18:31:55 2002]  [jk_connect.c (143)]: jk_open_socket,
connect() failed errno = 111
[Fri Sep 06 18:31:55 2002]  [jk_ajp13_worker.c (196)]: In
jk_endpoint_t::connect_to_tomcat, failed errno = 111
[Fri Sep 06 18:31:55 2002]  [jk_ajp13_worker.c (635)]: Error connecting
to the Tomcat process.
[Fri Sep 06 18:31:55 2002]  [jk_ajp13_worker.c (848)]: In
jk_endpoint_t::service, send_request failed in send loop 1
[Fri Sep 06 18:31:55 2002]  [jk_connect.c (143)]: jk_open_socket,
connect() failed errno = 111
[Fri Sep 06 18:31:55 2002]  [jk_ajp13_worker.c (196)]: In
jk_endpoint_t::connect_to_tomcat, failed errno = 111
[Fri Sep 06 18:31:55 2002]  [jk_ajp13_worker.c (635)]: Error connecting
to the Tomcat process.
[Fri Sep 06 18:31:55 2002]  [jk_ajp13_worker.c (848)]: In
jk_endpoint_t::service, send_request failed in send loop 2
[Fri Sep 06 18:32:08 2002]  [jk_ajp13_worker.c (381)]: Error
ajp13_process_callback - write failed



Regards

Alvaro















--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message