You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Danesh Daroui <da...@yahoo.se> on 2006/07/03 04:52:47 UTC

[users@httpd] Distributed Web Server

Hi all,

I have set up a web server using Apache and it used to work fine until my site's hit grew up and now it has serious problems because of intensive clients traffic. I would like to set up other systems to cooperate with my main server and serve clients as well as my main server to make ballance when the server is overloaded. How can I tell Apache to cooperate and in other words set up a distributed network of web servers which all servers serves my site? Do I need to install a new module? Any solution?

Regards,

Danesh


SV: Re: [users@httpd] Distributed Web Server

Posted by Danesh Daroui <da...@yahoo.se>.
Well, I think the bottleneck in our server will be mostly bandwidth. However we are using a 100 Mbits/s internet connection, but we are still worry what would happend if number of users will grow enormously. I have gathered some information like using DC-Apache module which is Distributied Cooperative Apache, but in that case the main server will send request to cooperative servers when the it is overloaded by requests. In that case, again, the main server can be a bottleneck, while it has to decide when and where requets should be sent. Do you think it may work or any better suggestion and/or solution?

Chris Snyder <ca...@pennswoods.net> skrev: Setting up a round-robin DNS for the servers is sort of almost exactly like a
quick clustering patch.

Are you sure it is the apache server that is not keeping up though?  You sure it
isn't a bandwidth limitation?

Quoting Danesh Daroui :

> Hi all,
> 
> I have set up a web server using Apache and it used to work fine until my
> site's hit grew up and now it has serious problems because of intensive
> clients traffic. I would like to set up other systems to cooperate with my
> main server and serve clients as well as my main server to make ballance when
> the server is overloaded. How can I tell Apache to cooperate and in other
> words set up a distributed network of web servers which all servers serves my
> site? Do I need to install a new module? Any solution?
> 
> Regards,
> 
> Danesh
> 
> 




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See  for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org



Re: [users@httpd] Distributed Web Server

Posted by Chris Snyder <ca...@pennswoods.net>.
Setting up a round-robin DNS for the servers is sort of almost exactly like a
quick clustering patch.

Are you sure it is the apache server that is not keeping up though?  You sure it
isn't a bandwidth limitation?

Quoting Danesh Daroui <da...@yahoo.se>:

> Hi all,
> 
> I have set up a web server using Apache and it used to work fine until my
> site's hit grew up and now it has serious problems because of intensive
> clients traffic. I would like to set up other systems to cooperate with my
> main server and serve clients as well as my main server to make ballance when
> the server is overloaded. How can I tell Apache to cooperate and in other
> words set up a distributed network of web servers which all servers serves my
> site? Do I need to install a new module? Any solution?
> 
> Regards,
> 
> Danesh
> 
> 




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: SV: Re: [users@httpd] Distributed Web Server

