--- Revision None +++ Revision 376430366266 @@ -0,0 +1,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"