Share

Environment variables

Environment variables are defined as part of the global configuration file, ComputeService.config.json. Simulation Compute Manager environment variables override service parameters and apply to all versions of SCM installed.

Variable Value Explanation
SCM_JOBS_TIMEFRAME

Cloud jobs timeframe in milliseconds

Defines how old the jobs that are pulled from the cloud will be. Default = 2592000000 (30 days)

SCM_KEEP_TEMP

Any non-empty string

Prevents the worker from cleaning the solvers working directory at the end of a solve

SCM_WORKING

Folder name

Directs to temporary working folder (overrides default location of /tmp)

SCM_CONSOLE

1

This opens a separate console to view stdout of SCM services (when SimulationCompute is not invoked as a daemon/service)

SCM_DATAPATH

Folder name

Sets where the SCM log and database folders will be written to

SCM_NETWORK_THREADS

Number of threads

Maximum number of threads that are allowed to run concurrently when uploading/downloading files. Can be used for optimization and troubleshooting in case of network issues.

SCM_OSS_TIMEOUT

Timeout value (seconds)

How long to validate uploaded asset to OSS service. Default = 600 seconds (10 minutes).

SCM_CONN_TIMEOUT

Timeout value (microseconds)

Time to initiate HTTP connection for a REST request. Default = 30000000 (30 seconds).

SCM_SEND_TIMEOUT

Timeout value (microseconds)

Time to send request over HTTP connection. Default = 60000000 (60 seconds).

SCM_RECV_TIMEOUT

Timeout value (microseconds)

Time to receive response over HTTP connection. Default = 60000000 (60 seconds).

SCM_RETRIES

Number of retries

How many attempts allowed to upload/download a file (failure recovery). Default = 10 times.

SCM_PROXY

[protocol=]server:port or fully qualified domain name (FQDN)

Define Proxy IP Address and Port number in System variable

Was this information helpful?