Operating System - Linux
1753797 Members
7298 Online
108799 Solutions
New Discussion юеВ

Re: heartbeat + ldirectord & ssl

 
SOLVED
Go to solution
Piotr Kirklewski
Super Advisor

heartbeat + ldirectord & ssl

Hi there

First of all everythink works fine if loadbalancer is out of the equation.


My vhost configuration file looks like that:

NameVirtualHost *:443
NameVirtualHost *:80


ServerName www.kirklewski.com
ServerAlias kirklewski.com
DocumentRoot /home/madmin/www/kirklewski



ServerName www.kirklewski.com
ServerAlias kirklewski.com
DocumentRoot /home/madmin/www/kirklewski/ssl
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/apache.pem


My ldirectord.cf file looks like that:

checktimeout=10
checkinterval=2
autoreload=no
logfile="/etc/ha.d/ldirector_log"
quiescent=yes

virtual=192.168.168.205:80
real=192.168.168.201:80 gate
real=192.168.168.202:80 gate
fallback=127.0.0.1:80 gate
service=http
request="ldirector.html"
receive="Test Page"
scheduler=rr
protocol=tcp
checktype=negotiate

virtual=192.168.168.249:80
real=192.168.168.201:80 gate
real=192.168.168.202:80 gate
fallback=127.0.0.1:80 gate
service=http
request="ldirector.html"
receive="Test Page"
scheduler=rr
protocol=tcp
checktype=negotiate

virtual=192.168.168.249:443
real=192.168.168.201:443 gate
real=192.168.168.202:443 gate
fallback=127.0.0.1:443 gate
service=https
request="ldirector.html"
receive="Test Page"
scheduler=rr
protocol=tcp
checktype=negotiate

And I'm getting this error at bouth webservers:

Wed Aug 22 12:18:40 2007] [error] [client 192.168.168.203] Invalid method in request \x80|\x01\x03\x01
[Wed Aug 22 12:18:40 2007] [error] [client 192.168.168.203] Invalid method in request \x16\x03

Can anyone help ?


Jesus is the King
2 REPLIES 2
Steven E. Protter
Exalted Contributor
Solution

Re: heartbeat + ldirectord & ssl

Shalom,

These errors can not be connected to the load balancer at least by message text.

I take you get the error only when you use your load balancer service.

Please take a look at two links.

http://perlstalker.amigo.net/Gentoo/LVS.phtml
http://archive.linuxvirtualserver.org/html/lvs-users/2004-11/msg00065.html

I'm going to suggest an alternative.

Perhaps Red Hat Cluster Suite (open source, many places to get it free) and have two floating ip addresses which are assigned, one per node and a round robin assignment of internal ip addresses.

The floaters are set to be one separate nodes if both are up.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Piotr Kirklewski
Super Advisor

Re: heartbeat + ldirectord & ssl

Steel nothing!
I have to fix it.
Does anyone have experienced such a problems.
I'm steel getting this error:

[error] [client 192.168.168.203] Invalid method in request \x16\x03

:(
Jesus is the King