Re: varnish bottleneck?

2009-12-01 Thread Poul-Henning Kamp
In message 4b0f276a.9000...@gmail.com, ll writes:

if (req.request == POST){
pipe;
}

Use pass, not pipe.

-- 
Poul-Henning Kamp   | UNIX since Zilog Zeus 3.20
p...@freebsd.org | TCP/IP since RFC 956
FreeBSD committer   | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
___
varnish-misc mailing list
varnish-misc@projects.linpro.no
http://projects.linpro.no/mailman/listinfo/varnish-misc


Re: varnish bottleneck?

2009-11-30 Thread Lars Jørgensen
Den 30/11/2009 kl. 03.51 skrev ll:
 so if in the pipe mode , one of request is POST,and i set the if POST 
 the pipe. in this situation , I can control only the POST request go to 
 pipe mode.may be some GET request will be pipe also if the GET request 
 after the POST. right ? because the pipe mode end by either backend or 
 client closes the connection . and I don't know when the connect will 
 close . can I understand like that ? Is it rights ?
 and if I set PASS,even though the GET request after the POST, it will be 
 handle by normally (maybe lookup or other settings I had set for GET)
 Is it right ?

Yes, that's the way I understand it, too.


-- 
Lars
___
varnish-misc mailing list
varnish-misc@projects.linpro.no
http://projects.linpro.no/mailman/listinfo/varnish-misc


Re: varnish bottleneck?

2009-11-30 Thread Poul-Henning Kamp

That is correct.

If you use pipe, the TCP connection turns into a straight pipe
where bytes are moved from client to server, without further inspection,
until either side closes the TCP connection.

-- 
Poul-Henning Kamp   | UNIX since Zilog Zeus 3.20
p...@freebsd.org | TCP/IP since RFC 956
FreeBSD committer   | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
___
varnish-misc mailing list
varnish-misc@projects.linpro.no
http://projects.linpro.no/mailman/listinfo/varnish-misc


Re: varnish bottleneck?

2009-11-29 Thread ll
I have some problem when I understand the pipe and pass.
In the official website ,
In pipe mode, the request is passed on to the backend, and any further 
data from either client or backend is passed on unaltered until either 
end closes the connection.
In pass mode, the request is passed on to the backend, and the backend’s 
response is passed on to the client, but is not entered into the cache. 
Subsequent requests submitted over the same client connection are 
handled normally.

so if in the pipe mode , one of request is POST,and i set the if POST 
the pipe. in this situation , I can control only the POST request go to 
pipe mode.may be some GET request will be pipe also if the GET request 
after the POST. right ? because the pipe mode end by either backend or 
client closes the connection . and I don't know when the connect will 
close . can I understand like that ? Is it rights ?
and if I set PASS,even though the GET request after the POST, it will be 
handle by normally (maybe lookup or other settings I had set for GET)
Is it right ?

于 2009-11-27 17:25, Tollef Fog Heen 写道:
 ]] ll 

 | if (req.http.host ~www.abc.cn){
 | lookup;
 | }
 | it's well. Varnish can cache everything .but some function of the
 | website is unable .eg POST. So I put the POST judge before the HOST
 | .like that :
 | if (req.request == POST){
 | pipe;
 | }
 | if (req.http.host ~www.abc.cn){
 | lookup;
 | }
 | there are some problem .many of url's record can't be find in the
 | varnishlog .and there are no marked by the varnish eg X-Cache: MISS in
 | the Response Headers .

 Yes, this is how pipe works.  You might want to read up on pass vs pipe.

   

___
varnish-misc mailing list
varnish-misc@projects.linpro.no
http://projects.linpro.no/mailman/listinfo/varnish-misc


Re: varnish bottleneck?

2009-11-27 Thread Lars Jørgensen
Den 27/11/2009 kl. 02.12 skrev ll:
 there are some problem .many of url's record can't be find in the
 varnishlog .and there are no marked by the varnish eg X-Cache: MISS in
 the Response Headers .
 I had post this problem in this maillist .it's nothing about pipe or
 pass about no marked.

Well, if you have decided it has nothing to do with pipe, then we can't really 
help you, can we?


--
Lars
___
varnish-misc mailing list
varnish-misc@projects.linpro.no
http://projects.linpro.no/mailman/listinfo/varnish-misc


Re: varnish bottleneck?

2009-11-27 Thread Tollef Fog Heen
]] ll 

| if (req.http.host ~www.abc.cn){
| lookup;
| }
| it's well. Varnish can cache everything .but some function of the
| website is unable .eg POST. So I put the POST judge before the HOST
| .like that :
| if (req.request == POST){
| pipe;
| }
| if (req.http.host ~www.abc.cn){
| lookup;
| }
| there are some problem .many of url's record can't be find in the
| varnishlog .and there are no marked by the varnish eg X-Cache: MISS in
| the Response Headers .

Yes, this is how pipe works.  You might want to read up on pass vs pipe.

-- 
Tollef Fog Heen 
Redpill Linpro -- Changing the game!
t: +47 21 54 41 73
___
varnish-misc mailing list
varnish-misc@projects.linpro.no
http://projects.linpro.no/mailman/listinfo/varnish-misc


varnish bottleneck?

2009-11-26 Thread ll
I think there are maybe some problem about varnish .My varnish's version
is 2.0.4 .I want to cache a website for everything .so I set the rules
like that

if (req.http.host ~www.abc.cn){
lookup;
}
it's well. Varnish can cache everything .but some function of the
website is unable .eg POST. So I put the POST judge before the HOST
.like that :
if (req.request == POST){
pipe;
}
if (req.http.host ~www.abc.cn){
lookup;
}
there are some problem .many of url's record can't be find in the
varnishlog .and there are no marked by the varnish eg X-Cache: MISS in
the Response Headers .
I had post this problem in this maillist .it's nothing about pipe or
pass about no marked. And there urls will go to the backend server every
time. I think is there the varnish bottleneck? whether varnish judge the
POST first ,it can't handle all .so there are some miss handle ,and go
though to the backend ? or maybe some options ,I didn't have the right
configure in the vcl ?
___
varnish-misc mailing list
varnish-misc@projects.linpro.no
http://projects.linpro.no/mailman/listinfo/varnish-misc