Re: multiple apache instances load balancing tomcat

2004-02-03 Thread johncoyle
Pete,
For redundancy in apache the following options are open to you :
1) Use a http sprayer in front of the apache webservers
2) Use a load balancing software such as Stonebeat Webcluster
3) Manual failover. This is where you have two instances of apache
configured and running using the same ip, but only have one of the
up. When your primary node fails down its interface and up the
secondary.

John

 Hi.

 I've finally got Apache load balancing with Tomcat, but want to provide
 redundancy to the Apache instance, is there a way to do this so if one
 goes down the second one takes over seamlessly / works concurrently ?

 Thanks,
 Pete.


 ***
 This email and any files transmitted with it are confidential and intended
 solely for the use of the individual or entity to whom they are addressed.
 If you have received this email in error please notify the system manager.
 This footnote also confirms that this email message has been swept by
 MIMEsweeper for the presence of computer viruses.
 ***
 For any information on the Quinn Group of Companies please visit :-

 http://www.quinn-group.com


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: multiple apache instances load balancing tomcat

2004-02-03 Thread johncoyle
Pete,
Unfortuantly I haven't come accross memory-memory replication between
two apaches as I've always run them on seperate machines and took the
hit on the loss of sessions, better to loose a session than a service.

John

 Hi John.

 Investigating cost of point 2.
 For point 3, I'd assume that all users would then lose their sessions?
 I'd be after sticky sessions, so I guess I'd need memory-memory
 replication between the two apache's, is this possible?

 Tx.
 Pete.


 [EMAIL PROTECTED] wrote:

 Pete,
 For redundancy in apache the following options are open to you :
 1) Use a http sprayer in front of the apache webservers
 2) Use a load balancing software such as Stonebeat Webcluster
 3) Manual failover. This is where you have two instances of apache
 configured and running using the same ip, but only have one of the
 up. When your primary node fails down its interface and up the
 secondary.

 John


Hi.

I've finally got Apache load balancing with Tomcat, but want to provide
redundancy to the Apache instance, is there a way to do this so if one
goes down the second one takes over seamlessly / works concurrently ?

Thanks,
Pete.


***
This email and any files transmitted with it are confidential and
 intended
solely for the use of the individual or entity to whom they are
 addressed.
If you have received this email in error please notify the system
 manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
***
For any information on the Quinn Group of Companies please visit :-

http://www.quinn-group.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





 ***
 This email and any files transmitted with it are confidential and intended
 solely for the use of the individual or entity to whom they are addressed.
 If you have received this email in error please notify the system manager.
 This footnote also confirms that this email message has been swept by
 MIMEsweeper for the presence of computer viruses.
 ***
 For any information on the Quinn Group of Companies please visit :-

 http://www.quinn-group.com


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat / Apache / SSl

2004-01-13 Thread johncoyle
Software: Apache - 2.0.48
Tomcat - 4.1.29
OpenSSL - 0.9.6l [engine] 04 Nov 2003

Hi,

I am trying to encrypt all data being transmitted from the client pc to
the webserver, and also from the webserver to tomcat. I have only been
working on tomcat for a couple of months but have experience on WebSphere.


I have enabled ssl on both apache and on tomcat, and both are accessible
directly:
apache: https://host
tomcat: https://host:8443



When I try set up a connector from apache to tomcat using port 8443 i get
an Internal Server Error and the follwoing errors in the mod_jk log:


[jk_ajp_common.c (661)]: In jk_endpoint_t::ajp_connect_to_endpoint,
connected sd = 16
[jk_ajp_common.c (693)]: sending to ajp13 #358
[jk_ajp_common.c (966)]: ajp_send_request 2: request body to send 0 -
request body to resend 0
[jk_ajp_common.c (755)]: ajp_connection_tcp_get_message: Error - Wrong
message format 0x1503
[jk_ajp_common.c (1137)]: Error reading reply from tomcat. Tomcat is down
or network problems.
[jk_ajp_common.c (1290)]: ERROR: Receiving from tomcat failed, recoverable
operation. err=2
[jk_ajp_common.c (1309)]: sending request to tomcat failed in send loop.
err=2
[jk_ajp_common.c (1318)]: Error connecting to tomcat. Tomcat is probably
not started or is listening on the wrong port. Failed errno = 0
[jk_ajp_common.c (1529)]: Into jk_endpoint_t::done, closing connection 0
[jk_ajp_common.c (605)]: In jk_endpoint_t::ajp_close_endpoint


Apache to Tomcat using the ajp13 connector over port 8009 works fine but I
have a requirement to encrypt all data. Any ideas?
Thanks,
John


Configs: 
--- Tomcat configs
## server.xml
...
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
port=8443 minProcessors=5 maxProcessors=75 enableLookups=true
acceptCount=100 debug=0 scheme=https secure=true
useURIValidationHack=false disableUploadTimeout=true
Factory className=org.apache.coyote.tomcat4.CoyoteServerSocketFactory
clientAuth=true protocol=TLS / /Connector
...

## workers.properties

workers.tomcat_home=/usr/jakarta-tomcat-4.1.29/
workers.java_home=/usr/java/j2sdk1.4.1_03/bin/java
ps=/

worker.list=bob

worker.loadbalancer.type=lb
worker.loadbalancer.balanced_workers=bob

worker.bob.port=8443
worker.bob.host=10.0.0.10
worker.bob.type=ajp13

worker.bob.lbfactor=1

--- Apache configs
## httpd.conf
...
LoadModule jk_module modules/mod_jk.so

JkWorkersFile /usr/jakarta-tomcat-4.1.29/conf/workers.properties

JkLogFile /usr/httpd-2.0.48/logs/mod_jk-log
JkLogLevel debug

JkMount / bob
JkMount /* bob
...



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]