Skip to main content
In addition to configuring instance-level settings through the System Settings admin UI, W&B also provides a way to configure these values in code using environment variables. This page lists the environment variables you can set to control database, storage, Redis, identity provider, and other instance-level behavior for a self-managed W&B Server deployment. You can use these variables to manage configuration as code instead of through the admin UI. For IAM-specific variables, see advanced configuration for IAM.

Environment variable reference

The following table describes each environment variable, the behavior it controls, and any constraints on its value.
  • Use the GORILLA_DATA_RETENTION_PERIOD environment variable cautiously. It applies to deleted run data (including run-associated files such as media after deletion flows). It does not delete artifacts; use artifact deletion and GORILLA_ARTIFACT_GC_ENABLED as described in Delete an artifact. For how deleting runs and files relates to storage and this setting, see When deleted run data is removed from storage in Delete runs. Data is removed according to the retention window once the variable is set. Back up both the database and the storage bucket before you enable or change this value. Background removal of objects from your bucket is approximate and not guaranteed to finish within a specific time. For expectations, troubleshooting, and how this relates to storage costs, see Manage bucket storage and costs.
  • To enable GRAPHQL_REJECT_UNAUTHED_REQUESTS with the Kubernetes Operator, set it on the API component only:
    Apply your changes and wait for the API pods to roll out before you verify the setting. You can disable the behavior by removing the variable or setting it to another value.

Advanced reliability settings

The following section describes optional configuration you can apply to improve the reliability and performance of your W&B Server deployment.

Redis

An external Redis server is optional but recommended for production systems. Redis helps improve the reliability of the service and enables caching to decrease load times, especially in large projects. Use a managed Redis service such as ElastiCache with high availability (HA) and the following specifications:
  • Minimum 4 GB of memory, suggested 8 GB
  • Redis version 6.x
  • In transit encryption
  • Authentication enabled
To configure the Redis instance with W&B, go to the W&B settings page at http(s)://YOUR-W&B-SERVER-HOST/system-admin. Enable the Use an external Redis instance option, and fill in the Redis connection string in the following format:
Configuring REDIS in W&B
You can also configure Redis using the environment variable REDIS on the container or in your Kubernetes deployment. Alternatively, you can set up REDIS as a Kubernetes secret. This page assumes the Redis instance is running at the default port of 6379. If you configure a different port, set up authentication, and want TLS enabled on the redis instance, the connection string format is: redis://$USER:$PASSWORD@$HOST:$PORT?tls=true