VSL(7)
π NAME π
VSL(7) β Varnish Shared Memory Logging π¦π
β¨ OVERVIEW β¨
okay bestie, sit down, hydrate, because this page is THE doc for the format and content of every single Varnish shared memory logging tag. these tags are literally what the logging tools that ship with Varnish β you know, varnishlog(1), varnishtop(1), etc. β read from. no cap. π«Ά
πΈ VSL tags πΈ
π
BackendClose β Backend connection closed
logged the literal second a backend connection gets closed. it's giving "we're done here" π
The format is:
%d %s %s [ %s ]
| | | |
| | | +- Optional reason, see SessClose for explanation
| | +------ "close" or "recycle"
| +--------- Backend display name
+------------ Connection file descriptor
β¨ BackendOpen β Backend connection opened
logged when a fresh new backend connection opens up. new connection, who dis π
The format is:
%d %s %s %s %s %s %s
| | | | | | |
| | | | | | +- "connect" or "reuse"
| | | | | +---- Local port
| | | | +------- Local address
| | | +---------- Remote port
| | +------------- Remote address
| +---------------- Backend display name
+------------------- Connection file descriptor
π©Ί Backend_health β Backend health check
the result of a backend health probe. basically a vibe check but for your backend, and if it fails it gets marked sick π
The format is:
%s %s %s %s %u %u %u %f %f %s
| | | | | | | | | |
| | | | | | | | | +- Probe HTTP response / error information
| | | | | | | | +---- Average response time
| | | | | | | +------- Response time
| | | | | | +---------- Probe window size
| | | | | +------------- Probe threshold level
| | | | +---------------- Number of good probes in window
| | | +------------------- Probe window bits
| | +---------------------- "healthy" or "sick"
| +------------------------- "Back", "Still" or "Went"
+---------------------------- Backend name
Probe window bits are:
'-': Could not connect
'4': Good IPv4
'6': Good IPv6
'U': Good UNIX
'x': Error Xmit
'X': Good Xmit
'r': Error Recv
'R': Good Recv
'H': Happy
okay and here's the tea π΅ β when the backend is just created, the window bits for health check slots that haven't run yet appear as '-' like failures to connect. so don't panic, they just haven't had their moment yet.
π¬ Begin β Marks the start of a VXID
the very first record of a VXID transaction. the opening scene, the main character entrance π
The format is:
%s %d %s [%u]
| | | |
| | | +- Task sub-level
| | +----- Reason
| +-------- Parent vxid
+----------- Type ("sess", "req" or "bereq")
π BereqAcct β Backend request accounting
holds all the byte counters from backend request processing. numbers, numbers, numbers π
The format is:
%d %d %d %d %d %d
| | | | | |
| | | | | +- Total bytes received
| | | | +---- Body bytes received
| | | +------- Header bytes received
| | +---------- Total bytes transmitted
| +------------- Body bytes transmitted
+---------------- Header bytes transmitted
π¨ BereqHeader β Backend request header
HTTP header contents, periodt.
The format is:
%s: %s
| |
| +- Header value
+----- Header name
NOTE: HTTP header fields are free form records and not strictly made of 2 fields. Accessing a specific header with the prefix notation helps treating the header value as a single string. (iykyk π«Ά)
π οΈ BereqMethod β Backend request method
the HTTP request method that got used. GET, POST, whatever she chose π
π‘ BereqProtocol β Backend request protocol
the HTTP protocol version info. old school HTTP/1.1 or the shiny HTTP/2, it's all here.
π BereqURL β Backend request URL
the HTTP request URL. yes, the whole thing.
π§Ή BereqUnset β Backend request unset header
HTTP header contents β specifically, the ones getting unset.
The format is:
%s: %s
| |
| +- Header value
+----- Header name
NOTE: HTTP header fields are free form records and not strictly made of 2 fields. Accessing a specific header with the prefix notation helps treating the header value as a single string.
π¬ BerespHeader β Backend response header
HTTP header contents, but this time it's the response's turn π
The format is:
%s: %s
| |
| +- Header value
+----- Header name
NOTE: HTTP header fields are free form records and not strictly made of 2 fields. Accessing a specific header with the prefix notation helps treating the header value as a single string.
π°οΈ BerespProtocol β Backend response protocol
the HTTP protocol version information. slay.
π¬ BerespReason β Backend response reason
the HTTP response reason string. you know, the little human-readable part after the status code.
π’ BerespStatus β Backend response status
the HTTP response status code. 200? iconic. 503? we don't talk about it π
π§½ BerespUnset β Backend response unset header
HTTP header contents. the unset ones.
The format is:
%s: %s
| |
| +- Header value
+----- Header name
NOTE: HTTP header fields are free form records and not strictly made of 2 fields. Accessing a specific header with the prefix notation helps treating the header value as a single string.
π€¨ BogoHeader β Bogus HTTP received
contains the first 20 characters of received HTTP headers we could not make sense of. yes bestie, sometimes the HTTP is just nonsense. applies to both req.http and beresp.http. π
π₯οΈ CLI β CLI communication
CLI communication between the varnishd master and the child process. they're chatting, it's fine.
π Debug β Debug messages
debug messages can normally be ignored, but they're sometimes lowkey helpful during trouble-shooting. most debug messages must be explicitly enabled with parameters.
β οΈ Debug messages may be added, changed or removed without prior notice and shouldn't be considered stable. so don't build your whole personality around them fr fr.
NB: This log record is masked by default.
𧨠ESI_xmlerror β ESI parser error or warning message
an error or warning got generated while parsing an ESI object. the log record describes the problem encountered. messy but informative β¨
π End β Marks the end of a VXID
the last record of a VXID transaction. closing credits, she's done π¬
π¨ Error β Error messages
error messages are stuff you probably want to know. genuinely. look at these. π
π« ExpBan β Object evicted due to ban
logs the VXID when an object is banned. banned. blocked. removed from the group chat π«
β³ ExpKill β Object expiry event
logs events related to object expiry. here's the full roster of events:
EXP_Rearmβ logged when the expiry time of an object changes.EXP_Inboxβ logged when the expiry thread picks an object from the inbox for processing.EXP_Killβ logged when the expiry thread kills an object from the inbox.EXP_Whenβ logged when the expiry thread moves an object on the binheap.EXP_Inspectβ logged when the expiry thread inspects the next object scheduled to expire.EXP_Expiredβ logged when the expiry thread expires an object.EXP_Removedβ logged when the expiry thread removes an object before expiry.VBF_Supersededβ logged when an object supersedes another.LRU_Candβ logged when an object is evaluated for LRU force expiry.LRUβ logged when an object is force expired due to LRU.LRU_Failβ logged when no suitable candidate object is found for LRU force expiry.
The format is:
EXP_Rearm p=%p E=%f e=%f f=0x%x
EXP_Inbox p=%p e=%f f=0x%x
EXP_Kill p=%p e=%f f=0x%x
EXP_When p=%p e=%f f=0x%x
EXP_Inspect p=%p e=%f f=0x%x
EXP_Expired x=%u t=%f h=%u
EXP_Removed x=%u t=%f h=%u
VBF_Superseded x=%u n=%u
LRU_Cand p=%p f=0x%x r=%d
LRU x=%u
LRU_Fail
Legend:
p=%p Objcore pointer
t=%f Remaining TTL (s)
e=%f Expiry time (unix epoch)
E=%f Old expiry time (unix epoch)
f=0x%x Objcore flags
r=%d Objcore refcount
x=%u Object VXID
n=%u New object VXID
h=%u Objcore hits
π³οΈ FetchError β Error while fetching object
logs the error message of a failed fetch operation. the fetch did not eat, unfortunately π
π« Fetch_Body β Body fetched from backend
ready to fetch body from backend. it's go time πββοΈ
The format is:
%d %s %s
| | |
| | +---- 'stream' or '-'
| +------- Text description of body fetch mode
+---------- Body fetch mode
π§ Filters β Body filters
list of filters applied to the body. stacking filters like accessories β¨
ποΈ Gzip β G(un)zip performed on object
a Gzip record is emitted for each instance of gzip or gunzip work performed. worst case, an ESI transaction stored in gzipped objects but delivered gunzipped will run into many of these. so like, expect a lot of them sometimes.
The format is:
%c %c %c %d %d %d %d %d
| | | | | | | |
| | | | | | | +- Bit length of compressed data
| | | | | | +---- Bit location of 'last' bit
| | | | | +------- Bit location of first deflate block
| | | | +---------- Bytes output
| | | +------------- Bytes input
| | +---------------- 'E': ESI, '-': Plain object
| +------------------- 'F': Fetch, 'D': Deliver
+---------------------- 'G': Gzip, 'U': Gunzip, 'u': Gunzip-test
Examples:
U F E 182 159 80 80 1392
G F E 159 173 80 1304 1314
π₯ H2RxBody β Received HTTP2 frame body
Binary data. that's the whole vibe, bestie π«Ά
π₯ H2RxHdr β Received HTTP2 frame header
Binary data.
π€ H2TxBody β Transmitted HTTP2 frame body
Binary data.
π€ H2TxHdr β Transmitted HTTP2 frame header
Binary data.
#οΈβ£ Hash β Value added to hash
this value was added to the object lookup hash. hashing, but make it fashion π₯
NB: This log record is masked by default.
π― Hit β Hit object in cache
object looked up in cache. a HIT. we love to see it, it's giving efficiency π
The format is:
β¦and here's the rest of that little diagram from the record above, bestie, no context switch, we're just picking up right where we left off π«Ά
%u %f %f %f [%u [%u]]
| | | | | |
| | | | | +- Content length
| | | | +----- Fetched so far
| | | +--------- Keep period
| | +------------ Grace period
| +--------------- Remaining TTL
+------------------ VXID of the object
π¦ HitMiss β hit for a miss object in cache
It's a hit-for-miss object, and we looked it up in the cache. That's the whole vibe.
The format is:
%u %f
| |
| +- Remaining TTL
+---- VXID of the object
π HitPass β hit for pass object in cache
Same energy, different flavour: it's a hit-for-pass object, looked up in the cache. β¨
The format is:
%u %f
| |
| +- Remaining TTL
+---- VXID of the object
π HttpGarbage β unparseable HTTP request
Somebody sent us an HTTP request we literally could not parse, and this record logs the content of those unparseable requests. Messy. We're logging it anyway.
π Length β size of object body
Logs the size of a fetch object body. Just the length, that's it, that's the post.
π§ Link β links to a child VXID
This one links this VXID to any child VXID it initiates β like tagging your little sibling in the group chat, except it's task hierarchy and it's real π
The format is:
%s %d %s [%u]
| | | |
| | | +- Child task sub-level
| | +----- Reason
| +-------- Child vxid
+----------- Child type ("sess", "req" or "bereq")
π LostHeader β failed attempt to set HTTP header
When an HTTP header operation fails, this logs the header name. Why did it fail? Either we ran out of resources or we hit the configured limits. Either way, the header is gone, bestie. π
π Notice β informational messages about request handling
Informational log messages for events that happened while handling a request. Not drama, just tea β
The format is:
%s: %s
| |
| +- Short description of the notice message
+----- Manual page containing the detailed description
See the NOTICE MESSAGES section below, or the individual VMOD manual pages, for the detailed deets on notice messages.
πΈ ObjHeader β object header
HTTP header contents, obviously.
The format is:
%s: %s
| |
| +- Header value
+----- Header name
NOTE: HTTP header fields are free form records and not strictly made of 2 fields. Accessing a specific header with the prefix notation helps treating the header value as a single string.
β ObjProtocol β object protocol
The HTTP protocol version information. That's it, that's the whole thing β¨
π ObjReason β object reason
The HTTP response reason string.
π₯ ObjStatus β object status
The HTTP response status code.
π ObjUnset β object unset header
HTTP header contents.
The format is:
%s: %s
| |
| +- Header value
+----- Header name
NOTE: HTTP header fields are free form records and not strictly made of 2 fields. Accessing a specific header with the prefix notation helps treating the header value as a single string.
π
PipeAcct β pipe byte counts
Contains byte counters for pipe sessions. Numbers, numbers, numbers, we love to see it.
The format is:
%d %d %d %d
| | | |
| | | +------- Piped bytes to client
| | +---------- Piped bytes from client
| +------------- Backend request headers
+---------------- Client request headers
π Proxy β PROXY protocol information
PROXY protocol information. Say that five times fast, I dare you.
The format is:
%d %s %d %s %d
| | | | |
| | | | +- server port
| | | +---- server ip
| | +------- client port
| +---------- client ip
+------------- PROXY protocol version
All fields are "local" for PROXY local connections (command 0x0)
π ProxyGarbage β unparseable PROXY request
A PROXY protocol header was unparseable. Straight to the void with it.
π¦ ReqAcct β request handling byte counts
Contains byte counts for the request handling. Important detail bestie: the body bytes count includes transmission overhead (ie: chunked encoding). And ESI sub-requests show the body bytes this ESI fragment including any subfragments contributed to the top level request. The format is:
%d %d %d %d %d %d
| | | | | |
| | | | | +- Total bytes transmitted
| | | | +---- Body bytes transmitted
| | | +------- Header bytes transmitted
| | +---------- Total bytes received
| +------------- Body bytes received
+---------------- Header bytes received
π ReqHeader β client request header
HTTP header contents.
The format is:
%s: %s
| |
| +- Header value
+----- Header name
NOTE: HTTP header fields are free form records and not strictly made of 2 fields. Accessing a specific header with the prefix notation helps treating the header value as a single string.
β ReqMethod β client request method
The HTTP request method used. GET, POST, whatever the client decided to serve us today π
π§ ReqProtocol β client request protocol
The HTTP protocol version information.
πΈ ReqStart β client request start
Start of request processing. It logs the client address, the port number, and the listener endpoint name (that's the one from the -a command-line argument).
The format is:
%s %s %s
| | |
| | +-- Listener name (from -a)
| +----- Client Port number (0 for Unix domain sockets)
+-------- Client IP4/6 address (0.0.0.0 for UDS)
π ReqTarget β request target as received
For HTTP1 connections, this is the request-target field from the request line, which has the format method SP request-target SP HTTP-Version (SP for space, 0x20).
NB: This log record is masked by default. π
π ReqURL β client request URL
The HTTP request URL.
π ReqUnset β client request unset header
HTTP header contents.
The format is:
%s: %s
| |
| +- Header value
+----- Header name
NOTE: HTTP header fields are free form records and not strictly made of 2 fields. Accessing a specific header with the prefix notation helps treating the header value as a single string.
π RespHeader β client response header
HTTP header contents.
The format is:
%s: %s
| |
| +- Header value
+----- Header name
NOTE: HTTP header fields are free form records and not strictly made of 2 fields. Accessing a specific header with the prefix notation helps treating the header value as a single string.
β RespProtocol β client response protocol
The HTTP protocol version information.
π RespReason β client response reason
The HTTP response reason string.
π₯ RespStatus β client response status
The HTTP response status code.
π RespUnset β client response unset header
HTTP header contents.
The format is:
%s: %s
| |
| +- Header value
+----- Header name
NOTE: HTTP header fields are free form records and not strictly made of 2 fields. Accessing a specific header with the prefix notation helps treating the header value as a single string.
π¦ SessClose β client connection closed
SessClose is the last record for any client connection. The final boss of the session, if you will π
The format is:
%s %f
| |
| +- How long the session was open
+---- Why the connection closed
Explanation of reasons (first column):
REM_CLOSE: Client ClosedREQ_CLOSE: Client requested closeREQ_HTTP10: Proto < HTTP/1.1RX_BAD: Received bad req/respRX_BODY: Failure receiving bodyRX_JUNK: Received junk dataRX_OVERFLOW: Received buffer overflowRX_TIMEOUT: Receive timeoutRX_CLOSE_IDLE:timeout_idlereachedTX_PIPE: Piped transactionTX_ERROR: Error transactionTX_EOF: EOF transmissionRESP_CLOSE: Backend/VCL requested closeOVERLOAD: Out of some resourcePIPE_OVERFLOW: Session pipe overflowRANGE_SHORT: Insufficient data for rangeREQ_HTTP20: HTTP2 not acceptedVCL_FAILURE: VCL failureRAPID_RESET: HTTP2 rapid reset
π SessError β client connection accept failed
Accepting a client connection failed. It happens to the best of us, bestie.
The format is:
%s %s %s %d %d %s
| | | | | |
| | | | | +- Detailed error message
| | | | +---- Error Number (errno) from accept(2)
| | | +------- File descriptor number
| | +---------- Local TCP port / 0 for UDS
| +------------- Local IPv4/6 address / 0.0.0.0 for UDS
+---------------- Socket name (from -a argument)
β¨ SessOpen β client connection opened
The first record for a client connection, and it comes with the socket-endpoints of the connection. Main character energy, opening the whole show π
The format is:
%s %d %s %s %s %f %d
| | | | | | |
| | | | | | +- File descriptor number
| | | | | +---- Session start time (unix epoch)
| | | | +------- Local TCP port / 0 for UDS
| | | +---------- Local IPv4/6 address / 0.0.0.0 for UDS
| | +------------- Socket name (from -a argument)
| +---------------- Remote TCP port / 0 for UDS
+------------------- Remote IPv4/6 address / 0.0.0.0 for UDS
π Storage β where object is stored
The type and the name of the storage backend the object is stored in. Where does the object live? Here's your answer π
The format is:
%s %s
| |
| +- Name of storage backend
+---- Type ("malloc", "file", "persistent" etc.)
πΈ TTL β TTL set on object
A TTL record gets emitted whenever the ttl, grace or keep values for an object are set β and also whether the object is cacheable or not. So much information in one little record, we're obsessed π
The format is:
%s %d %d %d %d [ %d %d %u %u ] %s
| | | | | | | | | |
| | | | | | | | | +- "cacheable" or "uncacheable"
| | | | | | | | +------ Max-Age from Cache-Control header
| | | | | | | +--------- Expires header
| | | | | | +------------ Date header
| | | | | +--------------- Age (incl Age: header value)
| | | | +-------------------- Reference time for TTL
| | | +----------------------- Keep
| | +-------------------------- Grace
| +----------------------------- TTL
+-------------------------------- "RFC", "VCL" or "HFP"
The four optional fields are only present in RFC headers. (like, only the RFC flavor brings the extra little squad along, okay?)
Examples, bestie:
RFC 60 10 -1 1312966109 1312966109 1312966109 0 60 cacheable
VCL 120 10 0 1312966111 uncacheable
HFP 2 0 0 1312966113 uncacheable
Timestamp - Timing information
Contains timing information for the Varnish worker threads. the receipts on how long everything took, basically
Time stamps are issued by Varnish on certain events, and show the absolute time of the event, the time spent since the start of the work unit, and the time spent since the last timestamp was logged. See the TIMESTAMPS section below for information about the individual time stamps. iykyk π
The format is:
%s: %f %f %f
| | | |
| | | +- Time since last timestamp
| | +---- Time since start of work unit
| +------- Absolute time of event
+----------- Event label
VCL_Error - VCL execution error message
Logs error messages generated during VCL execution. something went sideways in your VCL, and this is where it tells you π
VCL_Log - Log statement from VCL
User generated log messages insert from VCL through std.log(). that's YOUR voice showing up in the log, main character energy β¨
VCL_acl - VCL ACL check results
ACLs with the +log flag emits this record with the result. so if you flipped that flag on, here's the verdict
The format is:
%s [%s [%s [fixed: %s]]]
| | | |
| | | +- Fix info (see below)
| | +------------ Matching entry (only for MATCH)
| +---------------- Name of the ACL for MATCH or NO_MATCH
+-------------------- MATCH, NO_MATCH or NO_FAM
- Fix info: either contains network/mask for non-canonical entries (see
acl +pedanticflag) orfoldedfor entries which were the result of a fold operation (seeacl +foldflag). MATCHdenotes an ACL match (slay, it matched)NO_MATCHdenotes that a checked ACL has not matched (rip, it did not)NO_FAMdenotes a missing address family and should not occur. fr fr, if you see this, something is Weird π
VCL_call - VCL method called
Logs the VCL method name when a VCL method is called. basically a little "hey, we're running this one now" ping
VCL_return - VCL method return value
Logs the VCL method terminating statement. the return that ended it, periodt
VCL_trace - VCL trace data
Logs VCL execution trace data. a lil breadcrumb trail through your VCL π¦
The format is:
%s %u %u.%u.%u
| | | | |
| | | | +- VCL program line position
| | | +---- VCL program line number
| | +------- VCL program source index
| +---------- VCL trace point index
+------------- VCL configname
NB: This log record is masked by default. (so don't panic if you can't see it β you gotta unmask it)
VCL_use - VCL in use
Records the name of the VCL being used. which VCL is currently running the show π
The format is:
%s [ %s %s ]
| | |
| | +- Name of label used to find it
| +---- "via"
+--------- Name of VCL put in use
VSL - VSL API warnings and error message
Warnings and error messages generated by the VSL API while reading the shared memory log. the API itself is complaining, not your VCL
VdpAcct - Deliver filter accounting
Contains name of VDP and statistics. numbers about your deliver filters, bestie π
The format is:
%s %d %d
| | |
| | +- Total bytes produced
| +---- Number of calls made
+------- Name of filter
NB: This log record is masked by default.
VfpAcct - Fetch filter accounting
Contains name of VFP and statistics. same energy, but for fetch filters this time πΈ
The format is:
%s %d %d
| | |
| | +- Total bytes produced
| +---- Number of calls made
+------- Name of filter
NB: This log record is masked by default.
Witness - Lock order witness records
Diagnostic recording of locking order. purely diagnostic, it's just watching the locks line up so nothing deadlocks π
WorkThread - Logs thread start/stop events
Logs worker thread creation and termination events. birth and death of worker threads, iconic honestly π§
The format is:
%p %s
| |
| +- [start|end]
+---- Worker struct pointer
NB: This log record is masked by default.
β¨ TIMESTAMPS β¨
Timestamps are inserted in the log on completing certain events during the worker thread's task handling. The timestamps has a label showing which event was completed. The reported fields show the absolute time of the event, the time spent since the start of the task and the time spent since the last timestamp was logged. so: when it happened, how long since the whole thing started, and how long since the last stamp β±οΈ
The timestamps logged automatically by Varnish are inserted after completing events that are expected to have delays (e.g. network IO or spending time on a waitinglist). Timestamps can also be inserted from VCL using the std.timestamp() function. If one is doing time consuming tasks in the VCL configuration, it's a good idea to log a timestamp after completing that task. This keeps the timing information in subsequent timestamps from including the time spent on the VCL event. no cap β if your VCL is doing something slow, stamp it so the next stamps don't blame themselves for the delay π
Request handling timestamps
Startβ The start of request processing (first byte received or restart).Reqβ Complete client request received.ReqBodyβ Client request body processed (discarded, cached or passed to the backend).Waitinglistβ Came off waitinglist.Fetchβ Fetch processing finished (completely fetched or ready for streaming).Processβ Processing finished, ready to deliver the client response.Respβ Delivery of response to the client finished.Restartβ Client request is being restarted.Resetβ The client closed its connection, reset its stream or caused a stream error that forced Varnish to reset the stream. Request processing is interrupted and considered failed, with a408 "Request Timeout"status code. (it's giving "we're done here", abruptly)
Pipe handling timestamps
The following timestamps are client timestamps specific to pipe transactions: pipe-only stamps, okay?
Pipeβ Opened a pipe to the backend and forwarded the request.PipeSessβ The pipe session has finished.
The following timestamps change meaning in a pipe transaction:
Processβ Processing finished, ready to begin the pipe delivery. (yes it's the same label, but in a pipe it means something a lil different)
Backend fetch timestamps
Startβ Start of the backend fetch processing.Fetchβ Came offvcl_backend_fetchready to send the backend request.Connectedβ Successfully established a backend connection, or selected a recycled connection from the pool.Bereqβ Backend request sent.Berespβ Backend response headers received.Processβ Processing finished, ready to fetch the response body.BerespBodyβ Backend response body received.Retryβ Backend request is being retried.Errorβ Backend request failed tovcl_backend_error.
π NOTICE MESSAGES π
Notice messages contain informational messages about the handling of a request. These can be exceptional circumstances encountered that causes deviation from the normal handling. The messages are prefixed with vsl: for core Varnish generated messages, and VMOD authors are encouraged to use vmod_<name>: for their own notice messages. This matches the name of the manual page where detailed descriptions of notice messages are expected. so the prefix literally tells you which manual page to go read β convenient, honestly π«Ά
The core messages are described below.
Conditional fetch wait for streaming object
The backend answered 304 Not Modified on a conditional fetch using an object that has not yet been fully fetched as the stale template object. This can only happen when the TTL of the object is less than the time it takes to fetch it. The fetch is halted until the stale object is fully fetched, upon which the new object is created as normal. While waiting, any grace time on the stale object will be in effect. so we're just chillin', waiting on the old one to finish, and grace is doing its thing the whole time π¦
High number of variants
Objects are primarily looked up from an index using the hash key computed from the hash_data() VCL function. When variants are involved, that is to say when a backend response was stored with a Vary header, a secondary lookup is performed but it is not indexed. As the number of variants for a given key increases, this can slow cache lookups down, and since this happens under a lock, this can greatly increase lock contention, even more so for frequently requested objects. Variants should therefore be used sparingly on cacheable responses, but since they can originate from either VCL or origin servers, this notice should help identify problematic resources. tl;dr: too many variants = the lock gets crowded and everything gets slow, so use them sparingly β οΈ
π HISTORY π
This document was initially written by Poul-Henning Kamp, and later updated by Martin Blix Grydeland. legends, genuinely π
π SEE ALSO π
βοΈ COPYRIGHT βοΈ
This document is licensed under the same licence as Varnish itself. See LICENCE for details. (go read the LICENCE file, bestie, it's right there)
- Copyright (c) 2006 Verdens Gang AS
- Copyright (c) 2006-2015 Varnish Software AS
okay that's the whole thing, you made it to the end of VSL(7) π like actually the entire page, section 7 of the Varnish manual, and I'm so proud of you for reading all of it π go forth and read your logs with confidence, you absolute icon β¨π¦π
π¦ where this page comes from
- fedora 44: varnish 8.0.2-1.fc44 Β· BSD-2-Clause AND (BSD-2-Clause-FreeBSD AND BSD-3-Clause AND LicenseRef-Fedora-Public-Domain AND Zlib)
- fedora 44: varnish 8.0.2-1.fc44 Β· BSD-2-Clause AND (BSD-2-Clause-FreeBSD AND BSD-3-Clause AND LicenseRef-Fedora-Public-Domain AND Zlib)
- π the page's license: BSD-2-Clause
- Copyright (c) 2011-2021 Varnish Software AS
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms