- 13 Feb, 2008 11 commits
-
-
Dag Erling Smørgrav authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2458 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2457 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2456 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2455 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2454 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
programs. Add a configure option and a corresponding automake conditional to enable these tests. git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2453 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2452 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
that now belongs only in cache_backend.c Control the caching of bereq's via the parameter. Found no bugs, so I think I will release -trunk for adventurous testers again. git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2451 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2450 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
(the code that it controls follows in a minute) I'm very interested to hear if there is any measurable effect of this variable on heavily loaded systems. git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2449 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2448 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 12 Feb, 2008 1 commit
-
-
Stig Sandbeck Mathisen authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2447 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 11 Feb, 2008 2 commits
-
-
Dag Erling Smørgrav authored
rewrite to track this change, and b) there have been other changes which also need to be merged in. git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2446 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
both. Skip piped requests, and requests that are interrupted by an error. This should eliminate or at least greatly reduce the (null)s seen in logs. Fix a conditional that blocked backend requests from being printed. git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2445 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 10 Feb, 2008 1 commit
-
-
Dag Erling Smørgrav authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2444 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 09 Feb, 2008 1 commit
-
-
Poul-Henning Kamp authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2443 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 07 Feb, 2008 5 commits
-
-
Poul-Henning Kamp authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2442 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2441 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
Add vcl_name to backend hosts. Simple backends get the obvious name. Directors inlined backend hosts gets the directors name with an array suffix, for instance "b1[1]". git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2440 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2439 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2438 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 06 Feb, 2008 3 commits
-
-
Poul-Henning Kamp authored
*** Please do not use -trunk in production until I say so again *** I have not entirely decided in the precise terminology, so the following may sound a lot more complicated than it really is: In VCL we can now have "backends" and "directors" both of which we treat as a "backend". When we define backends and directors in VCL, they refer to "backend hosts" which is just another way to say "hostname+portname" but later these will grow other parameters (max connections etc). A director is a piece of code that selects a "backend host" somehow, "random" and "round-robin" are the first algorithms. A backend can still be specified directly of course, that's the "simple director" that always return the same "backend host". This is probably where an example is in order: /* A backend as we know it */ backend b1 { .host = "fs"; .port = "80"; } /* A director */ director b2 random { { /* We can refer to named backends */ .backend = b1; .weight = 7; } { /* Or define them inline */ .backend = { .host = "fs2"; } .weight = 3; } } sub vcl_recv { if (req.url ~ "\[[a-z]]") { set req.backend = b2; } else { set req.backend = b1; } } This results in quite a lot of changes in the C code, VRT API and VCL compiler, the major thrust being: Directors like "simple" and "random" will not have to think about the actual connections to the backends, but just concentrate on selecting which backend should be used. When a new VCL is loaded, it will instantiate all directors, but try to reuse any preexisting "backend hosts" (which we still call "backend" in the C code). This is simple for a backend like "b1" in the example above, but sligthly more complex for the backend inlined in b2. The VCL compiler solves this, by qualifying the ident string for the inlined backend host with the prefix "b2 random :: 2 :: ", so that a reload of the same director with the same (unchanged) inline backend host will match, but none other will. One implication of instantiating all directors for every VCL load, is that private statistics cannot be reused, but stats on the backend host can. This is likely a very fine point of no consequence. Once the backend is selected by the director, the generic code in cache_backend.c will cope with reusing the connection pool, establishing connections and all that, moving most of the nastyness out of directors, leaving cache_dir_simple.c with only 96 lines of code, of which the license is a large fraction. Until now, we have done automatic DNS re-lookups, but they seem to cause more grief than advantage (I suspect some of the DNS lookups to be resposible for long timeouts), so that will be dropped, and instead we might add an explicit CLI command for this later. The code as here committed can handle a couple of simple requests, but there are a large number of INCOMPL()'s that need to be resolved before this is ready for prime time again. git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2437 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
and use the return int to tell if it was a reuse. git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2436 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2435 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 05 Feb, 2008 5 commits
-
-
Poul-Henning Kamp authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2431 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2430 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
the identity check for reusing backends between VCL. Disable the round-robin code for now, I'm trying to get the random code working first. git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2429 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
same thread (the main thread in fact). Add an assert facility to mark the affected functions, just to make sure nobody (else) gets an anciety attack over missing locking. git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2428 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2427 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 04 Feb, 2008 6 commits
-
-
Poul-Henning Kamp authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2425 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2424 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2423 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Stig Sandbeck Mathisen authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2422 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Stig Sandbeck Mathisen authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2421 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2420 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 03 Feb, 2008 3 commits
-
-
Dag Erling Smørgrav authored
pthread_mutex_islocked_np() (not present on any platform I know of, but I am testing a FreeBSD patch) git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2419 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Dag Erling Smørgrav authored
ALOCKED() if available. git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2418 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
Poul-Henning Kamp authored
find it, allow its use, but still default to off via sendfile_threshold paramter. SF_SYNC is only available in FreeBSD-current as of a few seconds ago, and is unlikely to appear in any release before FreeBSD-8.0 for intricate reasons of ABI compliance. git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2417 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 02 Feb, 2008 1 commit
-
-
Dag Erling Smørgrav authored
there is no portable way to do this, so we have to fake it by trying to lock the mutex and assert that it fails. This can be very expensive, so we only do it when built with --enable-diagnostics. git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2416 d4fa192b-c00b-0410-8231-f00ffab90ce4
-
- 31 Jan, 2008 1 commit
-
-
Dag Erling Smørgrav authored
git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2415 d4fa192b-c00b-0410-8231-f00ffab90ce4
-