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
4cd6bedb
Commit
4cd6bedb
authored
Aug 22, 2011
by
Poul-Henning Kamp
Committed by
Tollef Fog Heen
Aug 24, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test stevedore/LRU/Nuke when the body allocation fails
parent
8d0c80b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
64 additions
and
0 deletions
+64
-0
c00046.vtc
bin/varnishtest/tests/c00046.vtc
+64
-0
No files found.
bin/varnishtest/tests/c00046.vtc
0 → 100644
View file @
4cd6bedb
varnishtest "Object/LRU/Stevedores with hinting and body alloc failures"
server s1 {
rxreq
txresp -bodylen 1000000
rxreq
txresp -bodylen 1000001
rxreq
txresp -bodylen 1000002
} -start
varnish v1 -storage "-smalloc,1m -smalloc,1m, -smalloc,1m" -vcl+backend {
sub vcl_fetch {
set beresp.storage = "s0";
}
} -start
client c1 {
txreq -url /foo
rxresp
expect resp.status == 200
expect resp.bodylen == 1000000
} -run
varnish v1 -expect SMA.Transient.g_bytes == 0
varnish v1 -expect SMA.s0.g_bytes > 1000000
varnish v1 -expect SMA.s0.g_space < 100000
varnish v1 -expect SMA.s1.g_bytes == 0
varnish v1 -expect SMA.s1.g_space > 1000000
varnish v1 -expect SMA.s2.g_bytes == 0
varnish v1 -expect SMA.s2.g_space > 1000000
client c1 {
txreq -url /bar
rxresp
expect resp.status == 200
expect resp.bodylen == 1000001
} -run
varnish v1 -expect n_lru_nuked == 1
varnish v1 -expect SMA.Transient.g_bytes == 0
varnish v1 -expect SMA.s0.g_bytes > 1000000
varnish v1 -expect SMA.s0.g_space < 100000
varnish v1 -expect SMA.s1.g_bytes == 0
varnish v1 -expect SMA.s1.g_space > 1000000
varnish v1 -expect SMA.s2.g_bytes == 0
varnish v1 -expect SMA.s2.g_space > 1000000
client c1 {
txreq -url /foo
rxresp
expect resp.status == 200
expect resp.bodylen == 1000002
} -run
varnish v1 -expect n_lru_nuked == 2
varnish v1 -expect SMA.Transient.g_bytes == 0
varnish v1 -expect SMA.s0.g_bytes > 1000000
varnish v1 -expect SMA.s0.g_space < 100000
varnish v1 -expect SMA.s1.g_bytes == 0
varnish v1 -expect SMA.s1.g_space > 1000000
varnish v1 -expect SMA.s2.g_bytes == 0
varnish v1 -expect SMA.s2.g_space > 1000000
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