Revision 376430366266 () - Diff

Link to this snippet: https://friendpaste.com/1Zvj1XkX75eKqdzrJQZcfK
Embed:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Configuration file for varnish
#
# /etc/init.d/varnish expects the variable $DAEMON_OPTS to be set from this
# shell script fragment.
#

# Maximum number of open files (for ulimit -n)
NFILES=131072

# Default varnish instance name is the local nodename. Can be overridden with
# the -n switch, to have more instances on a single server.
INSTANCE=$(uname -n)

#
# Listen on port 5984, administration on localhost:6082, and forward to
# one content server selected by the vcl file, based on the request. Use a
# fixed-size cache file.
#

MEMLOCK=90000

DAEMON_OPTS="-a :5984 \
-T localhost:6082 \
-u varnish \
-g varnish \
-p thread_pool_max=8000 \
-p thread_pools=8 \
-p thread_pool_min=500 \
-p thread_pool_add_delay=1 \
-p obj_workspace=4096 \
-p sess_workspace=131072 \
-p listen_depth=4096 \
-h classic,500009 \
-p lru_interval=60 \
-p ping_interval=2 \
-p sess_timeout=10 \
-p max_restarts=2 \
-f /etc/varnish/default.vcl \
-s file,/srv/varnish/storage.bin,400GB"