a | b | |
---|
| 0 | + | # Configuration file for varnish |
---|
| 0 | + | # |
---|
| 0 | + | # /etc/init.d/varnish expects the variable $DAEMON_OPTS to be set from this |
---|
| 0 | + | # shell script fragment. |
---|
| 0 | + | # |
---|
| 0 | + | |
---|
| 0 | + | # Maximum number of open files (for ulimit -n) |
---|
| 0 | + | NFILES=131072 |
---|
| 0 | + | |
---|
| 0 | + | # Default varnish instance name is the local nodename. Can be overridden with |
---|
| 0 | + | # the -n switch, to have more instances on a single server. |
---|
| 0 | + | INSTANCE=$(uname -n) |
---|
| 0 | + | |
---|
| 0 | + | # |
---|
| 0 | + | # Listen on port 5984, administration on localhost:6082, and forward to |
---|
| 0 | + | # one content server selected by the vcl file, based on the request. Use a |
---|
| 0 | + | # fixed-size cache file. |
---|
| 0 | + | # |
---|
| 0 | + | |
---|
| 0 | + | MEMLOCK=90000 |
---|
| 0 | + | |
---|
| 0 | + | DAEMON_OPTS="-a :5984 \ |
---|
| 0 | + | -T localhost:6082 \ |
---|
| 0 | + | -u varnish \ |
---|
| 0 | + | -g varnish \ |
---|
| 0 | + | -p thread_pool_max=8000 \ |
---|
| 0 | + | -p thread_pools=8 \ |
---|
| 0 | + | -p thread_pool_min=500 \ |
---|
| 0 | + | -p thread_pool_add_delay=1 \ |
---|
| 0 | + | -p obj_workspace=4096 \ |
---|
| 0 | + | -p sess_workspace=131072 \ |
---|
| 0 | + | -p listen_depth=4096 \ |
---|
| 0 | + | -h classic,500009 \ |
---|
| 0 | + | -p lru_interval=60 \ |
---|
| 0 | + | -p ping_interval=2 \ |
---|
| 0 | + | -p sess_timeout=10 \ |
---|
| 0 | + | -p max_restarts=2 \ |
---|
| 0 | + | -f /etc/varnish/default.vcl \ |
---|
| 0 | + | -s file,/srv/varnish/storage.bin,400GB" |
---|
... | |
---|