Apache 2.26+4 Mongrel processes using proxy_balancer

Hi

I have set up 4 mongrel processes and have tested that each of them
work before activating proxy_balance and balancer-manager support

Here is the relevant part of my httd.conf relating to Apache proxying
a pack of 4 mongrel processes

proxy_balancer

<Proxy balancer://crm4web_cluser>
#Cluster Member 1
Balancermember http://127.0.0.1:9001
Balancermember http://127.0.0.1:9002
Balancermember http://127.0.0.1:9003
Balancermember http://127.0.0.1:9004

<Location /balancer-manager>
SetHandler balancer-manager
Order deny,allow
Allow from all

Use name-based virtual hosting.

NameVirtualHost *:80

<VirtualHost *:80>
DocumentRoot D:/Workspace/projectname
ServerName myapp.com:80
ProxyRequests Off

<Proxy *>
Order deny,allow
Allow from all

Alias / “D:/Workspace/projectname/public”

<Directory “D:/Workspace/projectname/public”>
Options Indexes FollowSymLinks
AllowOverride none
Order allow,deny
Allow from all

ProxyPass / balancer://projectname_cluster
ProxyPassReverse / balancer://projectname_cluster

Problem : When I attempt to acces my apps as
http://myapp.com, I get

Service Temporarily Unavailable
The server is temporarily unable to service your request due to
maintenance downtime or capacity problems. Please try again later.

FYI, the follwing mod are loaded
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_basic_module modules/mod_auth_basic.so
#LoadModule auth_digest_module modules/mod_auth_digest.so
#LoadModule authn_anon_module modules/mod_authn_anon.so
#LoadModule authn_dbm_module modules/mod_authn_dbm.so
LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authn_file_module modules/mod_authn_file.so
#LoadModule authz_dbm_module modules/mod_authz_dbm.so
LoadModule authz_default_module modules/mod_authz_default.so
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule authz_user_module modules/mod_authz_user.so
LoadModule autoindex_module modules/mod_autoindex.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule cgi_module modules/mod_cgi.so
#LoadModule dav_module modules/mod_dav.so
#LoadModule dav_fs_module modules/mod_dav_fs.so
#LoadModule deflate_module modules/mod_deflate.so
LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so
#LoadModule expires_module modules/mod_expires.so
#LoadModule file_cache_module modules/mod_file_cache.so
#LoadModule headers_module modules/mod_headers.so
LoadModule imagemap_module modules/mod_imagemap.so
LoadModule include_module modules/mod_include.so
#LoadModule info_module modules/mod_info.so
LoadModule isapi_module modules/mod_isapi.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so
#LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule proxy_module modules/mod_proxy.so
#LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
#LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_http_module modules/mod_proxy_http.so
#LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule negotiation_module modules/mod_negotiation.so
#LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
#LoadModule speling_module modules/mod_speling.so
LoadModule status_module modules/mod_status.so
#LoadModule unique_id_module modules/mod_unique_id.so
LoadModule userdir_module modules/mod_userdir.so
#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
#LoadModule ssl_module modules/mod_ssl.so

Q. Any solution or workaround ?

On Sun, 2007-10-07 at 06:38 -0700, CCH wrote:

Hi

I have set up 4 mongrel processes and have tested that each of them
work before activating proxy_balance and balancer-manager support

FWIW, I usually define the “Proxy balancer” directive inside the virtual
host. Also, you may want to get your balancer working first and then do
the balancer-manager part… just to have fewer variables…

Yours,

Tom

Hi Tom

Thanx for responding

On Oct 8, 9:31 pm, Tom C. [email protected] wrote:

On Sun, 2007-10-07 at 06:38 -0700, CCH wrote:

Hi

I have set up 4 mongrel processes and have tested that each of them
work before activating proxy_balance and balancer-manager support

FWIW, I usually define the “Proxy balancer” directive inside the virtual
host.

cch: I have just tried that but still getting the message

Service Temporarily Unavailable
The server is temporarily unable to service your request due to
maintenance downtime or capacity problems. Please try again later.

Also, you may want to get your balancer working first and then do
the balancer-manager part… just to have fewer variables…

cch: I am actually able to see the balancer-manager with the status OK
for all the 4 mongrel processes

BTW, I am running Apache 2.26+mongrel in a Windows 2003 server
environment

Am I missing something within the VirtualHosts or perhaps on the Load
items ?

Service Temporarily Unavailable
The server is temporarily unable to service your request due to
maintenance downtime or capacity problems. Please try again later.

What said the production.log file? It likes that arrive to mongrel but
fail the rails application.

Hi Rafeal

On Oct 8, 10:46 pm, “Rafael G.” [email protected] wrote:

Service Temporarily Unavailable
The server is temporarily unable to service your request due to
maintenance downtime or capacity problems. Please try again later.

What said the production.log file? It likes that arrive to mongrel but
fail the rails application.

cch: I cleared the log before testing.
After trying acces my apps as http://myapp.com, I checked the
production.log and it is empty !

If I try, http://myapp.com:4010, I can access my apps …

Hi Rafael/Tom

Problem solved when typo to cluster name corrected.

Thanx for pointing me in the right direction.