Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Multiple Clusters on Apache 2.4 |
|
Author |
|
sri_tnj
Joined: 12 Apr 2013 Posts: 4 Location: Singapore
|
Posted: Thu 02 May '13 5:28 Post subject: Multiple Clusters on Apache 2.4 |
|
|
Dear!
I wanted to configure 2 clusters on Apache 2.4. Here are my sample configurations
Cluster 1 config:
----------------
<VirtualHost *:80>
ServerName mywebsite1.com
<IfModule mod_proxy_balancer.c>
<Proxy balancer://sgcluster>
BalancerMember http://IPaddress1:80/ loadfactor=1
BalancerMember http://IPaddress2:80/ loadfactor=2
ProxySet lbmethod=byrequests
</Proxy>
ProxyPass / balancer://sgcluster/
ProxyPassReverse / balancer://sgcluster/
ProxyPassReverseCookieDomain sgcluster mywebsite.com
</IfModule>
</VirtualHost>
Cluster 2 config:
-----------------
<VirtualHost *:80>
ServerName mywebsite2.com
<IfModule mod_proxy_balancer.c>
<Proxy balancer://aucluster>
BalancerMember http://IPaddress3:83/ loadfactor=1
BalancerMember http://IPaddress4:83/ loadfactor=2
ProxySet lbmethod=byrequests
</Proxy>
ProxyPass /account balancer://aucluster/account
ProxyPassReverse /account balancer://aucluster/account
ProxyPassReverseCookieDomain aucluster mywebsite.com
</IfModule>
</VirtualHost>
I've included both configuration file in httpd.conf.
I'm getting the errors, when I tried to start up the apache.
[Thu May 02 11:01:34.243583 2013] [slotmem_shm:debug] [pid 9240606:tid 1] mod_slotmem_shm.c(448): AH02301: attach looking for /opt/apache2/logs/slo
tmem-shm-mod_heartmonitor.shm
[Thu May 02 11:01:34.243667 2013] [lbmethod_heartbeat:notice] [pid 9240606:tid 1] AH02282: No slotmem from mod_heartmonitor
[Thu May 02 11:01:34.243730 2013] [slotmem_shm:debug] [pid 9240606:tid 1] mod_slotmem_shm.c(339): AH02300: create /opt/apache2/logs/slotmem-shm-pad
a585f0.shm: 544/6
[Thu May 02 11:01:34.244713 2013] [proxy:debug] [pid 9240606:tid 1] proxy_util.c(1221): AH02337: copying shm[0] (0xb0000018) for balancer://aucluster
[Thu May 02 11:01:34.244814 2013] [slotmem_shm:debug] [pid 9240606:tid 1] mod_slotmem_shm.c(339): AH02300: create /opt/apache2/logs/slotmem-shm-pad
a585f0_aucluster.shm: 488/1
[Thu May 02 11:01:34.245679 2013] [proxy:debug] [pid 9240606:tid 1] proxy_util.c(1673): AH02338: copying shm[0] (0xc0000018) for worker: http://53.23.34.107:
83/
[Thu May 02 11:01:34.245711 2013] [slotmem_shm:debug] [pid 9240606:tid 1] mod_slotmem_shm.c(339): AH02300: create /opt/apache2/logs/slotmem-shm-p1b
5b0ac5.shm: 544/6
[Thu May 02 11:01:34.246289 2013] [proxy:debug] [pid 9240606:tid 1] proxy_util.c(1221): AH02337: copying shm[0] (0xe0000018) for balancer://sgcluster
[Thu May 02 11:01:34.246328 2013] [slotmem_shm:debug] [pid 9240606:tid 1] mod_slotmem_shm.c(339): AH02300: create /opt/apache2/logs/slotmem-shm-p1b
5b0ac5_sgcluster.shm: 488/2
[Thu May 02 11:01:34.269806 2013] [:emerg] [pid 9240606:tid 1] AH00020: Configuration Failed, exiting
[Thu May 02 11:01:34.243722 2013] [proxy_balancer:debug] [pid 9240606:tid 1] mod_proxy_balancer.c(780): AH01178: Doing balancers create: 544, 1 (6)
[Thu May 02 11:01:34.244807 2013] [proxy_balancer:debug] [pid 9240606:tid 1] mod_proxy_balancer.c(850): AH01184: Doing workers create: balancer://aucluster (
pada585f0_aucluster), 488, 1 [0]
[Thu May 02 11:01:34.245702 2013] [proxy_balancer:debug] [pid 9240606:tid 1] mod_proxy_balancer.c(780): AH01178: Doing balancers create: 544, 1 (6)
[Thu May 02 11:01:34.246321 2013] [proxy_balancer:debug] [pid 9240606:tid 1] mod_proxy_balancer.c(850): AH01184: Doing workers create: balancer://sgcluster (
p1b5b0ac5_sgcluster), 488, 2 [0]
[Thu May 02 11:01:34.269740 2013] [proxy_balancer:emerg] [pid 9240606:tid 1] (24)Too many open files: AH01185: worker slotmem_create failed
Your kind help is highly appreciated.
Thanks |
|
Back to top |
|
James Blond Moderator

Joined: 19 Jan 2006 Posts: 7404 Location: EU, Germany, Next to Hamburg
|
Posted: Fri 03 May '13 15:51 Post subject: |
|
|
Which apache version do you use? Newest? |
|
Back to top |
|
sri_tnj
Joined: 12 Apr 2013 Posts: 4 Location: Singapore
|
Posted: Fri 03 May '13 16:40 Post subject: |
|
|
I've installed the apache 2.4.4 |
|
Back to top |
|
|
|
|
|
|