一段对 理解 perlbal reproxy 有所帮助的mail

上一篇 / 下一篇  2007-06-07 12:18:37 / 个人分类:其他

EQ)qG+I^)S)W|3o0

X-Reproxy-Url patch for Pound木铎校园 BBS 社区4ov/~C8dW
Nathan Schmidt <nathan(at)pbwiki.com>
2007-05-02 22:33:14[FULL]
Hi Robert,

We use Pound here at PBwiki for our frontend traffic directing, SSL,  
and rewrite. Since we use MogileFS as our backing store it could be  
useful for us to have support for Perlbal's reproxy feature, which  
allows the client to specify an internal url (never shown to end  
users) which houses the document body. In this case the application  
layer would handle permissions, quota, and logging then feed the  
header "X-Reproxy-Url:http://10.0.0.31/
木铎校园 BBS 社区Qg^]1Nq(|

木铎校园 BBS 社区%Uv2{3xG;[s*p+@ e9h

dev3/0/023/683/0023683057.fid" and an empty body back to Pound. Pound 
MU\? zH0then opens a new connection to 10.0.0.31, instead of the application 
:Gfy/y(J_ofA4^o0layer having to do that passthrough itself. This frees up Apache to 木铎校园 BBS 社区 ?)X,W-K u
do other expensive application-level things instead of spoon-feeding 
fH)PJ3xIu m#{%Sy0to modems across the planet.木铎校园 BBS 社区y7xpDR i7M A
木铎校园 BBS 社区O j"m4A+Y0mD?C0i%Q
The linked patch is more a proof-of-concept than production-grade 
HTz]JTT6f&Q0yet. I wanted to post it now to ask your thoughts about the method 木铎校园 BBS 社区0but$K b g#D4L i
and whether you'd consider adding this to the main codebase once it 木铎校园 BBS 社区Qu6i9z$s-R^
is more mature (and configurable).
8m _8I+VFr e*B0
4QB%Q:|&B ZH n0Thanks for making Pound, it's been a great help for us.木铎校园 BBS 社区v'if}`kS(T

!MY5_"QK#i$XZhA"g]@0Regards,木铎校园 BBS 社区%V|(V:fFKD7F
-Nathan Schmidt / CTO, PBwiki木铎校园 BBS 社区2]D Owk-D TS
木铎校园 BBS 社区Y }URX3B_:U
Patch hosted at:http://poundpatch.pbwiki.com/


木铎校园 BBS 社区K j}sf}8w&YY+qJ

Re: [Pound Mailing List] X-Reproxy-Url patch for Pound木铎校园 BBS 社区6?2gP?j?|
Ted Dunning <tdunning(at)veoh.com>
2007-05-02 23:04:04[FULL]
So you are essentially implementing a special case redirect within pound
rather than within the browser or within the application?

The benefits would be greater application isolation via the abstraction
layer provided by pound as well as putatively higher throughput because you
are doing less proxying?

On 5/2/07 1:33 PM, "Nathan Schmidt" <nathan(at)pbwiki.com> wrote:
[...]

Re: [Pound Mailing List] X-Reproxy-Url patch for Pound木铎校园 BBS 社区Bs%k)v"RoEV
Nathan Schmidt <nathan(at)pbwiki.com>
2007-05-02 23:49:40[FULL]
That's correct.

We don't expose the 10.0.0.x address space or internal url to the  
outside world since our user's files are stored in a sequential  
integer (thus guessable) namespace. A real-world example we have  
lately is a Flash game on a user's wiki which has become quite  
popular in Sweden and Norway, so we have a lot of people accessing a  
~2Mb file over a mix of fast and slow connections.

Right now that 2Mb of data goes from the file storage machines to the  
appserver to the Pound proxy to the client. We'd rather free up  
Apache to move on to the next interesting request (such as rendering  
a wiki page or processing an edit) and let Pound take care of just  
trickling out the static data.

We need the application layer to be involved for this otherwise  
uninteresting static file because we have a great deal of non-public  
user data which can only be served once the session/auth phase is  
complete. We also allow users to make their data private or public at  
arbitrary times, and so we can't do a great deal of upstream caching  
of currently public data.


The reproxy idea is from Brad Fitzpatrick, who wrote MogileFS and  
Perlbal.http://www.usenix.org/events/lisa04/tech/talks/livejournal.pdf(see  
page 48)

We'd switch to Perlbal as the proxy role but Pound is otherwise  
meeting our needs nicely and has ended up being quite fast on our  
commodity hardware.

-n

On May 2, 2007, at 2:04 PM, Ted Dunning wrote:
[...][...][...]

Re: [Pound Mailing List] X-Reproxy-Url patch for Pound
(U HF!p I8h/N0Matt Mullenweg <m(at)mullenweg.com>
2007-05-03 01:35:58[FULL]
Nathan Schmidt wrote:[...]

We are in exactly the same boat. Thanks for putting this out there.[...]


TAG: perlbal ha loadbalance pound

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

关于作者