-
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.
varnishd: add backend age & reuses to Open & Close
This extra information comes handy when trubleshooting idle timeout from the backend. Signed-off-by: Asad Sajjad Ahmed <[email protected]>
- Loading branch information
Showing
5 changed files
with
76 additions
and
13 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
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
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
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,28 @@ | ||
varnishtest "VSL tags backend age & reuse" | ||
|
||
server s1 { | ||
rxreq | ||
txresp | ||
rxreq | ||
txresp | ||
} -start | ||
|
||
varnish v1 -vcl+backend {} -start | ||
varnish v1 -cliok "param.set debug +syncvsl" | ||
|
||
client c1 { | ||
txreq | ||
rxresp | ||
expect resp.status == 200 | ||
txreq -url /2 | ||
rxresp | ||
expect resp.status == 200 | ||
} -run | ||
|
||
logexpect l1 -v v1 -d 1 -g session { | ||
expect * * Begin ^bereq | ||
expect * = BackendOpen "connect$" | ||
expect * = BackendClose "s1 recycle$" | ||
expect * * BackendOpen "reuse \\d+\\.\\d\\d\\d\\d\\d\\d 1$" | ||
expect * = BackendClose "s1 recycle$" | ||
} -run |
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