varnishd·续2

ban_lurker_sleep#
  • Units: seconds
  • Default: 0.010
  • Minimum: 0.000

How long the ban lurker sleeps after examining ${ban_lurker_batch} objects. Use this to pace the ban-lurker if it eats too many resources. A value of zero will disable the ban lurker entirely.

between_bytes_timeout#
  • Units: seconds
  • Default: 60.000
  • Minimum: 0.000
  • Flags: timeout

We only wait for this many seconds between bytes received from the backend before giving up the fetch. VCL values, per backend or per backend request take precedence. This parameter does not apply to pipe’ed requests.

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

The command used for compiling the C source code to a dlopen(3) loadable object. The following expansions can be used:

  • %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

Unknown percent expansion sequences are ignored, and to avoid future incompatibilities percent characters should be escaped with a double percent sequence.

The %d and %D expansions allow passing the parameter’s default value to a wrapper script to perform additional processing.

cc_warnings#

NB: The actual default value for this parameter depends on the Varnish build environment and options.

  • Default: -Wall -Werror
  • Flags: must_reload

Warnings used when compiling the C source code with the cc_command parameter. By default, VCL is compiled with the same set of warnings as Varnish itself.

cli_limit#
  • Units: bytes
  • Default: 64k
  • Minimum: 128b
  • Maximum: 99999999b

Maximum size of CLI response. If the response exceeds this limit, the response code will be 201 instead of 200 and the last line will indicate the truncation.

cli_timeout#
  • Units: seconds
  • Default: 60.000
  • Minimum: 0.000
  • Flags: timeout

Timeout for the child’s replies to CLI requests.

clock_skew#
  • Units: seconds
  • Default: 10
  • Minimum: 0

How much clockskew we are willing to accept between the backend and our own clock.

clock_step#
  • Units: seconds
  • Default: 1.000
  • Minimum: 0.000

How much observed clock step we are willing to accept before we panic.

connect_timeout#
  • Units: seconds
  • Default: 3.500
  • Minimum: 0.000
  • Flags: timeout

Default connection timeout for backend connections. We only try to connect to the backend for this many seconds before giving up. VCL can override this default value for each backend and backend request.

critbit_cooloff#
  • Units: seconds
  • Default: 180.000
  • Minimum: 60.000
  • Maximum: 254.000
  • Flags: wizard

How long the critbit hasher keeps deleted objheads on the cooloff list.

debug#
  • Default: none

Enable/Disable various kinds of debugging.

none Disable all debugging

Use +/- prefix to set/reset individual bits:

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: 10s
  • Minimum: 0.000
  • Flags: obj_sticky

Default grace period. We will deliver an object this long after it has expired, provided another thread is attempting to get a new copy.

default_keep#
  • Units: seconds
  • Default: 0s
  • Minimum: 0.000
  • Flags: obj_sticky

Default keep period. We will keep a useless object around this long, making it available for conditional backend fetches. That means that the object will be removed from the cache at the end of ttl+grace+keep.

default_ttl#
  • Units: seconds
  • Default: 2m
  • Minimum: 0.000
  • Flags: obj_sticky

The TTL assigned to objects if neither the backend nor the VCL code assigns one.

experimental#
  • Default: none

Enable/Disable experimental features.

none Disable all experimental features

Use +/- prefix to set/reset individual bits:

drop_pools Drop thread pools

feature#
  • Default: none,+validate_headers,+vcl_req_reset

Enable/Disable various minor features.

default Set default value (deprecated: use param.reset)

none Disable all features.

Use +/- prefix to enable/disable individual feature:

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 RFC9110 section 5.5.

busy_stats_rate Make busy workers comply with thread_stats_rate.

trace Enable VCL tracing by default (enable (be)req.trace). Required for tracing vcl_init / vcl_fini

vcl_req_reset Stop processing client VCL once the client is gone. When this happens MAIN.req_reset is incremented.

fetch_chunksize#
  • Units: bytes
  • Default: 16k
  • Minimum: 4k
  • Flags: experimental

The default chunksize used by fetcher. This should be bigger than the majority of objects with short TTLs. Internal limits in the storage_file module makes increases above 128kb a dubious idea.

fetch_maxchunksize#
  • Units: bytes
  • Default: 0.25G
  • Minimum: 64k
  • Flags: experimental

The maximum chunksize we attempt to allocate from storage. Making this too large may cause delays and storage fragmentation.

first_byte_timeout#
  • Units: seconds
  • Default: 60.000
  • Minimum: 0.000
  • Flags: timeout

Default timeout for receiving first byte from backend. We only wait for this many seconds for the first byte before giving up. VCL can override this default value for each backend and backend request. This parameter does not apply to pipe’ed requests.

gzip_buffer#
  • Units: bytes
  • Default: 32k
  • Minimum: 2k
  • Flags: experimental

Size of malloc buffer used for gzip processing. Size of buffer used for gzip processing. These buffers are used for in-transit data, for instance gunzip’ed data being sent to a client. Making this space to small results in more overhead, writes to sockets etc, making it too big is probably just a waste of memory. Gzip buffers are allocated from Transient storage.

