Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
unique-xids
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
unique-xids
Commits
e1f72076
Commit
e1f72076
authored
Oct 22, 2012
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try to make this test more robust
parent
3e669863
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
5 deletions
+18
-5
v00006.vtc
bin/varnishtest/tests/v00006.vtc
+18
-5
No files found.
bin/varnishtest/tests/v00006.vtc
View file @
e1f72076
varnishtest "VCL: Test backend retirement"
#
# This case is quite sensitive to ordering of the worker threads because
# it has so little actual traffic. In a real world setting, this should
# not be an issue.
#
# First do one request to get a work-thread that holds a VCL reference
server s1 {
rxreq
expect req.url == "/bar"
txresp
} -start
# Only one pool, to avoid getting more than one work thread
varnish v1 -arg "-p thread_pools=1" -vcl+backend {
} -start
varnish v1 -arg "-p thread_pools=1" -vcl+backend { } -start
# Give the varnishd a chance to start and create workers etc.
# NB: This is important for to avoid mis-ordering of the workers.
delay 1
client c1 {
txreq
txreq
-url /bar
rxresp
} -start
expect resp.status == 200
} -run
server s1 -wait
client c1 -wait
varnish v1 -expect n_backend == 1
varnish v1 -expect n_vcl_avail == 1
...
...
@@ -27,6 +36,7 @@ varnish v1 -expect n_vcl_discard == 0
server s2 {
rxreq
expect req.url == "/foo"
txresp
} -start
...
...
@@ -59,8 +69,11 @@ varnish v1 -expect n_vcl_discard == 1
client c1 {
txreq -url /foo
rxresp
expect resp.status == 200
} -run
server s2 -wait
# The workthread should have released its VCL reference now
# but we need to tickle the CLI to notice
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment