NAME
varnishd - HTTP accelerator daemonSYNOPSIS
- varnishd
- [-a [name=][listen_address[,PROTO]] [-b [host[:port]|path]] [-C] [-d] [-F] [-f config] [-h type[,options]] [-I clifile] [-i identity] [-j jail[,jailoptions]] [-l vsl] [-M address:port] [-n workdir] [-P file] [-p param=value] [-r param[,param...]] [-S secret-file] [-s [name=]kind[,options]] [-T address[:port]] [-t TTL] [-V] [-W waiter]
DESCRIPTION
The varnishd daemon accepts HTTP requests from clients, passes them on to a backend server and caches the returned documents to better satisfy future requests for the same document.OPTIONS
Basic options
- -a <[name=][listen_address[,PROTO]]>
- Accept for client requests on the specified listen_address (see below). Name is referenced in logs. If name is not specified, "a0", "a1", etc. is used. PROTO can be "HTTP" (the default) or "PROXY". Both version 1 and 2 of the proxy protocol can be used. Multiple -a arguments are allowed. If no -a argument is given, the default -a :80 will listen to all IPv4 and IPv6 interfaces.
- -a <[name=][ip_address][:port][,PROTO]>
- The ip_address can be a host name ("localhost"), an IPv4 dotted-quad ("127.0.0.1") or an IPv6 address enclosed in square brackets ("[::1]") If port is not specified, port 80 (http) is used. At least one of ip_address or port is required.
- -a <[name=][path][,PROTO][,user=name][,group=name][,mode=octal]>
- (VCL4.1 and higher) Accept connections on a Unix domain socket. Path must be absolute ("/path/to/listen.sock"). The user, group and mode sub-arguments may be used to specify the permissions of the socket file -- use names for user and group, and a 3-digit octal value for mode.
- -b <[host[:port]|path]>
- Use the specified host as backend server. If port is not specified, the default is 8080. If the value of -b begins with /, it is interpreted as the absolute path of a Unix domain socket to which Varnish connects. In that case, the value of -b must satisfy the conditions required for the .path field of a backend declaration, see vcl(7). Backends with Unix socket addresses may only be used with VCL versions >= 4.1. -b can be used only once, and not together with f.
- -f config
- Use the specified VCL configuration file instead of the builtin default. See vcl(7) for details on VCL syntax. If a single -f option is used, then the VCL instance loaded from the file is named "boot" and immediately becomes active. If more than one -f option is used, the VCL instances are named "boot0", "boot1" and so forth, in the order corresponding to the -f arguments, and the last one is named "boot", which becomes active. Either -b or one or more -f options must be specified, but not both, and they cannot both be left out, unless -d is used to start varnishd in debugging mode. If the empty string is specified as the sole -f option, then varnishd starts without starting the worker process, and the management process will accept CLI commands. You can also combine an empty -f option with an initialization script (-I option) and the child process will be started if there is an active VCL at the end of the initialization. When used with a relative file name, config is searched in the vcl_path. It is possible to set this path prior to using -f options with a -p option. During startup, varnishd doesn't complain about unsafe VCL paths: unlike the varnish-cli(7) that could later be accessed remotely, starting varnishd requires local privileges.
- -n workdir
- Runtime directory for the shared memory, compiled VCLs etc. In performance critical applications, this directory should be on a RAM backed filesystem. Relative paths will be appended to /var/run/ (NB: Binary packages of Varnish may have adjusted this to the platform.) The default value is /var/run/varnishd (NB: as above.)
Documentation options
For these options, varnishd prints information to standard output and exits. When a -x option is used, it must be the only option (it outputs documentation in reStructuredText, aka RST).Print the usage message.
- -x parameter
- Print documentation of the runtime parameters (-p options), see List of Parameters.
- -x vsl
- Print documentation of the tags used in the Varnish shared memory log, see vsl(7).
- -x cli
- Print documentation of the command line interface, see varnish-cli(7).
- -x builtin
- Print the contents of the default VCL program builtin.vcl.
- -x optstring
- Print the optstring parameter to getopt(3) to help writing wrapper scripts.
Operations options
- -F
- Do not fork, run in the foreground. Only one of -F or -d can be specified, and -F cannot be used together with -C.
- -T <address[:port]>
- Offer a management interface on the specified address and port. See varnish-cli(7) for documentation of the management commands. To disable the management interface use none.
- -M <address:port>
- Connect to this port and offer the command line interface. Think of it as a reverse shell. When running with -M and there is no backend defined the child process (the cache) will not start initially.
- -P file
- Write the PID of the process to the specified file.
- -i identity
- Specify the identity of the Varnish server. This can be accessed using server.identity from VCL and with VSM_Name() from utilities. If not specified the output of gethostname(3) is used.
- -I clifile
- Execute the management commands in the file given as clifile before the the worker process starts, see CLI Command File.
Tuning options
- -t TTL
- Specifies the default time to live (TTL) for cached objects. This is a shortcut for specifying the default_ttl run-time parameter.
- -p <param=value>
- Set the parameter specified by param to the specified value, see List of Parameters for details. This option can be used multiple times to specify multiple parameters.
- -s <[name=]type[,options]>
- Use the specified storage backend. See Storage Backend section. This option can be used multiple times to specify multiple storage files. Name is referenced in logs, VCL, statistics, etc. If name is not specified, "s0", "s1" and so forth is used.
- -l <vsl>
- Specifies size of the space for the VSL records, shorthand for -p vsl_space=<vsl>. Scaling suffixes like 'K' and 'M' can be used up to (G)igabytes. See vsl_space for more information.
Security options
- -r <param[,param...]>
- Make the listed parameters read only. This gives the system administrator a way to limit what the Varnish CLI can do. Consider making parameters such as cc_command, vcc_allow_inline_c and vmod_path read only as these can potentially be used to escalate privileges from the CLI.
- -S secret-file
- Path to a file containing a secret used for authorizing access to the management port. To disable authentication use none. If this argument is not provided, a secret drawn from the system PRNG will be written to a file called _.secret in the working directory (see opt_n) with default ownership and permissions of the user having started varnish. Thus, users wishing to delegate control over varnish will probably want to create a custom secret file with appropriate permissions (ie. readable by a unix group to delegate control to).
- -j <jail[,jailoptions]>
- Specify the jailing mechanism to use. See Jail section.
Advanced, development and debugging options
- -d
- Enables debugging mode: The parent process runs in the foreground with a CLI connection on stdin/stdout, and the child process must be started explicitly with a CLI command. Terminating the parent process will also terminate the child. Only one of -d or -F can be specified, and -d cannot be used together with -C.
- -C
- Print VCL code compiled to C language and exit. Specify the VCL file to compile with the -f option. Either -f or -b must be used with -C, and -C cannot be used with -F or -d.
- -V
- Display the version number and exit. This must be the only option.
- -h <type[,options]>
- Specifies the hash algorithm. See Hash Algorithm section for a list of supported algorithms.
- -W waiter
- Specifies the waiter type to use.
Hash Algorithm
The following hash algorithms are available:- -h critbit
- self-scaling tree structure. The default hash algorithm in Varnish Cache 2.1 and onwards. In comparison to a more traditional B tree the critbit tree is almost completely lockless. Do not change this unless you are certain what you're doing.
- -h simple_list
- A simple doubly-linked list. Not recommended for production use.
- -h <classic[,buckets]>
- A standard hash table. The hash key is the CRC32 of the object's URL modulo the size of the hash table. Each table entry points to a list of elements which share the same hash key. The buckets parameter specifies the number of entries in the hash table. The default is 16383.
Storage Backend
The argument format to define storage backends is:- -s <[name]=kind[,options]>
- If name is omitted, Varnish will name storages s N, starting with s0 and incrementing N for every new storage. For kind and options see details below.
set beresp.storage = storage.myStorage;
-s default,100m
-s Transient=default
- -s <default[,size]>
- The default storage type resolves to umem where available and malloc otherwise.
- -s <malloc[,size]>
- malloc is a memory based backend.
- -s <umem[,size]>
- umem is a storage backend which is more efficient than malloc on platforms where it is available. See the section on umem in chapter Storage backends of The Varnish Users Guide for details.
- -s <file,path[,size[,granularity[,advice]]]>
- The file backend stores data in a file on disk. The file will be accessed using mmap. Note that this storage provide no cache persistence. The path is mandatory. If path points to a directory, a temporary file will be created in that directory and immediately unlinked. If path points to a non-existing file, the file will be created. If size is omitted, and path points to an existing file with a size greater than zero, the size of that file will be used. If not, an error is reported. Granularity sets the allocation block size. Defaults to the system page size or the filesystem block size, whichever is larger. Advice tells the kernel how varnishd expects to use this mapped region so that the kernel can choose the appropriate read-ahead and caching techniques. Possible values are normal, random and sequential, corresponding to MADV_NORMAL, MADV_RANDOM and MADV_SEQUENTIAL madvise() advice argument, respectively. Defaults to random.
- -s <persistent,path,size>
- Persistent storage. Varnish will store objects in a file in a manner that will secure the survival of most of the objects in the event of a planned or unplanned shutdown of Varnish. The persistent storage backend has multiple issues with it and will likely be removed from a future version of Varnish.
Jail
Varnish jails are a generalization over various platform specific methods to reduce the privileges of varnish processes. They may have specific options. Available jails are:- -j <solaris[,worker=`privspec`]>
- Reduce privileges(5) for varnishd and sub-process to the minimally required set. Only available on platforms which have the setppriv(2) call. The optional worker argument can be used to pass a privilege-specification (see ppriv(1)) by which to extend the effective set of the varnish worker process. While extended privileges may be required by custom vmods, it is always the more secure to not use the worker option. Example to grant basic privileges to the worker process:
-j solaris,worker=basic
- -j <unix[,user=`user`][,ccgroup=`group`][,workuser=`user`]>
- Default on all other platforms when varnishd is started with an effective uid of 0 ("as root"). With the unix jail mechanism activated, varnish will switch to an alternative user for subprocesses and change the effective uid of the master process whenever possible. The optional user argument specifies which alternative user to use. It defaults to varnish. The optional ccgroup argument specifies a group to add to varnish subprocesses requiring access to a c-compiler. There is no default. The optional workuser argument specifies an alternative user to use for the worker process. It defaults to vcache.
- -j none
- last resort jail choice: With jail mechanism none, varnish will run all processes with the privileges it was started with.
Management Interface
If the -T option was specified, varnishd will offer a command-line management interface on the specified address and port. The recommended way of connecting to the command-line management interface is through varnishadm(1).CLI Command File
The -I option makes it possible to run arbitrary management commands when varnishd is launched, before the worker process is started. In particular, this is the way to load configurations, apply labels to them, and make a VCL instance active that uses those labels on startup:vcl.load panic /etc/varnish_panic.vcl vcl.load siteA0 /etc/varnish_siteA.vcl vcl.load siteB0 /etc/varnish_siteB.vcl vcl.load siteC0 /etc/varnish_siteC.vcl vcl.label siteA siteA0 vcl.label siteB siteB0 vcl.label siteC siteC0 vcl.load main /etc/varnish_main.vcl vcl.use main
RUN TIME PARAMETERS
Run Time Parameter Flags
Runtime parameters are marked with shorthand flags to avoid repeating the same text over and over in the table below. The meaning of the flags are:- •
- experimental We have no solid information about good/bad/optimal values for this parameter. Feedback with experience and observations are most welcome.
- •
- delayed This parameter can be changed on the fly, but will not take effect immediately.
- •
- restart The worker process must be stopped and restarted, before this parameter takes effect.
- •
- reload The VCL programs must be reloaded for this parameter to take effect.
- •
- wizard Do not touch unless you really know what you're doing.
- •
- only_root Only works if varnishd is running as root.
Default Value Exceptions on 32 bit Systems
Be aware that on 32 bit systems, certain default or maximum values are reduced relative to the values listed below, in order to conserve VM space:- •
- workspace_client: 24k
- •
- workspace_backend: 20k
- •
- http_resp_size: 8k
- •
- http_req_size: 12k
- •
- gzip_buffer: 4k
- •
- vsl_buffer: 4k
- •
- vsl_space: 1G (maximum)
- •
- thread_pool_stack: 64k
List of Parameters
This text is produced from the same text you will find in the CLI if you use the param.show command:accept_filter
NB: This parameter depends on a feature which is not available on all platforms.- •
- Units: bool
- •
- Default: on (if your platform supports accept filters)
acceptor_sleep_decay
- •
- Default: 0.9
- •
- Minimum: 0
- •
- Maximum: 1
- •
- Flags: experimental
acceptor_sleep_incr
- •
- Units: seconds
- •
- Default: 0.000
- •
- Minimum: 0.000
- •
- Maximum: 1.000
- •
- Flags: experimental
acceptor_sleep_max
- •
- Units: seconds
- •
- Default: 0.050
- •
- Minimum: 0.000
- •
- Maximum: 10.000
- •
- Flags: experimental
auto_restart
- •
- Units: bool
- •
- Default: on
backend_idle_timeout
- •
- Units: seconds
- •
- Default: 60.000
- •
- Minimum: 1.000
backend_local_error_holddown
- •
- Units: seconds
- •
- Default: 10.000
- •
- Minimum: 0.000
- •
- Flags: experimental
backend_remote_error_holddown
- •
- Units: seconds
- •
- Default: 0.250
- •
- Minimum: 0.000
- •
- Flags: experimental
ban_cutoff
- •
- Units: bans
- •
- Default: 0
- •
- Minimum: 0
- •
- Flags: experimental
ban_dups
- •
- Units: bool
- •
- Default: on
ban_lurker_age
- •
- Units: seconds
- •
- Default: 60.000
- •
- Minimum: 0.000
ban_lurker_batch
- •
- Default: 1000
- •
- Minimum: 1
ban_lurker_holdoff
- •
- Units: seconds
- •
- Default: 0.010
- •
- Minimum: 0.000
- •
- Flags: experimental
ban_lurker_sleep
- •
- Units: seconds
- •
- Default: 0.010
- •
- Minimum: 0.000
between_bytes_timeout
- •
- Units: seconds
- •
- Default: 60.000
- •
- Minimum: 0.000
cc_command
NB: The actual default value for this parameter depends on the Varnish build environment and options.- •
- Default: exec $CC $CFLAGS %w -shared -o %o %s
- •
- Flags: must_reload
- •
- %s: the source file name
- •
- %o: the output file name
- •
- %w: the cc_warnings parameter
- •
- %d: the raw default cc_command
- •
- %D: the expanded default cc_command
- •
- %n: the working directory (-n option)
- •
- %%: a percent sign
cc_warnings
NB: The actual default value for this parameter depends on the Varnish build environment and options.- •
- Default: -Wall -Werror
- •
- Flags: must_reload
cli_limit
- •
- Units: bytes
- •
- Default: 48k
- •
- Minimum: 128b
- •
- Maximum: 99999999b
cli_timeout
- •
- Units: seconds
- •
- Default: 60.000
- •
- Minimum: 0.000
clock_skew
- •
- Units: seconds
- •
- Default: 10
- •
- Minimum: 0
clock_step
- •
- Units: seconds
- •
- Default: 1.000
- •
- Minimum: 0.000
connect_timeout
- •
- Units: seconds
- •
- Default: 3.500
- •
- Minimum: 0.000
critbit_cooloff
- •
- Units: seconds
- •
- Default: 180.000
- •
- Minimum: 60.000
- •
- Maximum: 254.000
- •
- Flags: wizard
debug
- •
- Default: none
- none
- Disable all debugging
- req_state
- VSL Request state engine
- workspace
- VSL Workspace operations
- waitinglist
- VSL Waitinglist events
- syncvsl
- Make VSL synchronous
- hashedge
- Edge cases in Hash
- vclrel
- Rapid VCL release
- lurker
- VSL Ban lurker
- esi_chop
- Chop ESI fetch to bits
- flush_head
- Flush after http1 head
- vtc_mode
- Varnishtest Mode
- witness
- Emit WITNESS lock records
- vsm_keep
- Keep the VSM file on restart
- slow_acceptor
- Slow down Acceptor
- h2_nocheck
- Disable various H2 checks
- vmod_so_keep
- Keep copied VMOD libraries
- processors
- Fetch/Deliver processors
- protocol
- Protocol debugging
- vcl_keep
- Keep VCL C and so files
- lck
- Additional lock statistics
default_grace
- •
- Units: seconds
- •
- Default: 10.000
- •
- Minimum: 0.000
- •
- Flags: obj_sticky
default_keep
- •
- Units: seconds
- •
- Default: 0.000
- •
- Minimum: 0.000
- •
- Flags: obj_sticky
default_ttl
- •
- Units: seconds
- •
- Default: 120.000
- •
- Minimum: 0.000
- •
- Flags: obj_sticky
experimental
- •
- Default: none
- none
- Disable all experimental features
- drop_pools
- Drop thread pools
feature
- •
- Default: +validate_headers
- default
- Set default value
- none
- Disable all features.
- http2
- Enable HTTP/2 protocol support.
- short_panic
- Short panic message.
- no_coredump
- No coredumps. Must be set before child process starts.
- https_scheme
- Extract host from full URI in the HTTP/1 request line, if the scheme is https.
- http_date_postel
- Tolerate non compliant timestamp headers like Date, Last-Modified, Expires etc.
- esi_ignore_https
- Convert <esi:include src"https://... to http://...
- esi_disable_xml_check
- Allow ESI processing on non-XML ESI bodies
- esi_ignore_other_elements
- Ignore XML syntax errors in ESI bodies.
- esi_remove_bom
- Ignore UTF-8 BOM in ESI bodies.
- esi_include_onerror
- Parse the onerror attribute of <esi:include> tags.
- wait_silo
- Wait for persistent silos to completely load before serving requests.
- validate_headers
- Validate all header set operations to conform to RFC7230.
- busy_stats_rate
- Make busy workers comply with thread_stats_rate.
fetch_chunksize
- •
- Units: bytes
- •
- Default: 16k
- •
- Minimum: 4k
- •
- Flags: experimental
fetch_maxchunksize
- •
- Units: bytes
- •
- Default: 0.25G
- •
- Minimum: 64k
- •
- Flags: experimental
first_byte_timeout
- •
- Units: seconds
- •
- Default: 60.000
- •
- Minimum: 0.000
gzip_buffer
- •
- Units: bytes
- •
- Default: 32k
- •
- Minimum: 2k
- •
- Flags: experimental
gzip_level
- •
- Default: 6
- •
- Minimum: 0
- •
- Maximum: 9
gzip_memlevel
- •
- Default: 8
- •
- Minimum: 1
- •
- Maximum: 9
h2_header_table_size
- •
- Units: bytes
- •
- Default: 4k
- •
- Minimum: 0b
h2_initial_window_size
- •
- Units: bytes
- •
- Default: 65535b
- •
- Minimum: 65535b
- •
- Maximum: 2147483647b
h2_max_concurrent_streams
- •
- Units: streams
- •
- Default: 100
- •
- Minimum: 0
h2_max_frame_size
- •
- Units: bytes
- •
- Default: 16k
- •
- Minimum: 16k
- •
- Maximum: 16777215b
h2_max_header_list_size
- •
- Units: bytes
- •
- Default: 2147483647b
- •
- Minimum: 0b
h2_rx_window_increment
- •
- Units: bytes
- •
- Default: 1M
- •
- Minimum: 1M
- •
- Maximum: 1G
- •
- Flags: wizard
h2_rx_window_low_water
- •
- Units: bytes
- •
- Default: 10M
- •
- Minimum: 65535b
- •
- Maximum: 1G
- •
- Flags: wizard
h2_rxbuf_storage
- •
- Default: Transient
- •
- Flags: must_restart
http1_iovs
- •
- Units: struct iovec (=16 bytes)
- •
- Default: 64
- •
- Minimum: 5
- •
- Maximum: 1024
- •
- Flags: wizard
http_gzip_support
- •
- Units: bool
- •
- Default: on
- Enable gzip support. When enabled Varnish request compressed objects from the backend and store them compressed. If a client does not support gzip encoding Varnish will uncompress compressed objects on demand. Varnish will also rewrite the Accept-Encoding header of clients indicating support for gzip to:
- Accept-Encoding: gzip
http_max_hdr
- •
- Units: header lines
- •
- Default: 64
- •
- Minimum: 32
- •
- Maximum: 65535
http_range_support
- •
- Units: bool
- •
- Default: on
http_req_hdr_len
- •
- Units: bytes
- •
- Default: 8k
- •
- Minimum: 40b
http_req_size
- •
- Units: bytes
- •
- Default: 32k
- •
- Minimum: 0.25k
http_resp_hdr_len
- •
- Units: bytes
- •
- Default: 8k
- •
- Minimum: 40b
http_resp_size
- •
- Units: bytes
- •
- Default: 32k
- •
- Minimum: 0.25k
idle_send_timeout
- •
- Units: seconds
- •
- Default: 60.000
- •
- Minimum: 0.000
- •
- Flags: delayed
listen_depth
- •
- Units: connections
- •
- Default: 1024
- •
- Minimum: 0
- •
- Flags: must_restart
lru_interval
- •
- Units: seconds
- •
- Default: 2.000
- •
- Minimum: 0.000
- •
- Flags: experimental
max_esi_depth
- •
- Units: levels
- •
- Default: 5
- •
- Minimum: 0
max_restarts
- •
- Units: restarts
- •
- Default: 4
- •
- Minimum: 0
max_retries
- •
- Units: retries
- •
- Default: 4
- •
- Minimum: 0
max_vcl
- •
- Default: 100
- •
- Minimum: 0
max_vcl_handling
- •
- Default: 1
- •
- Minimum: 0
- •
- Maximum: 2
- •
- 0 - Ignore max_vcl parameter.
- •
- 1 - Issue warning.
- •
- 2 - Refuse loading VCLs.
nuke_limit
- •
- Units: allocations
- •
- Default: 50
- •
- Minimum: 0
- •
- Flags: experimental
pcre2_depth_limit
- •
- Default: 20
- •
- Minimum: 1
pcre2_jit_compilation
- •
- Units: bool
- •
- Default: on
pcre2_match_limit
- •
- Default: 10000
- •
- Minimum: 1
ping_interval
- •
- Units: seconds
- •
- Default: 3
- •
- Minimum: 0
- •
- Flags: must_restart
pipe_sess_max
- •
- Units: connections
- •
- Default: 0
- •
- Minimum: 0
pipe_timeout
- •
- Units: seconds
- •
- Default: 60.000
- •
- Minimum: 0.000
pool_req
- •
- Default: 10,100,10
- min_pool
- minimum size of free pool.
- max_pool
- maximum size of free pool.
- max_age
- max age of free element.
pool_sess
- •
- Default: 10,100,10
- min_pool
- minimum size of free pool.
- max_pool
- maximum size of free pool.
- max_age
- max age of free element.
pool_vbo
- •
- Default: 10,100,10
- min_pool
- minimum size of free pool.
- max_pool
- maximum size of free pool.
- max_age
- max age of free element.
prefer_ipv6
- •
- Units: bool
- •
- Default: off
rush_exponent
- •
- Units: requests per request
- •
- Default: 3
- •
- Minimum: 2
- •
- Flags: experimental
send_timeout
- •
- Units: seconds
- •
- Default: 600.000
- •
- Minimum: 0.000
- •
- Flags: delayed
shortlived
- •
- Units: seconds
- •
- Default: 10.000
- •
- Minimum: 0.000
sigsegv_handler
- •
- Units: bool
- •
- Default: on
- •
- Flags: must_restart
syslog_cli_traffic
- •
- Units: bool
- •
- Default: on
tcp_fastopen
NB: This parameter depends on a feature which is not available on all platforms.- •
- Units: bool
- •
- Default: off
- •
- Flags: must_restart
tcp_keepalive_intvl
NB: This parameter depends on a feature which is not available on all platforms.- •
- Units: seconds
- •
- Default: platform dependent
- •
- Minimum: 1.000
- •
- Maximum: 100.000
- •
- Flags: experimental
tcp_keepalive_probes
NB: This parameter depends on a feature which is not available on all platforms.- •
- Units: probes
- •
- Default: platform dependent
- •
- Minimum: 1
- •
- Maximum: 100
- •
- Flags: experimental
tcp_keepalive_time
NB: This parameter depends on a feature which is not available on all platforms.- •
- Units: seconds
- •
- Default: platform dependent
- •
- Minimum: 1.000
- •
- Maximum: 7200.000
- •
- Flags: experimental
thread_pool_add_delay
- •
- Units: seconds
- •
- Default: 0.000
- •
- Minimum: 0.000
- •
- Flags: experimental
thread_pool_destroy_delay
- •
- Units: seconds
- •
- Default: 1.000
- •
- Minimum: 0.010
- •
- Flags: delayed, experimental
thread_pool_fail_delay
- •
- Units: seconds
- •
- Default: 0.200
- •
- Minimum: 0.010
- •
- Flags: experimental
thread_pool_max
- •
- Units: threads
- •
- Default: 5000
- •
- Minimum: thread_pool_min
- •
- Flags: delayed
thread_pool_min
- •
- Units: threads
- •
- Default: 100
- •
- Minimum: 5
- •
- Maximum: thread_pool_max
- •
- Flags: delayed
thread_pool_reserve
- •
- Units: threads
- •
- Default: 0 (auto-tune: 5% of thread_pool_min)
- •
- Maximum: 95% of thread_pool_min
- •
- Flags: delayed
thread_pool_stack
- •
- Units: bytes
- •
- Default: 80k
- •
- Minimum: sysconf(_SC_THREAD_STACK_MIN)
- •
- Flags: delayed
thread_pool_timeout
- •
- Units: seconds
- •
- Default: 300.000
- •
- Minimum: 10.000
- •
- Flags: delayed, experimental
thread_pool_watchdog
- •
- Units: seconds
- •
- Default: 60.000
- •
- Minimum: 0.100
- •
- Flags: experimental
thread_pools
- •
- Units: pools
- •
- Default: 2
- •
- Minimum: 1
- •
- Maximum: 32
- •
- Flags: delayed, experimental
thread_queue_limit
- •
- Units: requests
- •
- Default: 20
- •
- Minimum: 0
- •
- Flags: experimental
thread_stats_rate
- •
- Units: requests
- •
- Default: 10
- •
- Minimum: 0
- •
- Flags: experimental
timeout_idle
- •
- Units: seconds
- •
- Default: 5.000
- •
- Minimum: 0.000
timeout_linger
- •
- Units: seconds
- •
- Default: 0.050
- •
- Minimum: 0.000
- •
- Flags: experimental
vary_notice
- •
- Units: variants
- •
- Default: 10
- •
- Minimum: 1
vcc_allow_inline_c
- •
- Units: bool
- •
- Default: off
vcc_err_unref
- •
- Units: bool
- •
- Default: on
vcc_unsafe_path
- •
- Units: bool
- •
- Default: on
vcl_cooldown
- •
- Units: seconds
- •
- Default: 600.000
- •
- Minimum: 1.000
vcl_path
NB: The actual default value for this parameter depends on the Varnish build environment and options.- •
- Default: ${sysconfdir}/varnish:${datadir}/varnish/vcl
vmod_path
NB: The actual default value for this parameter depends on the Varnish build environment and options.- •
- Default: ${libdir}/varnish/vmods
vsl_buffer
- •
- Units: bytes
- •
- Default: 16k
- •
- Minimum: vsl_reclen + 12 bytes
vsl_mask
- •
- Default: -Debug,-ObjProtocol,-ObjStatus,-ObjReason,-ObjHeader,-VCL_trace,-ExpKill,-WorkThread,-Hash,-VfpAcct,-H2RxHdr,-H2RxBody,-H2TxHdr,-H2TxBody,-VdpAcct
- default
- Set default value
vsl_reclen
- •
- Units: bytes
- •
- Default: 255b
- •
- Minimum: 16b
- •
- Maximum: vsl_buffer - 12 bytes
vsl_space
- •
- Units: bytes
- •
- Default: 80M
- •
- Minimum: 1M
- •
- Maximum: 4G
- •
- Flags: must_restart
vsm_free_cooldown
- •
- Units: seconds
- •
- Default: 60.000
- •
- Minimum: 10.000
- •
- Maximum: 600.000
workspace_backend
- •
- Units: bytes
- •
- Default: 96k
- •
- Minimum: 1k
- •
- Flags: delayed
workspace_client
- •
- Units: bytes
- •
- Default: 96k
- •
- Minimum: 9k
- •
- Flags: delayed
workspace_session
- •
- Units: bytes
- •
- Default: 0.75k
- •
- Minimum: 384b
- •
- Flags: delayed
workspace_thread
- •
- Units: bytes
- •
- Default: 2k
- •
- Minimum: 0.25k
- •
- Maximum: 8k
- •
- Flags: delayed
EXIT CODES
Varnish and bundled tools will, in most cases, exit with one of the following codes- •
- 0 OK
- •
- 1 Some error which could be system-dependent and/or transient
- •
- 2 Serious configuration / parameter error - retrying with the same configuration / parameters is most likely useless
- •
- with 0x20 when the varnishd child process died,
- •
- with 0x40 when the varnishd child process was terminated by a signal and
- •
- with 0x80 when a core was dumped.
SEE ALSO
- •
- vcl(7)
HISTORY
The varnishd daemon was developed by Poul-Henning Kamp in cooperation with Verdens Gang AS and Varnish Software.COPYRIGHT
This document is licensed under the same licence as Varnish itself. See LICENCE for details.- •
- Copyright (c) 2007-2015 Varnish Software AS