Configure
The ALCHEMI VASP microservice provides configuration options that control the calculations that are run and how they are executed.
Backend Environment Variables
The backend manages executing the tasks. Configure it using the following environment variables:
Performance Tuning
The microservice defaults to running as many tasks as possible on the system. This may not be optimal for all workloads.
Determine the optimal settings by first reducing the number of concurrent tasks
on the CPUs by setting ALCHEMI_MAX_CPUS_PER_CORE to 1 if your system has
multiple threads per core.
Then reduce the number of concurrent tasks on the GPUs by setting
ALCHEMI_MAX_JOBS_PER_GPU to a fixed number. Use values between 8 and 16
for most workloads.
Managing Disk Space
Control the amount of disk space used by the service through controlling either the number of output files retained from completed tasks or quotas for the input files used by new tasks.
Output File Retention
The ALCHEMI_OUTPUT_RETENTION environment variable defines the
maximum number of output file sets to retain per replica.
There are no explicit limits to the amount of disk space used by output files.
Input File Quotas
Input files used in calculations are provided by pre-staging them through
the POST /input/upload endpoint or as part of the inference request
sent to POST /submit or POST /infer.
Manage the disk space available for pre-staged files by
ALCHEMI_INPUTS_CAPACITY variable.
Like the outputs, the capacity is defined per replica so that
the disk capacity scals as more replicas are created.
Restrict the volume of input files provided as part of inference requests
by limiting the disk space via ALCHEMI_INLINE_FILE_MAX_MB and
ALCHEMI_INLINE_FILES_MAX_MB or the number allowed via
ALCHEMI_INLINE_FILES_MAX_COUNT.
Rate Limiting
Control the number of calculations which the service will
run at one time through ALCHEMI_MAX_PENDING_REQUESTS.
Pending requests include both the tasks currently running
on the GPUs and those which are waiting for GPU
resources to become available.