In message e9dd9378-1dae-4077-a0c6-149dbac0c...@digitalmarbles.com, Ricardo N
ewbery writes:
On Jan 28, 2009, at 4:19 AM, Poul-Henning Kamp wrote:
In message 768C2A99-6D24-4D6F-
b324-25e13cfbe...@digitalmarbles.com, Ricardo N
ewbery writes:
Cool... so why do you figure that backwards
, to disable
the (effectively unused) per source-IP statistics.
--
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
lose the cache, which is obviously not particularly
desirable under heavy load.
Persistent storage coming up in version 2.1 :-)
--
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
.
With the new code, which will possibly be in 2.0.3, you can express
it sensibly:
purge req.url ~ some_regexp req.http.host ~ some other regexp
But we cannot do an object lookup, so we can not reclaim the storage
of those objects immediately.
--
Poul-Henning Kamp | UNIX since Zilog Zeus
(or vice versa).
--
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
.
--
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
In message 49817d5c.10...@giraffen.dk, Anton Stonor writes:
Poul-Henning Kamp wrote:
As far as I can tell, a zero TTL (number after RFC) can only
happen here if your default_ttl parameter is set to zero, OR
if there is clock-skew between the varnish machine and the
backend machine.
Right
In message 49818470.10...@giraffen.dk, Anton Stonor writes:
Poul-Henning Kamp wrote:
I hope we don't ship varnish that way on any platforms, the default
ttl should be 120 seconds...
No, the 0 default ttl comes from this one:
http://pypi.python.org/pypi/plone.recipe.varnish
From
I think I fixed this in r3565.
Poul-Henning
In message 200902012032.00280.ottol...@web.de, Sascha Ottolski writes:
Am Mittwoch 28 Januar 2009 10:52:47 schrieb Poul-Henning Kamp:
In message 200901260917.45223.ottol...@web.de, Sascha Ottolski
writes:
Assert error in exp_timer(), cache_expire.c
) dispenses with the need to store the hash-string so theory
could be tested.
--
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
, the object closest to expiring.
--
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
the overall workings and VCL in particular, manpages
suffer badly from the inability to include sensible illustrations.
--
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
control.
Poul-Henning
--
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
In message loom.20090212t090929-...@post.gmane.org, Ole Laursen writes:
Poul-Henning Kamp p...@... writes:
I looked up private here
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
and it says
Indicates that all or part of the response message is intended
for a single user
In message loom.20090212t102450-...@post.gmane.org, Ole Laursen writes:
Poul-Henning Kamp p...@... writes:
We don't consider varnish a shared cache in the RFC2616 sense of
the concept, because the varnish instance is fully under the control
of the servers administrator, and should therefore
in temporary (malloc) or persistent (disk) storage.
With some extra work, this will allow pass to become streaming.
--
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
In message loom.20090213t100923-...@post.gmane.org, Ole Laursen writes:
Poul-Henning Kamp p...@... writes:
This is necessary to be able to decide, per object, if it should be
stored in temporary (malloc) or persistent (disk) storage.
With some extra work, this will allow pass to become
if some of you have time to run -trunk a bit
every so often to help weed out the bugs.
Poul-Henning
[1] Yes, I watch too much Colbert Report.
--
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
be the
case.
The 'b' means backend transaction, and 'c' client side
transaction.
7 VCL_return c pass
10 BackendOpen b default 127.0.0.1 57141 0.0.0.0 3000
7 Backend c 10 default default
10 TxRequestb HEAD
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
p...@freebsd.org
vcl.load maint filename
When you want to go into maintenance mode, you switch to that VCL,
using vcl.use maint
when you want to get back to production, you switch back to your
normal VCL with vcl.use boot
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
p...@freebsd.org | TCP/IP
-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
In message b80ebd14-fa1b-40c5-8243-1c5c2edb1...@funnyordie.com, Jeff Anderson
writes:
Is there a way to tell or flag set if the fetched object is a graced
object?
In VCL you can tell by the negative ttl.
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
p...@freebsd.org | TCP
In message 49fe9576.7080...@d0pefish.de, Peter Hinse writes:
No idea? User-defined variables do not work, is there any trick I can
use to handle requests to xi.example.com differently?
Which version are you running ?
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
p...@freebsd.org
to allow such stuff to be done, but right
now my focus is on persistent storage.
Poul-Henning
PS: We are happy to hand out wiki bits (drop me an email), so
people can add ideas to our shopping list wiki page:
http://varnish.projects.linpro.no/wiki/PostTwoShoppingList
--
Poul-Henning Kamp
receiving
the entire contents.
--
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
to precreate a suitable number of threads to avoid dropped
requests while varnish ramps up.
--
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
are OK).
Threads not created should be zero.
--
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
(longest request)
No idea...
--
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
matching request to the backend. A restart clears this. If I recall
correctly, one of the triggers is using 'pass' inside vcl_hit or
vcl_fetch.
Only pass in vcl_fetch will create a hit for pass object.
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
p...@freebsd.org | TCP/IP since RFC
, is to avoid serializing clients on
objects that cannot be cached.
--
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
to try to organize something ?
Poul-Henning
--
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
-for-pass behaviour.
The object will not be marked as hit-for-pass if you do that, but
the resulting behaviour is the same, so unless you inspect stats,
you cannot tell the difference.
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
p...@freebsd.org | TCP/IP since RFC 956
FreeBSD
) will never even see these connections in the first place.
--
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
-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
In message f8baa10ae2544b3d8f60eb96a78dc...@sridharraju, Sridhar writes:
My Varnish is not showing cache hits while I run from firefox.
Check if you send cookies, by default cookies diables caching.
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
p...@freebsd.org | TCP/IP since
have minimal trouble getting there.
--
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
And yes, wouldn't it have been nice if POSIX had included a way to
see how many pages the kernel know you use ?
--
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
-90% idle CPUs.
Have you played a bit with varnihshist ? I suspect that may be
the most sensitive, if crude, indicator of overall performance
we can offer.
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
p...@freebsd.org | TCP/IP since RFC 956
FreeBSD committer | BSD since
to 104 bytes.
I seem to recall that the locking is benign.
Probably the more interesting question is how aggressive you want it to
be: if it is too militant, it will cause a lot of needless disk activity.
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
p...@freebsd.org | TCP/IP since
In message 2837.1250697...@critter.freebsd.dk, Poul-Henning Kamp writes:
In message 4a8bb076.50...@gmail.com, Rob S writes:
Just to follow up to myself after trying to hack up a solution in -trunk:
I seem to recall that the locking is benign.
Make that Mostly benign :-)
Probably the more
Any sugestions?
File a bugreport.
Use ...; syntax until I have time to look at it.
--
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
-Henning Kamp
--
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
In message dcccdf790908311636g39bbf036icdc66405e46aa...@mail.gmail.com, David
Birdsong writes:
What does your responstimes look like in varnishhist ?
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
p...@freebsd.org | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3
= better_one;
} else {
set req.backend = normal_one
}
--
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
from the list for reference counting
reasons)
--
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
-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
value on startup, and each request gets a
unique value.
--
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
latency responses, only 10%cpu usage on server, load around 1-2)
Why don't you restrict connection: close to non-IE6 then ?
You can test the User-Agent header in your VCL code
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
p...@freebsd.org | TCP/IP since RFC 956
FreeBSD committer
have been floated, how to deal better with that, but
no really good idea has been found yet.
--
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
resolution, just
find the right printf and fix the format.
Getting a timespec is just as expensive as getting a time_t, because
time(2) simply calls clock_gettime(2) under your feet.
Which shmrecord are we talking about ?
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
p...@freebsd.org
In message dcccdf790909132251o360dd2f1if10619325fb87...@mail.gmail.com, David
Birdsong writes:
...are any of the stats available inside vcl_error?
Not directly, but you can relatively easily get your hands on them
if you use inline C-code.
Poul-Henning
--
Poul-Henning Kamp | UNIX since
)
Wednesday I'll hang out with an old friend and thursday I'll start
to dig myself out of the heaps which have accumulated.
See you there...
Poul-Henning
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
p...@freebsd.org | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
of getting from Cambridge to London out, working on that right
now.
--
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
.
Yes, I have reached the same conclusion.
I think I'll aim for the 0715 from cambridge, that should have me at
Pimlico around 0830.
Poul-Henning
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
p...@freebsd.org | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Varnish :-)
--
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
other status code than 503 which you might prefer)
--
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
In message 20091002212608.gd19...@digdug.corp.631h.metaweb.com, Niall O'Higgi
ns writes:
Hi all,
I'm trying to get Varnish to log POST body contents.
Sorry, we have no code to support that presently.
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
p...@freebsd.org | TCP/IP
___
varnish-misc mailing list
varnish-misc@projects.linpro.no
http://projects.linpro.no/mailman/listinfo/varnish-misc
--===1052186233==--
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
p...@freebsd.org | TCP/IP since RFC 956
FreeBSD committer | BSD
obj.ttl = 10m;
#return (0);
}
if (req.url ~ ^/def/* {
set obj.ttl = 30s;
}
}
It's not clear from you example what you would use the return for,
but you can simulate it, but putting you return value in a header
instead
--
Poul-Henning Kamp | UNIX since Zilog Zeus
) {
} elseif (bar) {
} elseif (foomble) {
} else {
}
--
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
... :-)
Poul-Henning
--
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
Lenovo is supposed
to reply.
And then it's back to hacking varnish...
--
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
In message 002c01ca5da3$77a93230$66fb96...@paulissen@qbell.nl, Henry Pauliss
en writes:
Windows-refund case?=BF?
Did i miss something?
http://phk.freebsd.dk/MicrosoftSkat/
You should be able to read it :-)
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
p...@freebsd.org | TCP
.
Only on 32bit systems is there any reason to be concerned about
VM-space used.
--
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
the way to do that kind of benchmark was to send a twitter
message like:
Hehe, looks like Jessica Biels bikini straps snapped (http...)
:-)
--
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
numbers of worker threads squeezed into the address-space.
I have no idea how much stack-space a worker thread normally uses, so
no guidance is given, and we default to the system default.
Fixes #572
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
p...@freebsd.org | TCP/IP since
moved objects
=
I guess what you call kill activity is the same as nuked objects?
Correct, you seem to have plenty cache space.
--
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
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
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
-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
as many filedescriptors as it needs.
Use whatever means your kernel has to change this number, possibly
ulimit(1) or similar.
--
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
In message 4b3c5703.8020...@gmail.com, ll writes:
Is there any manual about the command varnishtest ? I useing varnish
2.0.4 edition .
very little. The best docs is the testcases in the tests subdirectory.
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
p...@freebsd.org | TCP
{
beresp.ttl = duration(beresp.http.myttl, 10s);
}
If the conversion fails because the string value is not a valid
IP/time/duration, the second parameter gets used instead.
Thanks for listening, now it's your turn to tell me if this is
stupid...
Poul-Henning
--
Poul-Henning Kamp | UNIX
In message 4b44814a.3010...@gmail.com, Rob S writes:
Poul-Henning Kamp wrote:
I'd like to mutter something here about adding some
form of return pass, rather than just writing pass.
That is already the syntax in -trunk:
return(pass);
2. Client identity
Access to cookies
In message op.u55n4olks5t...@id-c0805.oslo.osa, Cosimo Streppone writes:
On 06 january 2010 12:46:07, Poul-Henning Kamp p...@phk.freebsd.dk wrote:
1. Kill the magic default VCL.
It's great that you're asking feedback, thanks.
You will no longer be able to just give Varnish a subset
are instantiated from the silo.
Resident will increase as it gets paged in.
--
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
entries for
every branch taken in your VCL.
The number 1 case of not caching is cookies.
Poul-Henning
--
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
.
Of course, you can also mix the two methods...
--
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
to do ?
Poul-Henning
--
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
application.
run varnishncsa or varnishlog to collect your loginfo.
--
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
In message 4c3149fb1001100307s4364a201n9164abbe10957...@mail.gmail.com, pub c
rawler writes:
Is the delay 100ms something that could be made available in Varnish
near term?
You can do it with inline C code already, just call usleep(10)
in your inline C.
--
Poul-Henning Kamp | UNIX
...
___
varnish-misc mailing list
varnish-misc@projects.linpro.no
http://projects.linpro.no/mailman/listinfo/varnish-misc
--
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
In message b6b8b6b71001141306g4dbf4292qad39e2abb86e...@mail.gmail.com, John N
orman writes:
I think the answer is no, but . . .
Does a Varnish restart clear the existing cache?
(using the file storage.)
Actually it does, we are working on the persistent storage module.
--
Poul-Henning
: The best thing, is to not Vary on User-Agent
in the first place, that's how the InterNet is supposed to work.
Poul-Henning
--
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
In message b6b8b6b71001150646w7f3ba876y30401d85f1813...@mail.gmail.com, John
Norman writes:
OK.
But if your application backend really doesn't do anything different
for different user agents, then one should probably remove the
user-agent?
yes, by all means do so.
--
Poul-Henning Kamp
with varnishlog and varnishtop.
If you havn't yet, try:
varnishtop -i rxurl
--
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
only, the working scenario
is two squids each behind a very slow line to the internet, asking each
other before they pull down a file.
--
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
; }
{ .backend webserver; .weight 1; }
}
--
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
In message 4c3149fb1001160738l2233481dn82c34c2ba1fcc...@mail.gmail.com, pub c
rawler writes:
Poul, is anyone running the hash director distribution method like
you provided (in production)?
No idea...
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
p...@freebsd.org | TCP/IP
In message d002c4031001160741q63dd5a50i6342116daba15...@mail.gmail.com, Micha
el Fischer writes:
On Sat, Jan 16, 2010 at 1:59 AM, Poul-Henning Kamp p...@phk.freebsd.dkwrote:
director h1 hash {
{ .backend webserver; .weight 1; }
{ .backend varnish2; .weight
perfect 1/3 splitting between 3 varnishes, having one die
will do bad things to your hitrate until the remaining two distribute
the load between them.
That's a matter of math, and has nothing to do with the hash algorithm.
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
p...@freebsd.org
traffic for its objects will be
sent to it.
--
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
restarts, to ask the
neighbors and if they don't have it, go directly to the backend on
restart.
Poul-Henning
[1] In general Varnish has no built in magic, all the magic is your
responsibility to write in the VCL code :-)
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
p...@freebsd.org
varnishadm vcl.load real_thing /usr/local/etc/varnish/real.vcl
varnishadm vcl.use real_thing
--
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
to consistent hashing and it's use...
Correct me if I am wrong, but doesn't this mean that adding a new
varnish instance implies a full rehash ?
Yes, that is pretty much guaranteed to be the cost with any
stateless hashing.
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
p
.
Varnish has a significant responsibility, not yet fully met, to tell
the VM system as much about what is going on as possible.
Poul-Henning
--
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
-20 microseconds.
Compared to the amount of work real webservers do for the same task,
that is essentially nothing.
I don't know if that is THE best performance, but I know of a lot
of software doing a lot worse.
Try running varnishhist if you have not already :-)
Poul-Henning
--
Poul-Henning
afterwards
is for you to decide, but it is unlikely to be applicable.
Poul-Henning
--
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
few, if any, of them are.
Poul-Henning
--
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
translated to plain english becomes:
If you don't need varnish, you don't need varnish.
I'm not sure how much useful information that statement contains :-)
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
p...@freebsd.org | TCP/IP since RFC 956
FreeBSD committer | BSD
201 - 300 of 336 matches
Mail list logo