Configuration Guide #
This document describes the current configuration model used by xburner.
parseFile also supports a file-level directive:
include = "./common.toml"
env_file = "./.env"
Included files are expanded before parsing. Relative paths are resolved from the including file.
env_file entries are loaded before placeholder resolution. Values from env_file override process environment variables with the same key.
Sections #
An xburner config is split into the following sections:
[scenario][execution][[execution.stages]][http][plugins][[setup.requests]][http.defaults][http.defaults.tls][exporters.otlp][[exporters.plugins]][[http.requests]][[thresholds]]
[scenario] #
Fields:
nameprotocoltargetwasmwasm_backendrecovery.windowrecovery.max_recreates
Notes:
- omit
wasmforsimplemode - set
wasmforworkflowmode wasm_backenddefaults towamrwasm_backendmay bewamrorwasm3recovery.windowdefaults to5srecovery.max_recreatesdefaults to3
[execution] #
Fields:
modedurationwarmupsetup_timeoutshutdown_timeoutvusratepre_allocated_vusmax_vusscript_timeoutmax_poisoned_workersthread_count
Modes:
constant-vusconstant-arrival-rateramping-vus
ramping-vus uses [[execution.stages]] instead of vus / rate.
Defaults:
warmup = "0s"script_timeout = "100ms"setup_timeout = "5s"shutdown_timeout = "30s"max_poisoned_workers = 0thread_count = CPU core count
Notes:
thread_countis currently used by the multithreadedsimple+constant-vusrunner- other execution modes currently keep the single-thread path even when
thread_countis set
[[execution.stages]] #
Supported fields:
target_vusduration
Rules:
- each stage
durationmust be positive
[http] #
Supported fields:
versionmax_connectionstransport_plugin
Defaults:
version = "1.1"max_connectionsis unset, which means no pool captransport_pluginis unset
Notes:
versionmay beauto,1.1, or2transport_pluginrequires[plugins].dirautocurrently uses ALPN over TLS and falls back to HTTP/1.1 when the server does not negotiate HTTP/22currently requires TLS targets- this limit applies to the manual TLS keep-alive pool
- when the pool is full, the oldest idle connection is evicted before a new one is opened
[plugins] #
Supported fields:
dir
Defaults:
diris unset
Notes:
dirpoints to a filesystem directory containing plugin manifest JSON files- transport or exporter plugins require this directory to be configured
[[setup.requests]] #
Setup requests run before measurement starts.
Supported fields:
namemethodpathheadersbodystore_body_astimeout_mscapture_body_max_bytes
Rules:
store_body_asmust use thesetup.*namespace
Defaults:
bodyis omitted by defaultstore_body_asis omitted by defaulttimeout_ms = 0, which falls back toexecution.setup_timeoutcapture_body_max_bytes = 0
[http.defaults] #
Supported fields:
use_tlscookie_jarcookie_jar_scopemax_steps_per_iterationheadersconnect_timeout_mstimeout_msdelay_before_mspass_response_bodycapture_body_max_bytes
Defaults:
use_tls = falsecookie_jar = truecookie_jar_scope = "vu"max_steps_per_iteration = 16headers = {}connect_timeout_ms = 0timeout_ms = 0delay_before_ms = 0pass_response_body = falsecapture_body_max_bytes = 0
cookie_jar_scope may be:
vuiteration
Request-level settings inherit these defaults when the request does not set its own value.
Default headers are merged into each request, and request headers override default headers by key.
connect_timeout_ms applies to the manual transport paths. Plain HTTP requests use a one-shot manual path when this setting is enabled, and HTTPS requests switch to the manual TLS path so the connect timeout can be enforced explicitly.
For protocol = "grpc", the same request schema is reused as unary RPC metadata/body config.
gRPC requests must use method = "POST" and cookie_jar = false.
[http.defaults.tls] #
Supported fields:
ca_fileserver_nameinsecure_skip_verify
Defaults:
ca_fileis unsetserver_nameis unsetinsecure_skip_verify = false
[[http.requests]] #
Request templates are used directly by simple mode and referenced by workflow mode via request_id.
For protocol = "grpc", path is the RPC path and headers are sent as gRPC metadata.
Supported fields:
idnamemethodpathheadersconnect_timeout_msbodytimeout_msdelay_before_mspass_response_bodycapture_body_max_bytescheck_status_codecheck_body_containscheck_response_header
Defaults:
- request-level
connect_timeout_ms,timeout_ms,delay_before_ms,pass_response_body, andcapture_body_max_bytesinherit from[http.defaults] bodyis omitted by defaultheaders = {}before default-header merge- built-in checks are disabled by default
[[exporters.plugins]] #
Supported fields:
nameconfig
Defaults:
config = {}
Notes:
nameresolves against manifest files found under[plugins].dirconfigis passed to the plugin as a string key/value mapsamples/plugins/csvcontains a sample CSV exporter plugin manifest and script
Notes:
check_status_codecompares the received HTTP status codecheck_body_containssearches the captured response body for a substringcheck_response_headerchecks header presence by case-insensitive name- enabling
check_body_containsauto-enables host body capture even whencapture_body_max_bytesis otherwise0
[exporters.otlp] #
Supported fields:
urlretry_max_attemptsretry_max_elapsedbuffer_max_exports
Defaults:
retry_max_attempts = 4retry_max_elapsed = "30s"buffer_max_exports = 8
Notes:
- exporter failures are logged but do not change the run exit code
- failed batches stay buffered in memory and are retried on the next export attempt
[[thresholds]] #
Fields:
metricscopeopvalueabort_on_fail
Threshold Metrics #
Currently supported:
http.request.duration.p50http.request.duration.p90http.request.duration.p99http.error_ratehttp.transport.error_totalhttp.transport.error_ratehttp.transport.timeout_totalhttp.transport.timeout_ratehttp.transport.connect_timeout_totalhttp.transport.connect_timeout_ratehttp.transport.io_timeout_totalhttp.transport.io_timeout_ratecheck.failed_totalcheck.pass_rateexecutor.scheduler_lag.avgexecutor.scheduler_lag.maxiteration.droppediteration.success_rate
Threshold Scopes #
Examples:
scope = { request = "login" }
scope = { scenario = "workflow-health" }
scope = { protocol = "http" }
Rules:
- request-scoped thresholds apply only to request metrics
- scenario scope must match the scenario name in the same config
- protocol scope must match the scenario protocol in the same config
Backend Override #
The workflow backend may also be overridden from the CLI:
xburner validate --wasm-backend wasm3 path/to/scenario.toml
xburner run --wasm-backend wamr path/to/scenario.toml
Samples #
See: