-
Notifications
You must be signed in to change notification settings - Fork 381
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
param: Lower rush_exponent minimum value
To ease test coverage for waitling list operations, requiring less disembarked requests for specific cases. Added is a test case showing that a rush miss propagates further wake ups.
- Loading branch information
Showing
2 changed files
with
68 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
varnishtest "subsequent rush on rush miss" | ||
|
||
barrier b1 cond 2 | ||
barrier b2 cond 2 | ||
barrier b3 cond 2 | ||
barrier b4 cond 2 | ||
|
||
server s1 { | ||
rxreq | ||
expect req.http.user-agent == c1 | ||
barrier b1 sync | ||
barrier b2 sync | ||
txresp -hdr "Vary: accept" | ||
|
||
rxreq | ||
expect req.http.user-agent == c2 | ||
txresp -hdr "Vary: accept" | ||
} -start | ||
|
||
varnish v1 -cliok "param.set thread_pools 1" | ||
varnish v1 -cliok "param.set rush_exponent 1" | ||
varnish v1 -cliok "param.set debug +syncvsl,+waitinglist" | ||
varnish v1 -vcl+backend "" -start | ||
|
||
client c1 { | ||
txreq | ||
rxresp | ||
expect resp.http.x-varnish == 1001 | ||
} -start | ||
|
||
barrier b1 sync | ||
|
||
logexpect l1 -v v1 -q Debug -g raw { | ||
expect * * Debug "on waiting list" | ||
} -start | ||
|
||
client c2 { | ||
txreq -hdr "accept: nothing" | ||
rxresp | ||
expect resp.http.x-varnish == 1004 | ||
} -start | ||
|
||
logexpect l1 -wait -start | ||
|
||
client c3 { | ||
txreq | ||
rxresp | ||
expect resp.http.x-varnish == "1006 1002" | ||
} -start | ||
|
||
logexpect l1 -wait | ||
|
||
barrier b2 sync | ||
|
||
client c1 -wait | ||
client c2 -wait | ||
client c3 -wait | ||
|
||
varnish v1 -expect cache_miss == 2 | ||
varnish v1 -expect cache_hit == 1 | ||
varnish v1 -expect cache_hit_grace == 0 | ||
varnish v1 -expect s_bgfetch == 0 | ||
varnish v1 -expect busy_sleep == 2 | ||
varnish v1 -expect busy_wakeup == 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters