Hi,

On Tue, Dec 13, 2011 at 12:27:25AM +0530, Avinash wrote:
> Hi,
> 
> We have a Linux machine on which are installed 2 servers (tomcat @ 8080,
> lighthttpd @ 8081). I am using HAProxy ( @ 80 ) to perform domain base
> routing to these servers.
> 
> After a reboot, we restarted the apps(haproxy, lighthttpd, tomcat) and
> found that haproxy is no longer able to perform routing. Before reboot
> things were working fine and we did not perform any config/software changes
> from our end.
> 
> Here are our haproxy settings :
> 
> 
>    - frontend http_proxy
>    - bind 10.211.154.49:80 <http://10.211.154.49/>
>    - option forwardfor
>    - acl is_resource hdr_dom(host) -i resource.qureka.com
>    - acl is_app hdr_dom(host) -i www.qureka.com
>    - use_backend resource_cluster if is_resource
>    - use_backend app_cluster if is_app
> 
> backend resource_cluster
> server server1 127.0.0.1:8081
> 
> backend app_cluster
> server server1 127.0.0.1:8080

What does your defaults section look like ? Maybe you accidentely
removed a line and are not running in HTTP mode anymore ?

Also, one thing which often starts at boot is the firewall. Maybe
you were running a firewall on the machine which you manually disabled
and forgot to remove it from startup. So after a reboot it starts again
and prevents haproxy from connecting to your servers.

Those are just a few guesses of course, as it's not very clear what
changed during the reboot.

Regards,
Willy


Reply via email to