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
068d4239
Commit
068d4239
authored
Jun 22, 2011
by
Per Buer
Committed by
Tollef Fog Heen
Jun 27, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
probes outside directors
parent
047edc41
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
8 deletions
+25
-8
vcl.rst
doc/sphinx/reference/vcl.rst
+25
-8
No files found.
doc/sphinx/reference/vcl.rst
View file @
068d4239
...
@@ -72,9 +72,6 @@ available where.
...
@@ -72,9 +72,6 @@ available where.
VCL has if tests, but no loops.
VCL has if tests, but no loops.
You may log arbitrary strings to the shared memory log with the
keyword *log*.
The contents of another VCL file may be inserted at any point in the
The contents of another VCL file may be inserted at any point in the
code by using the *include* keyword followed by the name of the other
code by using the *include* keyword followed by the name of the other
file as a quoted string.
file as a quoted string.
...
@@ -236,7 +233,8 @@ us to consider the backend healthy. .initial is how many of the
...
@@ -236,7 +233,8 @@ us to consider the backend healthy. .initial is how many of the
probes are considered good when Varnish starts - defaults to the same
probes are considered good when Varnish starts - defaults to the same
amount as the threshold.
amount as the threshold.
A backend with a probe can be defined like this:::
A backend with a probe can be defined like this, together with the
backend or director:::
backend www {
backend www {
.host = "www.example.com";
.host = "www.example.com";
...
@@ -250,18 +248,34 @@ A backend with a probe can be defined like this:::
...
@@ -250,18 +248,34 @@ A backend with a probe can be defined like this:::
}
}
}
}
It is also possible to specify the raw HTTP request::
Or it can be defined separately and then referenced:::
probe healthcheck {
.url = "/status.cgi";
.interval = 60s;
.timeout = 0.3 s;
.window = 8;
.threshold = 3;
.initial = 3;
}
backend www {
backend www {
.host = "www.example.com";
.host = "www.example.com";
.port = "http";
.port = "http";
.probe = {
.probe = healthcheck;
}
If you have many backends this can simplify the config a lot.
It is also possible to specify the raw HTTP request::
probe rawprobe {
# NB: \r\n automatically inserted after each string!
# NB: \r\n automatically inserted after each string!
.request =
.request =
"GET / HTTP/1.1"
"GET / HTTP/1.1"
"Host: www.foo.bar"
"Host: www.foo.bar"
"Connection: close";
"Connection: close";
}
}
}
ACLs
ACLs
...
@@ -819,9 +833,11 @@ based on the request URL:::
...
@@ -819,9 +833,11 @@ based on the request URL:::
default_ttl run-time parameter, as that only affects document for
default_ttl run-time parameter, as that only affects document for
which the backend did not specify a TTL:::
which the backend did not specify a TTL:::
import std; # needed for std.log
sub vcl_fetch {
sub vcl_fetch {
if (beresp.ttl < 120s) {
if (beresp.ttl < 120s) {
log "Adjusting TTL";
std.
log "Adjusting TTL";
set beresp.ttl = 120s;
set beresp.ttl = 120s;
}
}
}
}
...
@@ -876,6 +892,7 @@ SEE ALSO
...
@@ -876,6 +892,7 @@ SEE ALSO
========
========
* varnishd(1)
* varnishd(1)
* vmod_std(7)
HISTORY
HISTORY
=======
=======
...
...
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