diff options
author | Kristian Lyngstøl <kly@kly.no> | 2017-04-10 14:06:23 +0200 |
---|---|---|
committer | Kristian Lyngstøl <kly@kly.no> | 2017-04-10 14:06:23 +0200 |
commit | bb862773d69bc5997bd1628a3f0505827e7cfe5c (patch) | |
tree | 672b4584c66cf79cf83b02224047aa1b92246636 /extras/misc/varnish.vcl | |
parent | 134299c3d95a10ed11b184eac61a704c45d17000 (diff) |
TG17 stuff ?
Diffstat (limited to 'extras/misc/varnish.vcl')
-rw-r--r-- | extras/misc/varnish.vcl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/extras/misc/varnish.vcl b/extras/misc/varnish.vcl index 8f67a4d..271211b 100644 --- a/extras/misc/varnish.vcl +++ b/extras/misc/varnish.vcl @@ -12,6 +12,10 @@ backend default { backend graphite { .host = "gondul-graphite"; .port = "80"; + .first_byte_timeout = 3s; + .between_bytes_timeout = 3s; + .connect_timeout = 1s; + .max_connections = 20; } backend templating { @@ -39,7 +43,7 @@ sub vcl_recv { return (synth(418,"LOLOLOL")); } - if (req.url ~ "^/render") { + if (req.url ~ "^/render" || req.url ~ "^/metric") { set req.backend_hint = graphite; } if (req.url ~ "^/grafana") { |