Skip to main content

Generated by go run ./cmd/configdoc from the gate table in internal/capability/gates.go. Do not edit by hand.

Capability gates

Every input that turns an optimisation or a behaviour on or off is one gate of one table. The proxy decides each gate from the VictoriaLogs release behind it (the lowest release seen in the last window, so a mixed pool or a rolling upgrade never enables a gate one member lacks), the feature probes it runs against VictoriaLogs (-backend-feature-probes), and, as hooks, the Loki compatibility target and the client profile of a request. GET /admin/capabilities shows the releases seen, every gate and what decided it; the metrics loki_vl_proxy_backend_version_info, loki_vl_proxy_capability_gate, loki_vl_proxy_capability_mismatch_total, loki_vl_proxy_capability_epoch and loki_vl_proxy_backend_feature_probe_total carry the same.

Kinds​

KindUnknown releaseA probe that contradicts the releaseProbe
capabilityoff (the v1.49.0 floor), except a gate the floor itself hasa probe may only turn the gate off below what the release allows, never on above it (an older member of a pool may be the one answering); an absent answer holds for the whole window; the mismatch is logged once and countedallowed, one per gate
safetyguarded: the gate is off, so the proxy never sends what needs the fix; so is a release of an unrecognised flavour or suffix (-rc1, -cluster)guarded: a probe that finds absent a feature of the fix's release or an earlier one means some member is older than the fixnever: a crash or a wrong answer cannot be probed without causing it
behaviourundecided: nothing is predicted from it, neither assumed present nor absenta probe may only turn the gate off below the release, as for a capabilityallowed

With no release readable, a probe that finds a feature present also bounds the release from below: the capabilities of that release's line and earlier ones are then present too (implied), so a backend behind vmauth that answers coalesce keeps dense pattern windowing and column-indexed field values. It is used only while the answers are consistent with one release (every feature found present is no newer than every feature found absent, an absent answer holding for the whole window); answers that contradict each other mean a pool the probes cannot tell apart, and nothing is implied. Only an explicit refusal turns a probed gate off: a timeout, a 5xx, a 401 or 403, a transport error or an open circuit breaker gives no verdict and keeps the previous one, so an outage never flips a gate or moves the digest. Probes use the proxy's own backend client, auth, TLS and headers, bypass the circuit breaker and the outage join, and are never counted as client requests. Every probe reads one fixed one-second window in the year 2000, long before any retention, so it never scans a stored row.

Gates​

GateKindFromProbeRead byRegistry itemCitation
vl.dense_pattern_windowingcapabilityv1.50.0nonethe patterns endpoint: dense windowing of the log sample (patterns.go)vl/capabilities/dense-pattern-windowingVictoriaLogs v1.50.0 (stream fields in the column index)
vl.pipe_coalescecapabilityv1.51.0/select/logsql/query (proven crash-safe on v1.49.0 and v1.54.0)the service_name derivation (one coalesce or a format chain) and the refusal predictionvl/capabilities/pipe-coalesceVictoriaLogs v1.51.0 (#690)
vl.column_field_valuescapabilityv1.50.0nonelabel value lookups: field_values replaces stream_field_values (drilldown.go)vl/capabilities/column-field-valuesVictoriaLogs v1.50.0 (stream fields in the column index)
vl.stream_metadata_endpointscapabilityv1.30.0 (below the floor: on by default)/select/logsql/stream_field_names (proven crash-safe on v1.49.0 and v1.54.0)label and series metadata: the stream endpoints are tried first (label_metadata.go, label_handlers.go)vl/capabilities/stream-metadata-endpointsVictoriaLogs v1.30.0 (stream_field_names, stream_field_values)
vl.stats_limit_after_statscapabilityv1.51.0/select/logsql/stats_query (proven crash-safe on v1.49.0 and v1.54.0)the refusal prediction of a limit or offset pipe after the last stats pipevl/capabilities/vl-stats-pipe-after-statsVictoriaLogs v1.51.0 (#1296)
vl.pipe_json_array_concatcapabilityv1.52.0nonenothing: documentation only (v1.49 and v1.50 read the pipe as a filter and answer it, so it is never predicted)vl/capabilities/vl-pipe-before-releaseVictoriaLogs v1.52.0 (#712)
vl.range_time_writers_refusedbehaviourv1.53.0/select/logsql/stats_query_range (proven crash-safe on v1.49.0 and v1.54.0)the refusal prediction of a stats_query_range pipe that writes _time ahead of the last stats pipevl/capabilities/vl-stats-range-pipe-before-statsVictoriaLogs v1.53.0 (canReturnLastNResults checks)
vl.math_quoted_constant_clonesafetyv1.53.0nonethe crash guard: a math pipe with a quoted number is never sent to a release without the fix (the v1.52 line stays guarded: its fixed releases are enterprise-only images)vl/capabilities/vl-math-quoted-constant-clone-crashVictoriaLogs v1.53.0 (math quoted constants keep their quotes when printed)
vl.extra_filters_lenbehaviourv1.54.0nonethe refusal prediction of extra_filters and extra_stream_filters longer than -search.maxQueryLenvl/capabilities/vl-extra-filters-too-longVictoriaLogs v1.54.0 (#1923)

Digest and epoch​

The set of gates has a digest: a content hash of the effective release, its flavour and every gate's on and decided bits. It is the same on every replica of the same backend, so the cross-replica keys that depend on the gate set (held VictoriaLogs refusals and their peer sync, the request flight keys) carry it and an entry built under another gate set is a miss. The epoch counts the changes of the set in this process and moves only when the digest does.

Flags​

FlagDefaultMeaning
-backend-version-reprobe-interval5mHow often the release is read again and the gates probed; 0 disables the periodic round
-backend-feature-probestrueRun the feature probes; false decides the gates from the release alone
-backend-version-check-timeout5sTimeout of each probe request
-debug-vl-calls-headerfalseAlso adds the X-Loki-VL-Capabilities response header: the epoch, the digest and the gates that are on