Simulation Compute Manager Configuration

Configuration Files

ComputeService.config.json is the global configuration file for the Simulation Compute Manager services. It includes environments, monikers, service parameters, urls, and service definitions. Global service parameters apply to all services. Service parameters defined within a service definition define the parameter for only that service.

Working With Environment Variables

Simulation Compute Manager environment variables override service parameters.

For Insight Linux Thinclient installs the user must set the environment variables and then restart the daemon manually.

Environment variables for Insight Linux Workstation installations, in which SCM is running as a systemctl managed service, must have environment variables set so that they are visible to the service. This can be done with either of the methods below.

  1. Editing the /usr/lib/systemd/system/adskscm.service file directly.

  2. Editing the service with the systemctl edit command.

Service Parameters

Variable Value Explanation
eol

End-Of-Life for jobs and storage files (days)

After how many days should old jobs and their assets (files) be purged from the database

port

Port number for HTTP service

Sets the port number for that service

endpoint

Can be ComputeService, ComputeQueue, ComputeProvisioner

SCM service name when executable is SimulationCompute

httpsprivatekey

SSL private key

HTTPS private key. Required to run in HTTPS protocol

httpscertificate

SSL Certificate

HTTPS certificate. Required to run in HTTPS protocol

logdefaultlevel

Can be none, fatal, critical, error, warning, notice, information, debug, trace

Log file default level

Environment Variables

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.

Enabling HTTPS

Enable HTTPS by adding the full paths to the Certificate and Key in the ComputeService.config.json file for the STORAGE, QUEUE, and PROVISIONER services using the httpscertificate and httpsprivatekey service parameters.

  1. The Certificate and Key must be in PEM format.
  2. Self-signed certificates are not currently supported by Simulation Compute Manager.
  3. The Simulation Compute Manager service must be restarted after editing the configuration file.