logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Apache farm, cluster
Author
Qmpeltaty



Joined: 06 Feb 2008
Posts: 182
Location: Poland

PostPosted: Tue 20 May '14 14:20    Post subject: Apache farm, cluster Reply with quote

I wonder if there is any well known, good practice for clustering, merging more than one Apache instance ?

Assumming that webpage is very popular, concurrent connections amount is overwhelming one Apache instance, there is no more to squizee from Apache configuration, no more code of application to improve - what would you do ?
Back to top
Qmpeltaty



Joined: 06 Feb 2008
Posts: 182
Location: Poland

PostPosted: Thu 22 May '14 11:04    Post subject: Reply with quote

Anybody ?
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3092
Location: Hilversum, NL, EU

PostPosted: Thu 22 May '14 11:39    Post subject: Reply with quote

No hurry, maybe the weather keeps ppl away Very Happy

Did you have a look at mod_proxy_balancer http://httpd.apache.org/docs/2.4/mod/mod_proxy_balancer.html ?

You can read for example:

http://www.openlogic.com/wazi/bid/188013/Load-Balancing-Using-Apache-s-mod_proxy_balancer

https://blogs.oracle.com/oswald/entry/easy_http_load_balancing_with
Back to top
Qmpeltaty



Joined: 06 Feb 2008
Posts: 182
Location: Poland

PostPosted: Fri 23 May '14 12:58    Post subject: Reply with quote

Steffen wrote:
No hurry, maybe the weather keeps ppl away Very Happy


You could be right Steffen - it's nice time to get some Sun Smile

Steffen wrote:

Did you have a look at mod_proxy_balancer..


This is not exactly what i need. My Apache instances are loadalancers for JBoss application servers (in some scenarios +10 nodes of JBoss behind Apache) - and this is what you wrote about (i use mod_jk instead of mod_proxy).

What i need is to use multiple Apache instance in front of multiple JBoss nodes . I'm looking for solution like Ucarp, Ultramonkey etc. - but on Windows.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Mon 26 May '14 10:44    Post subject: Reply with quote

I was at vacation Wink

I think you can use mod_heartbeat and mod_watchdog. And maybe mod_lbmethod_heartbeat.

Before Apache 2.4 I used several public IP adresses and a round robin loadbalancer.
Back to top
Qmpeltaty



Joined: 06 Feb 2008
Posts: 182
Location: Poland

PostPosted: Mon 26 May '14 11:27    Post subject: Reply with quote

James Blond wrote:

Before Apache 2.4 I used several public IP adresses and a round robin loadbalancer.


Roung robin loadbalancer is quite wide - on what level you have it (DNS, http request)?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Mon 26 May '14 12:10    Post subject: Reply with quote

I used DNS based round robin. It has the huge disadvantage if a server fails and the client caches the IP it will fail some times. Sure the balancer knows which server is online, but client caching is problem.
That is why I look into mod heartbeat, but I haven'#t found a good tutorial yet.


In an ideal world, I would have 2 apache servers as loadbalancer with hotstandby failover. Behind those two a bunch of apache reverse proxies and behind that the APP servers. Currently the hotstandby is done by hand Confused
Back to top
Qmpeltaty



Joined: 06 Feb 2008
Posts: 182
Location: Poland

PostPosted: Tue 27 May '14 9:31    Post subject: Reply with quote

Ush, manual hotstandby sucks Mad For me it's more important to get additional threads for handling more incoming traffic - failover is less imporatant but would also be nice to get this functionality.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Tue 27 May '14 16:57    Post subject: Reply with quote

Well back to the original question. I would set an apache loadbalancer in front of the bunch of apache reverse proxies.
However having DNS based round robin with some external IPs can handle more incoming traffic.
Back to top
PipoDeClown



Joined: 20 Dec 2005
Posts: 77

PostPosted: Tue 27 May '14 23:46    Post subject: Reply with quote

Windows has Network load balancing. Instead of roundrobin dns this can do HA and session affinity. Behind that throw some caching reverse proxies that point to your backend.

machine 1:(NLB-->SSL Termination-->Load balancer)-->machine 2:(Reverse proxy)-->Backend

Aswell add mod_security with all rules enabled to the reverse proxies just for fun Smile
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Wed 28 May '14 11:01    Post subject: Reply with quote

A much harder to implement solution is to use a CDN for static files via subdomain. e.g. static.example.com
That makes the deployment harder and the HTML code needs to be changed.
Back to top


Reply to topic   Topic: Apache farm, cluster View previous topic :: View next topic
Post new topic   Forum Index -> Apache