Log in

No account? Create an account
mod_proxy_balancer - brad's life [entries|archive|friends|userinfo]
Brad Fitzpatrick

[ website | bradfitz.com ]
[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

mod_proxy_balancer [Aug. 17th, 2005|02:19 pm]
Brad Fitzpatrick
[Tags|, ]

Just yesterday I was bitching about how bad mod_proxy was, but one of my biggest complaints is being addressed in the upcoming Apache 2.2:


Still looks like it's lacking, but at least it's becoming a load balancer now, without having to use mod_rewrite and an external rewrite program.

[User Picture]From: scosol
2005-08-17 09:26 pm (UTC)
yeah- apache 2.2 robustifies a lot of stuff in the proxy/cache/lb modes of operations...
(Reply) (Thread)
[User Picture]From: avva
2005-08-17 09:28 pm (UTC)
So, apache2's gonna be good for something now?
(Reply) (Thread)
[User Picture]From: xaosenkosmos
2005-08-17 09:29 pm (UTC)

mod_rewrite, mmm...

To quote "Why I Hate the Apache Web Server" (page 14):
  • I probably don’t need to say anything more than just “mod_rewrite”. But I will.
  • “Voodoo” and “... flexibility of sendmail”
  • The docs practically scream “GO AWAY!”
(Try to look past the Comic Sans MS and the fact that it's a somewhat gratuitous PDF, it's actually a decent read. It was also on slashdot in, like, July, so it might seem vaguely familiar.)
(Reply) (Thread)
[User Picture]From: dormando
2005-08-17 09:43 pm (UTC)
I chatted with the apache folks a little about some apache 2.2 stuff two months back. Looks pretty exciting.

Wish someone with proper experience could hack in a few better load balancing/checker methods into there. It should to be better than mod_backhand was...

Also, the event MPM is rad. The current problem is it's limited to only holding keepalive connections. They don't have the infrastructure to break up sendfile calls (like gatling or similar). If they/someone can fix that, then processing is threaded, and all networking operations can go straight into the event processor (backed by epoll/kqueue or whatever).

Totally cans the "requirement" of having two apache instances ride each other under most circumstances, and I guess makes it possible of mod_proxy-ish transfers to go straight through instead of hog threads after processing.
(Reply) (Thread)
From: (Anonymous)
2005-08-17 10:51 pm (UTC)

I do have a work-in-progress to move sendfile() and do async writing to clients in the Event MPM, but it is currently blocking on a few technical memory lifetime issues, and the fact that I just moved to Los Gatos for a new job at Bloglines and have very little spare time.

-Paul Querna (author of that event mpm thingy)
(Reply) (Parent) (Thread)
[User Picture]From: brad
2005-08-17 11:04 pm (UTC)

The Event MPM is looking nice. Hopefully you find time to keep working on it.
(Reply) (Parent) (Thread)
[User Picture]From: dormando
2005-08-18 03:18 am (UTC)
Oh, nice! Glad it's had some progress since I bugged #apache last.

Good luck on your new job. I always drive through Los Gatos but have never actually tooled around in there. :) Good luck finding some time and getting this done, we're looking forward to it.
(Reply) (Parent) (Thread)