I’m deploying my first Rails app on a Debian server. For this I have
chosen a Mongrel cluster to serve my app, and Pound to balance it. My
problem is I can’t get it to work. I keep getting an “503 Service
Unavailable” when trying to load the site (from a remote machine). My
setup is as follows:
pound.cfg:
ListenHTTP
Address ip.to.my.server
Port 80
Service
BackEnd
Address 127.0.0.1
Port 8000
End
BackEnd
Address 127.0.0.1
Port 8001
End
BackEnd
Address 127.0.0.1
Port 8002
End
Session
Type IP
TTL 300
End
End
End
With Pound running, I have configured and started up a 3-server Mongrel
cluster on ports 8000-8002, but this setup refuses to work. My logfiles
says something about “pound: backend 127.0.0.1:8000 connect: Connection
refused”. What’s up with that? Is Mongrel refusing the connections sent
by Pound. If so: why? What am I doing wrong? (I have tried various
configurations, such as specifying Pound Listen-address to 0.0.0.0,
127.0.0.1, actual IP of my server etc. but nothing seem to work…)