Client Environment Variables

The Scaleout Edge Python client can be configured through environment variables. These are defined in scaleout-util and apply when running a client via the Command-Line Interface (CLI) or the Python SDK.

Variable

Default

Description

SCALEOUT_ARCHIVE_DIR

.scaleout/archive

Directory where the client stores archived model checkpoints and artifacts.

SCALEOUT_AUTH_SCHEME

Bearer

HTTP authentication scheme used in the Authorization header when calling the API.

SCALEOUT_AUTH_REFRESH_TOKEN_URI

(unset)

URI endpoint used to refresh the access token. If unset, token refresh is disabled.

SCALEOUT_AUTH_REFRESH_TOKEN

(unset)

Refresh token value used together with SCALEOUT_AUTH_REFRESH_TOKEN_URI. If unset, token refresh is disabled.

SCALEOUT_CONNECT_API_SECURE

true

Whether to connect to the API over TLS (true/false). Set to false for local non-TLS deployments.

SCALEOUT_CUSTOM_URL_PREFIX

(empty)

URL prefix prepended to all API requests. Useful when the API is hosted under a sub-path.

SCALEOUT_PACKAGE_EXTRACT_DIR

package

Directory where the client extracts the downloaded compute package.

SCALEOUT_GRACEFUL_GRPC_HANDLING

true

Whether the client handles gRPC disconnections gracefully and attempts reconnection (true/false).

SCALEOUT_CHECK_COMPATIBILITY

true

Whether the client checks version compatibility with the server on connect (true/false).

SCALEOUT_CLIENT_STATUS_REPORTING

true

Whether the client sends status updates to the server during commands (true/false).

SCALEOUT_CLIENT_SEND_TELEMETRY

true

Whether the client sends telemetry data, CPU and memory usage (true/false).

SCALEOUT_CLIENT_TASK_POLLING_INTERVAL

5

Interval in seconds between task polling requests from the client to the server. Lower values may reduce task start latency but increase API load.

Usage example

Set variables before starting the client:

  • Unix/MacOS
  • Windows (PowerShell)
  • Windows (CMD)
export SCALEOUT_PACKAGE_EXTRACT_DIR=/tmp/package
export SCALEOUT_CLIENT_TASK_POLLING_INTERVAL=10
export SCALEOUT_CONNECT_API_SECURE=false
scaleout client start --api-url <API_URL> --token <TOKEN>
$env:SCALEOUT_PACKAGE_EXTRACT_DIR="/tmp/package"
$env:SCALEOUT_CLIENT_TASK_POLLING_INTERVAL="10"
$env:SCALEOUT_CONNECT_API_SECURE="false"
scaleout client start --api-url <API_URL> --token <TOKEN>
set SCALEOUT_PACKAGE_EXTRACT_DIR=/tmp/package
set SCALEOUT_CLIENT_TASK_POLLING_INTERVAL=10
set SCALEOUT_CONNECT_API_SECURE=false
scaleout client start --api-url <API_URL> --token <TOKEN>

Note

Boolean variables accept true or false (case-insensitive).

See also

Command-Line Interface (CLI) for the full list of scaleout client commands.