Posted by David Filion <df...@auto123.com>.
Danesh Daroui wrote:
> Hi Frank,
>
> I think we are talking about different things. I already know that it 
> is possible to have a web site on multiple server (of course with 
> different addresses). What I am looking for, is to have mutiple web 
> servers on one address (single IP), where multiple servers cooperate 
> with each other to handle incomming requests.
>
> D.
>
>
> */frankpeng@netscape.net/* skrev:
>
>     I have a database cluster to support my webserver mirrors. The
>     webserver is distributable to install multiple mirrors. There is
>     no way
>     to have bottlenecks. These are the two mirrors on different
>     machinese:
>     http://breakevilaxis.org/mvnforum/mvnforum/index?lang=en
>     http://www.ddint.org/mvnforum/mvnforum/index?lang=en
>     If you like french, it will be
>     http://breakevilaxis.org/mvnforum/mvnforum/index?lang=fr ....
>     Once you find your bottleneck, you wil fix it.
>
>     Frank Peng.
>
>     -----Original Message-----
>     From: Alexander Lazic
>     To: users@httpd.apache.org
>     Sent: Mon, 3 Jul 2006 09:29:06 +0200
>     Subject: Re: [users@httpd] Distributed Web Server
>
>     Hi, 
>      
>     On Mon 03.07.2006 04:52, Danesh Daroui wrote: 
>     > 
>     >I have set up a web server using Apache and it used to work fine
>     until 
>     >my site's hit grew up and now it has serious problems because of 
>     >intensive clients traffic. I would like to set up other systems to 
>     >cooperate with my main server and serve clients as well as my main 
>     >server to make ballance when the server is overloaded. How can I
>     tell 
>     >Apache to cooperate and in other words set up a distributed
>     network of 
>     >web servers which all servers serves my site? Do I need to install a 
>     >new module? Any solution? 
>      
>     There are many solutions for this *problem* but the first step,
>     for me 
>     is, where are the real bottlenecks: 
>      
>     1.) application 
>     2.) bandwith (as Chris wrot) 
>     3.) MaxClients to low 
>     4.) some timeouts to high 
>     5.) *internal* Kommunication to slow (DB <=> APPL,APPL <=> WEBServer, 
>     WEBServer <=> Client, ... ) 
>     6.) ..... 
>      
>     For the solutions: 
>      
>     1.) HW-Loadbalancer 
>     2.) SW-Loadbalancer 
>     3.) ... 
>      
>     HTH 
>      
>     Regards 
>      
>     Alex 
>      
>     --------------------------------------------------------------------- 
>     The official User-To-User support forum of the Apache HTTP Server
>     Project. 
>     See for more info. 
>     To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org 
>       " from the digest: users-digest-unsubscribe@httpd.apache.org 
>     For additional commands, e-mail: users-help@httpd.apache.org 
>      
>
>
>     ---------------------------------------------------------------------
>     The official User-To-User support forum of the Apache HTTP Server
>     Project.
>     See for more info.
>     To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>     " from the digest: users-digest-unsubscribe@httpd.apache.org
>     For additional commands, e-mail: users-help@httpd.apache.org
>
>

Have you looked at LVS (http://www.linuxvirtualserver.org/)?  It's a 
software based load balancer (ie. you provide the box).   We use it for 
load balancing across our web servers.  No complaints. 
(crappy graphics time....)

      ______
      |  ISP  |
      ---+---
           |
           |
      ---+---
      | LVS |
           |
  --------------------------
  |              switch              |
  --------------------------
       |               |             |         
  ---+---    ---+---   ---+---
  |httpd1|    |httpd2|   |httpd3|...



David f.



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


SV: Re: [users@httpd] Distributed Web Server

Posted by Danesh Daroui <da...@yahoo.se>.
Hi Frank,

I think we are talking about different things. I already know that it is possible to have a web site on multiple server (of course with different addresses). What I am looking for, is to have mutiple web servers on one address (single IP), where multiple servers cooperate with each other to handle incomming requests.

D.


frankpeng@netscape.net skrev: I have a database cluster to support my webserver mirrors. The 
webserver is distributable to install multiple mirrors. There is no way 
to have bottlenecks. These are the two mirrors on different machinese: 
http://breakevilaxis.org/mvnforum/mvnforum/index?lang=en 
http://www.ddint.org/mvnforum/mvnforum/index?lang=en
If you like french, it will be 
http://breakevilaxis.org/mvnforum/mvnforum/index?lang=fr ....
Once you find your bottleneck, you wil fix it.

Frank Peng.

-----Original Message-----
From: Alexander Lazic 
To: users@httpd.apache.org
Sent: Mon, 3 Jul 2006 09:29:06 +0200
Subject: Re: [users@httpd] Distributed Web Server

Hi, 
 
On Mon 03.07.2006 04:52, Danesh Daroui wrote: 
> 
>I have set up a web server using Apache and it used to work fine until 
>my site's hit grew up and now it has serious problems because of 
>intensive clients traffic. I would like to set up other systems to 
>cooperate with my main server and serve clients as well as my main 
>server to make ballance when the server is overloaded. How can I tell 
>Apache to cooperate and in other words set up a distributed network of 
>web servers which all servers serves my site? Do I need to install a 
>new module? Any solution? 
 
There are many solutions for this *problem* but the first step, for me 
is, where are the real bottlenecks: 
 
1.) application 
2.) bandwith (as Chris wrot) 
3.) MaxClients to low 
4.) some timeouts to high 
5.) *internal* Kommunication to slow (DB <=> APPL,APPL <=> WEBServer, 
WEBServer <=> Client, ... ) 
6.) ..... 
 
For the solutions: 
 
1.) HW-Loadbalancer 
2.) SW-Loadbalancer 
3.) ... 
 
HTH 
 
Regards 
 
Alex 
 
--------------------------------------------------------------------- 
The official User-To-User support forum of the Apache HTTP Server 
Project. 
See  for more info. 
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org 
  " from the digest: users-digest-unsubscribe@httpd.apache.org 
For additional commands, e-mail: users-help@httpd.apache.org 
 


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See  for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org



Re: [users@httpd] Distributed Web Server

Posted by fr...@netscape.net.
I have a database cluster to support my webserver mirrors. The 
webserver is distributable to install multiple mirrors. There is no way 
to have bottlenecks. These are the two mirrors on different machinese: 
http://breakevilaxis.org/mvnforum/mvnforum/index?lang=en 
http://www.ddint.org/mvnforum/mvnforum/index?lang=en
If you like french, it will be 
http://breakevilaxis.org/mvnforum/mvnforum/index?lang=fr ....
Once you find your bottleneck, you wil fix it.

Frank Peng.

-----Original Message-----
From: Alexander Lazic <al...@none.at>
To: users@httpd.apache.org
Sent: Mon, 3 Jul 2006 09:29:06 +0200
Subject: Re: [users@httpd] Distributed Web Server

Hi, 
 
On Mon 03.07.2006 04:52, Danesh Daroui wrote: 
> 
>I have set up a web server using Apache and it used to work fine until 
>my site's hit grew up and now it has serious problems because of 
>intensive clients traffic. I would like to set up other systems to 
>cooperate with my main server and serve clients as well as my main 
>server to make ballance when the server is overloaded. How can I tell 
>Apache to cooperate and in other words set up a distributed network of 
>web servers which all servers serves my site? Do I need to install a 
>new module? Any solution? 
 
There are many solutions for this *problem* but the first step, for me 
is, where are the real bottlenecks: 
 
1.) application 
2.) bandwith (as Chris wrot) 
3.) MaxClients to low 
4.) some timeouts to high 
5.) *internal* Kommunication to slow (DB <=> APPL,APPL <=> WEBServer, 
WEBServer <=> Client, ... ) 
6.) ..... 
 
For the solutions: 
 
1.) HW-Loadbalancer 
2.) SW-Loadbalancer 
3.) ... 
 
HTH 
 
Regards 
 
Alex 
 
--------------------------------------------------------------------- 
The official User-To-User support forum of the Apache HTTP Server 
Project. 
See <URL:http://httpd.apache.org/userslist.html> for more info. 
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org 
  " from the digest: users-digest-unsubscribe@httpd.apache.org 
For additional commands, e-mail: users-help@httpd.apache.org 
 


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: SV: Re: [users@httpd] Distributed Web Server

Posted by Alexander Lazic <al...@none.at>.
Hi,

On Die 04.07.2006 15:48, Danesh Daroui wrote:
>
>Our bottleneck will be mostly bandwidth since our servers are fast
>enought. Frankly, I didn't get anything from your solutions
>(HW-Loadbalancer and SW-Loadbalancer). Are they software/hardware
>products? Would you please explain?

Well you have identified your bottleneck then you have the following
options, from my point of view:

1.) Upgrade the bandwidth ;-)
2.) Get more lines.

What is your infrastructure, is it like this?!

     Internet
        |
        |more then 100Mbit
        |
  +------------+
  | isp-router |
  +------------+
        |
        | 100mbit
        |
  +------------+
  | your server|
  +------------+

3.) One connect point and more *direct* answer server:

    +------------------+
    |      client      |
    +------------------+
             |
    +------------------+
    | www.whatever.com |
    +------------------+
          |redirect the client
          | to www[1-n].whatever.com
--------------------------------------------
    +------------------+
    |      client      |
    +------------------+
             |
    +-----------------------+
    | www[1-n].whatever.com |
    +-----------------------+

Pros:
1.) You should use per server one line, thefore the bandwidth problem
    would be solved :-)
2.) Trivial loadbalancing.

Cons:
1.) Maybe expensive, because you need more HW-Boxen(Webserver)
2.) The bookmarking isn't very nice, expect you make a frameset around
    the main site :-(

4.) Tuncate more lines from your isp, but i'am not a network guru and
therfore i have only a theoretical idea i'am not sure if it work for
you.

         Internet
           |
           |more then 100Mbit
           |
  +------------------------+
  | *THE ISP ROUTER/SWITCH*|
  +------------------------+
     |Line1 |Line2 |Line3
      +----------------+
      | your server    |
      +----------------+


5.) Ask a *competent* consulting Company, yea it't not easy to find one
    ;-)
6.) Due the fact that you *know* that you have a bandwidth problem the
Loadbalancer solutions would not help you, i think.

But i think this is OT for this list, isn't it?!

regards

Alex

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: SV: Re: [users@httpd] Distributed Web Server

Posted by Pid <p...@pidster.com>.

Jacqui Caren wrote:
> Pid wrote:
>> Hardward load balancing is when you use specific types of network
>> equipment which present a single external interface while directing
>> traffic evenly between the servers behind it.
>>
>> Software does the same, but you'd install it on a server acting as a
>> front controller.  You can use the mod_proxy & mod_proxy_balancer Apache
>> modules for this.
> 
> Or you use openmosix and make a pool of boxes act as a single server
> image with apache forked processes being distributed across the pool.
> 
> The pool is self balancing and the management console is flashy
> enough to impress PHB's. :-0

Now that *is* a distributed webserver...

> Jacqui
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
> 
> 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: SV: Re: [users@httpd] Distributed Web Server

Posted by Jacqui Caren <ja...@ntlworld.com>.
Pid wrote:
> Hardward load balancing is when you use specific types of network
> equipment which present a single external interface while directing
> traffic evenly between the servers behind it.
> 
> Software does the same, but you'd install it on a server acting as a
> front controller.  You can use the mod_proxy & mod_proxy_balancer Apache
> modules for this.

Or you use openmosix and make a pool of boxes act as a single server
image with apache forked processes being distributed across the pool.

The pool is self balancing and the management console is flashy
enough to impress PHB's. :-0

Jacqui

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: SV: Re: [users@httpd] Distributed Web Server

Posted by Pid <p...@pidster.com>.
Do you actually want/mean a distributed web server?
I think you mean that you want to a load balance your site.

Alex was referring to SoftWare(SW) load balancing and HardWare(HW) load
balancing.  Both of these techniques involve using multiple physical
machines to serve pages which appear to come from a single address.

Hardward load balancing is when you use specific types of network
equipment which present a single external interface while directing
traffic evenly between the servers behind it.

Software does the same, but you'd install it on a server acting as a
front controller.  You can use the mod_proxy & mod_proxy_balancer Apache
modules for this.


p





Danesh Daroui wrote:
> Hi Alex,
> 
> Our bottleneck will be mostly bandwidth since our servers are fast
> enought. Frankly, I didn't get anything from your solutions
> (HW-Loadbalancer and SW-Loadbalancer). Are they software/hardware
> products? Would you please explain?
> 
> D.
> 
> 
> */Alexander Lazic <al...@none.at>/* skrev:
> 
>     Hi,
> 
>     On Mon 03.07.2006 04:52, Danesh Daroui wrote:
>     >
>     >I have set up a web server using Apache and it used to work fine until
>     >my site's hit grew up and now it has serious problems because of
>     >intensive clients traffic. I would like to set up other systems to
>     >cooperate with my main server and serve clients as well as my main
>     >server to make ballance when the server is overloaded. How can I tell
>     >Apache to cooperate and in other words set up a distributed network of
>     >web servers which all servers serves my site? Do I need to install a
>     >new module? Any solution?
> 
>     There are many solutions for this *problem* but the first step, for me
>     is, where are the real bottlenecks:
> 
>     1.) application
>     2.) bandwith (as Chris wrot)
>     3.) MaxClients to low
>     4.) some timeouts to high
>     5.) *internal* Kommunication to slow (DB <=> APPL,APPL <=> WEBServer,
>     WEBServer <=> Client, ... )
>     6.) .....
> 
>     For the solutions:
> 
>     1.) HW-Loadbalancer
>     2.) SW-Loadbalancer
>     3.) ...
> 
>     HTH
> 
>     Regards
> 
>     Alex
> 
>     ---------------------------------------------------------------------
>     The official User-To-User support forum of the Apache HTTP Server
>     Project.
>     See for more info.
>     To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>     " from the digest: users-digest-unsubscribe@httpd.apache.org
>     For additional commands, e-mail: users-help@httpd.apache.org
> 
> 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


SV: Re: [users@httpd] Distributed Web Server

Posted by Danesh Daroui <da...@yahoo.se>.
Hi Alex,

Our bottleneck will be mostly bandwidth since our servers are fast enought. Frankly, I didn't get anything from your solutions (HW-Loadbalancer and SW-Loadbalancer). Are they software/hardware products? Would you please explain?

D.


Alexander Lazic <al...@none.at> skrev: Hi,

On Mon 03.07.2006 04:52, Danesh Daroui wrote:
>
>I have set up a web server using Apache and it used to work fine until
>my site's hit grew up and now it has serious problems because of
>intensive clients traffic. I would like to set up other systems to
>cooperate with my main server and serve clients as well as my main
>server to make ballance when the server is overloaded. How can I tell
>Apache to cooperate and in other words set up a distributed network of
>web servers which all servers serves my site? Do I need to install a
>new module? Any solution?

There are many solutions for this *problem* but the first step, for me
is, where are the real bottlenecks:

1.) application
2.) bandwith (as Chris wrot)
3.) MaxClients to low
4.) some timeouts to high
5.) *internal* Kommunication to slow (DB <=> APPL,APPL <=> WEBServer,
WEBServer <=> Client, ... )
6.) .....

For the solutions:

1.) HW-Loadbalancer
2.) SW-Loadbalancer
3.) ...

HTH

Regards

Alex

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See  for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org



Re: [users@httpd] Distributed Web Server

Posted by Alexander Lazic <al...@none.at>.
Hi,

On Mon 03.07.2006 04:52, Danesh Daroui wrote:
>
>I have set up a web server using Apache and it used to work fine until
>my site's hit grew up and now it has serious problems because of
>intensive clients traffic. I would like to set up other systems to
>cooperate with my main server and serve clients as well as my main
>server to make ballance when the server is overloaded. How can I tell
>Apache to cooperate and in other words set up a distributed network of
>web servers which all servers serves my site? Do I need to install a
>new module? Any solution?

There are many solutions for this *problem* but the first step, for me
is, where are the real bottlenecks:

1.) application
2.) bandwith (as Chris wrot)
3.) MaxClients to low
4.) some timeouts to high
5.) *internal* Kommunication to slow (DB <=> APPL,APPL <=> WEBServer,
WEBServer <=> Client, ... )
6.) .....

For the solutions:

1.) HW-Loadbalancer
2.) SW-Loadbalancer
3.) ...

HTH

Regards

Alex

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org