Skip to content

reference configuration

Douwe de Vries edited this page Jul 1, 2026 · 1 revision

Configuration

Load Rift configuration spans npm scripts, Vite, Tauri, k6 installation, and k6 runtime environment variables.

App and build settings

Setting Value Source
Product name Load Rift src-tauri/tauri.conf.json
Version 0.2.13 package.json, src-tauri/tauri.conf.json, src-tauri/Cargo.toml
Tauri identifier dev.loadrift.desktop src-tauri/tauri.conf.json
Frontend dist ../dist src-tauri/tauri.conf.json
Dev URL http://localhost:5173 src-tauri/tauri.conf.json
Dev pre-command npm run install:k6 && npm run dev src-tauri/tauri.conf.json
Build pre-command npm run install:k6 && npm run build src-tauri/tauri.conf.json

Environment variables

Variable Used by Purpose
K6_VERSION scripts/install-k6.sh Overrides the bundled k6 version
K6_SHA256 scripts/install-k6.sh Required checksum when overriding k6 version
LOADRIFT_K6_BIN src-tauri/src/k6/process/runtime.rs Runtime k6 executable override
LOADRIFT_PRESERVE_K6_ARTIFACTS src-tauri/src/k6/process/runtime.rs Preserves per-run artifacts for debugging
LOADRIFT_REQUIRE_BUNDLED_K6_TESTS Rust tests Makes bundled-k6 tests mandatory
TAURI_DEV_HOST vite.config.ts Optional dev host override
TAURI_ENV_PLATFORM vite.config.ts Affects frontend build target
TAURI_ENV_DEBUG vite.config.ts Disables minification and enables sourcemaps when set

k6 runtime inputs

src-tauri/src/k6/process/runtime.rs passes runtime configuration to k6 through environment variables:

Variable Meaning
K6_VUS Virtual users
K6_DURATION Test duration
K6_RAMP_UP instant, gradual, or staged
K6_RAMP_UP_TIME Ramp-up segment duration
K6_P95_THRESHOLD_MS P95 response-time threshold
K6_ERROR_RATE_THRESHOLD_PERCENT Error-rate threshold
AUTH_TOKEN Bearer token input
BASE_URL Base URL override
LOADRIFT_VARIABLE_OVERRIDES_JSON Runtime variable overrides
LOADRIFT_SELECTED_REQUEST_IDS_JSON Selected request IDs
LOADRIFT_REQUEST_WEIGHTS_JSON Per-request weights
LOADRIFT_TRAFFIC_MODE Sequential or weighted
LOADRIFT_ADVANCED_OPTIONS_JSON Advanced k6 options
LOADRIFT_SKIP_BASIC_LOAD_SHAPE Set when advanced options define scenarios, stages, or iterations

See k6 runtime for how these settings are used.

Clone this wiki locally