View Full Version : Apache Session Aware Load balancer
neothe1
1st April 2008, 10:39
Hi all,
I've used the guide from the howtoforge regarding Creating A Session-Aware Loadbalancer Using mod_proxy_balancer (Debian Etch)
However, I'm not able to edit worker setting for my backend servers.
Can anyone please tell me how to check the errors?
Appreciate it...
falko
2nd April 2008, 15:47
However, I'm not able to edit worker setting for my backend servers.Why?
Can anyone please tell me how to check the errors?
Please check the Apache error logs.
neothe1
3rd April 2008, 09:23
Hi falko,
can you please show me the correct steps for the dns server setting and web server setting?
i have 1 dns server and 2 backend web servers
dns server - www.example.com 192.168.1.1
web server 1 - http1.example.com 192.168.1.2
web server 2 - http2.example.com 192.168.1.3
Please help me here...really appreciate it
falko
4th April 2008, 19:41
What exactly is the problem?
neothe1
6th April 2008, 09:00
The problem is I'm not able to edit the worker setting for my backend servers when I click my worker URL...It won't display as shown in the guide
And also how do I determine my backend servers are running properly? Will it alert us when one of my backend servers is down?
What should be configured for my DNS server?
REALLY NEED YOUR KIND ADVICE...falko
THANK YOU
falko
7th April 2008, 19:01
The problem is I'm not able to edit the worker setting for my backend servers when I click my worker URL...It won't display as shown in the guideWhat do you mean with worker URL? There's no such thing mentioned in the tutorial. Do you mean the Balancer Manager page?
And also how do I determine my backend servers are running properly? Will it alert us when one of my backend servers is down?
You can see that on the Balancer Manager page.
What should be configured for my DNS server?
Just create records for your backend nodes and www.
neothe1
8th April 2008, 07:21
Yes, it is at the balancer manager page.
It won't display the worker setting as shown in your guide. Please help a newbiew here. Really need it.
Here's my configuration in dns server
DNS IN A 192.168.1.1
www IN A 192.168.1.1
http2 IN A 192.168.1.2
http3 IN A 192.168.1.3
Thank you
falko
8th April 2008, 11:41
Does your load balancer vhost look like this?
NameVirtualHost *
<VirtualHost *>
ServerName www.example.com
ServerAlias example.com
DocumentRoot /var/www/
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /balancer-manager !
ProxyPass / balancer://mycluster/ stickysession=BALANCEID nofailover=On
ProxyPassReverse / http://http1.example.com/
ProxyPassReverse / http://http2.example.com/
<Proxy balancer://mycluster>
BalancerMember http://http1.example.com route=http1
BalancerMember http://http2.example.com route=http2
ProxySet lbmethod=byrequests
</Proxy>
<Location /balancer-manager>
SetHandler balancer-manager
Order deny,allow
Allow from all
</Location>
</VirtualHost>
neothe1
9th April 2008, 10:59
Yes it is exactly the same as shown...I just wondering anything wrong with my Load Balancer...I mean the DNS setting. Do they need the same apache2 version for the back end servers?
falko
10th April 2008, 18:39
What happens when you try to access www.example.com/balancer-manager? Any errors in Apache's error log (on the load balancer)?
neothe1
11th April 2008, 07:35
This is what I get from the load balancer when I click the url under worker setting in the balancer manager page
[Fri Apr 11 12:13:12 2008] [error] ap_proxy_connect_backend disabling worker for (http3.example.com)
[Fri Apr 11 12:13:43 2008] [notice] child pid 2706 exit signal Segmentation fault (11)
[Fri Apr 11 12:13:43 2008] [notice] child pid 2707 exit signal Segmentation fault (11)
[Fri Apr 11 12:17:13 2008] [notice] child pid 2704 exit signal Segmentation fault (11)
[Fri Apr 11 12:17:19 2008] [notice] child pid 3629 exit signal Segmentation fault (11)
I have shutdown both my back end web servers from the time I get this message. The balancer manager can detect error at the status there.
Even I have my back end servers are on, but still I cannot view the worker setting.
It's just the worker setting I'm not able to view. Other things work well
Please help...Thank you
falko
12th April 2008, 18:11
What's the output of apache2 -t? Does it show any syntax errors?
neothe1
15th April 2008, 11:45
It shows syntax OK
What is wrong with my configuration here?
I've been trying to get it working for a long time and it makes me sick!!!
Others can, but why I cannot?
neothe1
16th April 2008, 05:26
Please help...Really appreciate it
falko
16th April 2008, 22:55
Please check your configuration again and make sure that you followed the tutorial to the letter. Maybe you made a typo somewhere?
neothe1
23rd April 2008, 05:55
Can you please show me how to set the DNS for my load balancer?
And also do I need to set alias for www in my virtual host of my backend web servers?
I've checked my setting for many many times and everything looks exactly the same as the tutorial.
Can you please help here?? Thank you
falko
23rd April 2008, 15:13
Are you running your own name servers, or does someone else (e.g. your registrar) do this for you?
neothe1
24th April 2008, 04:34
I'm the one doing all the testing. I create a simple DNS like test.com in a LAN. Then I just create 2 backend servers to test the load balancer.
Can you please guide me on how to configure the DNS together with the load balancer? I mean DNS server serves as load balancer.
Thank you
falko
24th April 2008, 17:43
You mean you want to install BIND or MyDNS or some other DNS server on the load balancer? You can use one of the guides from the DNS category: http://www.howtoforge.com/howtos/dns
neothe1
25th April 2008, 07:19
Can you please show me how did you get the load balancer work include all the settings with DNS server?
Please show me your way to make the things work...Much appreciated
falko
26th April 2008, 14:21
Well, what exactly do you need to know? Please try to be more detailed.
neothe1
27th April 2008, 17:30
Sorry for the confusion here.
However, can you please show me the simplest way to get the load balancer working?
Much appreciated if you can please show me the easiet way to do it in LAN.
I just want to have a working load balancer. Please show me the way in setting up the load balancer and web servers including all the configurations that you have used to get the load balancer working.
Really appreciate your kind attention. It's very important
falko
28th April 2008, 22:49
It's all in the tutorials... Where exactly are you having problems?
neothe1
29th April 2008, 04:29
The problem is that I do not know what are the other configurations that you have done in the load balancer (dns server) and the backend servers as well
Really appreciate it if you can just post those simple steps to make things work (not included in the tutorials). Simple configurations in the load balancer (dns server) and backend web servers that you can think of will be enough. For example, setting up dns server + load balancer, what are the configurations need to be done except those in the tutorials?
falko
29th April 2008, 17:54
You can use external DNS servers (e.g. from your registrar). If you want to run your own name servers, take a look at the DNS category: http://www.howtoforge.com/howtos/dns
neothe1
29th April 2008, 18:36
Is it possible that i create a dns server with load balancer function?
I really do not understand despite the tutorials.
I'm using bind9 to create a simple dns server and include the load balancer function. However, I do not know what did I miss here. How did you configure the dns server?
falko
30th April 2008, 17:12
Yes, you can install BIND on the load balancer.
Take a look at http://www.howtoforge.com/traditional_dns_howto to learn how to configure BIND.
If you're getting errors, please post the error messages.
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.