Skip to content

Runtime configuration ​

This page lists the environment settings, command options, and deployment properties of the WSR runtime, with their precedence, limits, and the status endpoint.

Environment settings ​

Use environment settings for Kubernetes and OpenShift. CLI options override these settings. Generic --property values also override them. Environment settings override an optional properties file.

Environment variableSetting
WSR_SEMANTIC_ROUTEPublished semantic route name
WSR_BARN_URLBarn management URL
WSR_REGISTRATION_URLWanaku management URL
WSR_MCP_ADDRESSMCP address that Wanaku can reach
WSR_BINDMCP listener address
WSR_MCP_PORTMCP listener port
WSR_NAMEWanaku forward name
WSR_NAMESPACEWanaku namespace
WSR_DATA_DIRInitialization and catalog storage directory
WSR_WORK_DIRECTORYCatalog storage directory only
WSR_CATALOG_REVISIONOptional fixed publication revision
WSR_CATALOG_SHA256Optional publication digest constraint
WSR_CATALOG_NAMEOptional catalog name constraint
WSR_CATALOG_SERVICEOptional catalog service constraint
WSR_CATALOG_MAINOptional main file constraint
WSR_STATUS_BINDStatus listener address
WSR_STATUS_PORTStatus listener port
WSR_HTTP_TIMEOUT_MSComplete HTTP operation timeout
WSR_AUDIT_ENABLEDCapture and forward runtime audit records; default true
WSR_AUDIT_URLOptional complete audit ingestion URL
WSR_BARN_TOKEN_ENVName of the Barn token environment variable
WSR_WANAKU_TOKEN_ENVName of the Wanaku token environment variable

Use WSR_MCP_ADDRESS with a listener that binds to a non-loopback address. WSR derives a local MCP address only for a loopback listener. The token settings contain environment variable names. Put the token values in separate Secret-backed environment variables.

Runtime options ​

The CLI uses CIC option names where the settings match. Runtime options map to these deployment properties:

OptionPropertyDefault
--semantic-routewsr.semantic-routeRequired for route-name mode
--barn-urlwsr.barn.urlLocal default in route-name mode; required with explicit catalog mode
--registration-url, --wanaku-urlwsr.wanaku.urlLocal default in route-name mode; required with explicit catalog mode
--service-catalog, --catalog-namewsr.catalog.nameResolved from the route; required with explicit catalog mode
--service-catalog-system, --catalog-servicewsr.catalog.serviceservice
--catalog-revisionwsr.catalog.revisionCurrent published revision; required with explicit catalog mode
--catalog-sha256wsr.catalog.sha256Resolved from the route; required with explicit catalog mode
--catalog-mainwsr.catalog.mainCatalog index selection
--name, --forward-namewsr.forward.nameRoute name, or published tool name if the route name is not a valid identifier; required with explicit catalog mode
--namespacewsr.forward.namespacedefault
--mcp-addresswsr.mcp.addressLoopback listener address in route-name mode; required for a non-loopback listener or explicit catalog mode
--mcp-port, --portwsr.port8090
--bindwsr.bind127.0.0.1
--status-portwsr.status.port8091
--status-bindwsr.status.bind127.0.0.1
--http-timeout-mswsr.http.timeout-ms30000
--work-directorywsr.work-directoryJava temporary directory
--barn-token-envwsr.barn.token-envNo token
--wanaku-token-envwsr.wanaku.token-envNo token

--barn-token-env and --wanaku-token-env take environment variable names. They do not take token values. Use --expert NAME=CLASS to enable each expert. Its name must match the definition's expert bean name. Named expert options replace the enabled expert list from a file or generic property. Use --property KEY=VALUE (-p) for provider settings or other deployment properties. The value can contain =. Quote Camel environment references to preserve their characters.

An explicit --data-dir also selects runtime catalog storage. An explicit --work-directory overrides that storage selection. Without either option, WSR uses wsr.work-directory from the configuration or the Java temporary directory.

Optional properties file ​

Existing deployment files remain supported. Use one positional file or --config FILE. Do not supply both forms. File settings apply first. Environment settings override them. Repeatable --property values override both sources. Named options override all earlier sources. Argument order does not change this precedence. The last value wins for a repeated property key. Supply each named scalar option once. Repeated scalar options return a usage error.

sh
java -jar target/wanaku-semantic-router-0.3.0-SNAPSHOT.jar runtime \
  --config /etc/wsr/runtime.properties --mcp-port 8090

The example files are config/runtime.properties.example and config/preview.properties.example.

wsr.catalog.service is the index service key. Barn's generated catalogs use service. wsr.catalog.main is optional. When set, it must match the selected index main file. The runtime accepts no latest revision. Do not change a running instance's catalog files.

Timeouts and limits ​

wsr.http.timeout-ms limits each complete Barn or Wanaku HTTP operation. The limit includes response-body receipt. The default is 30000 ms. A timed-out operation cancels its response transfer. MCP initialization and discovery have 10-second limits. The complete readiness check has a 20-second limit. Its cleanup wait has a 5-second limit. Failed startup stops Camel and closes its MCP server. Barn and Wanaku HTTP response bodies have a 48 MiB size limit. Route resolution metadata has a 1 MiB size limit.

Status endpoint ​

The status endpoint defaults to http://127.0.0.1:8091/api/v1/status. Its response contains state, revision, digest, camelVersion, and forwardName. It includes catalogCamelBuild when the catalog supplies build metadata. This field describes the publication, not the runtime binaries. A startup failure writes the same fields and the failure type to standard error. It also writes them to /dev/termination-log when that file is writable. It exits with a failure status. The status listener also serves the health probes. WSR checks its instance label before it removes an attempted registration. This check also applies when Wanaku accepts the POST but its response is lost or invalid.

Next steps ​