LGTM Enterprise 1.21.1

Environment variables

LGTM Enterprise has built-in environment variables which you can use to configure worker host machines.

The value of any environment variable that you specify in the cluster configuration file can be set either for a single worker host machine, or for the whole work pool. For information about setting environment variables and using labels to determine which projects are analyzed on each worker host, see Setting environment variables for worker hosts.

Variable

Details
LGTM_CREDENTIALS_PASSWORD

Purpose: if you set a custom manifest password when you installed LGTM, the lgtm-config-gen.jar tool and upgrade.sh script prompt you to supply this password. Use this variable to provide the password if you run these commands programmatically—for example, by using Ansible.

Specify: using the standard method for defining environment variables on the coordination server.

Default: undefined. The lgtm-config-gen.jar tool and the upgrade.sh script will use the default encryption password. If this fails, you are prompted for a password.

LGTM_RAM

Purpose: override the amount of memory available for each worker daemon to run LGTM analysis.

Specify: in the cluster configuration file using the environment property. The value must be an integer. It is interpreted as the maximum number of 1024-based megabytes available for analysis.

Default: if this variable is undefined, memory is limited to 6656 MB for each worker daemon.

LGTM_THREADS

Purpose: set the number of threads used by worker daemons. Use this variable to enable LGTM analysis to run in parallel.

Specify: in the cluster configuration file using the environment property. The value must be an integer.

Default: if this variable is undefined, analysis is run using a single thread.

Related topicsRelated topics