gzip_level#
  • Default: 6
  • Minimum: 0
  • Maximum: 9

Gzip compression level: 0=debug, 1=fast, 9=best

gzip_memlevel#
  • Default: 8
  • Minimum: 1
  • Maximum: 9

Gzip memory level 1=slow/least, 9=fast/most compression. Memory impact is 1=1k, 2=2k, … 9=256k.

h2_header_table_size#
  • Units: bytes
  • Default: 4k
  • Minimum: 0b

HTTP2 header table size. This is the size that will be used for the HPACK dynamic decoding table.

The value of this parameter defines SETTINGS_HEADER_TABLE_SIZE in the initial SETTINGS frame sent to the client when a new HTTP2 session is established.

h2_initial_window_size#
  • Units: bytes
  • Default: 65535b
  • Minimum: 65535b
  • Maximum: 2147483647b

HTTP2 initial flow control window size.

The value of this parameter defines SETTINGS_INITIAL_WINDOW_SIZE in the initial SETTINGS frame sent to the client when a new HTTP2 session is established.

h2_max_concurrent_streams#
  • Units: streams
  • Default: 100
  • Minimum: 0

HTTP2 Maximum number of concurrent streams. This is the number of requests that can be active at the same time for a single HTTP2 connection.

The value of this parameter defines SETTINGS_MAX_CONCURRENT_STREAMS in the initial SETTINGS frame sent to the client when a new HTTP2 session is established.

h2_max_frame_size#
  • Units: bytes
  • Default: 16k
  • Minimum: 16k
  • Maximum: 16777215b

HTTP2 maximum per frame payload size we are willing to accept.

The value of this parameter defines SETTINGS_MAX_FRAME_SIZE in the initial SETTINGS frame sent to the client when a new HTTP2 session is established.

h2_max_header_list_size#
  • Units: bytes
  • Default: 0b
  • Minimum: 0b
  • Maximum: 2147483647b

HTTP2 maximum size of an uncompressed header list. This parameter is not mapped to SETTINGS_MAX_HEADER_LIST_SIZE in the initial SETTINGS frame, the http_req_size parameter is instead.

The http_req_size advises HTTP2 clients of the maximum size for the header list. Exceeding http_req_size results in a reset stream after processing the HPACK block to preserve the connection, but exceeding h2_max_header_list_size results in the HTTP2 connection going away immediately.

If h2_max_header_list_size is lower than http_req_size, it has no effect, except for the special value zero interpreted as 150% of http_req_size.

h2_rapid_reset#
  • Units: seconds
  • Default: 1.000
  • Minimum: 0.000
  • Flags: delayed, experimental

The upper threshold for how soon an http/2 RST_STREAM frame has to be parsed after a HEADERS frame for it to be treated as suspect and subjected to the rate limits specified by h2_rapid_reset_limit and h2_rapid_reset_period. Changes to this parameter affect the default for new HTTP2 sessions. vmod_h2(3) can be used to adjust it from VCL.

h2_rapid_reset_limit#
  • Default: 100
  • Minimum: 0
  • Flags: delayed, experimental

HTTP2 RST Allowance. Specifies the maximum number of allowed stream resets issued by a client over a time period before the connection is closed. Setting this parameter to 0 disables the limit. Changes to this parameter affect the default for new HTTP2 sessions. vmod_h2(3) can be used to adjust it from VCL.

h2_rapid_reset_period#
  • Units: seconds
  • Default: 60.000
  • Minimum: 1.000
  • Flags: delayed, experimental, wizard

HTTP2 sliding window duration for h2_rapid_reset_limit. Changes to this parameter affect the default for new HTTP2 sessions. vmod_h2(3) can be used to adjust it from VCL.

h2_rx_window_increment#
  • Units: bytes
  • Default: 1M
  • Minimum: 1M
  • Maximum: 1G
  • Flags: wizard

HTTP2 Receive Window Increments. How big credits we send in WINDOW_UPDATE frames Only affects incoming request bodies (ie: POST, PUT etc.)

h2_rx_window_low_water#
  • Units: bytes
  • Default: 10M
  • Minimum: 65535b
  • Maximum: 1G
  • Flags: wizard

HTTP2 Receive Window low water mark. We try to keep the window at least this big Only affects incoming request bodies (ie: POST, PUT etc.)

h2_rxbuf_storage#
  • Default: Transient
  • Flags: must_restart

The name of the storage backend that HTTP/2 receive buffers should be allocated from.

h2_window_timeout#
  • Units: seconds
  • Default: 5.000
  • Minimum: 0.000
  • Flags: timeout, wizard

HTTP2 time limit without window credits. How long a stream may wait for the client to credit the window and allow for more DATA frames to be sent.

http1_iovs#
  • Units: struct iovec (=16 bytes)
  • Default: 64
  • Minimum: 5
  • Maximum: 1024
  • Flags: wizard

Number of io vectors to allocate for HTTP1 protocol transmission. A HTTP1 header needs 7 + 2 per HTTP header field. Allocated from workspace_thread. This parameter affects only io vectors used for client delivery. For backend fetches, the maximum number of io vectors (up to IOV_MAX) is allocated from available workspace_thread memory.