Skip to main content

Environment variables

To configure Weaviate in a Docker or a Kubernetes deployment, set these environment variables

General

VariableDescriptionTypeExample Value
ASYNC_INDEXING(Experimental as of v1.22.)

If set, Weaviate creates vector indexes asynchronously to the object creation process. This can be useful for importing large amounts of data. (default: false)
booleanfalse
AUTOSCHEMA_ENABLEDWhether to infer the schema where necessary with the autoschema (default: true)booleantrue
BACKUP_*Various configuration variables for backup provider modules. They are outlined in detail on the Backups page.
DEFAULT_VECTORIZER_MODULEDefault vectorizer module - will be overridden by any class-level value defined in the schemastringtext2vec-contextionary
DISABLE_LAZY_LOAD_SHARDSNew in v1.23. When false, enable lazy shard loading to improve mean time to recovery in multi-tenant deployments.stringfalse
DISABLE_TELEMETRYDisable telemetry data collectionbooleanfalse
DISK_USE_WARNING_PERCENTAGEIf disk usage is higher than the given percentage a warning will be logged by all shards on the affected node's disk. See Disk Pressure Warnings and Limits for details.string - number80
DISK_USE_READONLY_PERCENTAGEIf disk usage is higher than the given percentage all shards on the affected node will be marked as READONLY, meaning all future write requests will fail. See Disk Pressure Warnings and Limits for details.string - number90
ENABLE_MODULESWhich modules to enable in the setup?comma-separated list of stringstext2vec-openai,generative-openai
GOMEMLIMITSet the memory limit for the Go runtime. This should match your available memory, such as 10-20% of your total memory for Weaviate. The Go runtime tries to make sure that long-lived and temporary memory allocations do not exceed this value by making the garbage collector more aggressive as the memory usage approaches the limit. Learn more about GOMEMLIMIT.string - memory limit in SI units4096MiB
GOMAXPROCSSet the maximum number of threads that can be executing simultaneously. If this value is set, it be respected by LIMIT_RESOURCES.string - numberNUMBER_OF_CPU_CORES
GODEBUGControls debugging variables within the runtime. See official Go docs.string - comma-separated list of name=val pairsgctrace=1
LIMIT_RESOURCESIf true, Weaviate will automatically attempt to auto-detect and limit the amount of resources (memory & threads) it uses to (0.8 * total memory) and (number of cores-1). It will override any GOMEMLIMIT values, however it will respect GOMAXPROCS values.booleanfalse
LOG_LEVELSets the Weaviate logging level. Default: info

panic: Panic entries only. (new in v1.24)
fatal: Fatal entries only. (new in v1.24)
error: Error entries only. (new in v1.24)
warning: Warning entries only. (new in v1.24)
info: General operational entries.
debug: Very verbose logging.
trace: Even finer-grained informational events than debug.
string
LOG_FORMATSet the Weaviate logging format

Default: Outputs log data to json. e.g.: {"action":"startup","level":"debug","msg":"finished initializing modules","time":"2023-04-12T05:07:43Z"}
text: Outputs log data to a string. e.g. time="2023-04-12T04:54:23Z" level=debug msg="finished initializing modules" action=startup
string
ORIGINSet the http(s) origin for Weaviatestring - HTTP originhttps://my-weaviate-deployment.com
PERSISTENCE_DATA_PATHWhere should Weaviate Standalone store its data?string - file path/var/lib/weaviate
PERSISTENCE_LSM_ACCESS_STRATEGYFunction used to access disk data in virtual memorystringmmap (default) or pread
DISK_USE_WARNING_PERCENTAGEIf disk usage is higher than the given percentage a warning will be logged by all shards on the affected node's disk. See Disk Pressure Warnings and Limits for details.string - number80
DISK_USE_READONLY_PERCENTAGEIf disk usage is higher than the given percentage all shards on the affected node will be marked as READONLY, meaning all future write requests will fail. See Disk Pressure Warnings and Limits for details.string - number90
ASYNC_INDEXING(Experimental as of v1.22.)

If set, Weaviate creates vector indexes asynchronously to the object creation process. This can be useful for importing large amounts of data. (default: false)
string - true/falsefalse
REINDEX_SET_TO_ROARINGSET_AT_STARTUPAllow Weaviate to perform a one-off re-indexing to use Roaring Bitmaps.

Available in versions 1.18 and higher.
string - true/falsetrue
PROMETHEUS_MONITORING_ENABLEDIf set, Weaviate will collect metrics in a Prometheus-compatible formatstring - true/falsefalse
PROMETHEUS_MONITORING_GROUPIf set, Weaviate will group metrics for the same class across all shards.string - true/falsetrue
BACKUP_*Various configuration variables for backup provider modules. They are outlined in detail on the Backups page.
MODULES_CLIENT_TIMEOUTTimeout for requests to Weaviate modules. Default: 50sstring - duration5s, 10m, 1h
ORIGINSet the http(s) origin for Weaviatestring - HTTP originhttps://my-weaviate-deployment.com
PERSISTENCE_DATA_PATHPath to the Weaviate data storestring - file path/var/lib/weaviate
Starting in v1.24, defaults to ./data
PERSISTENCE_LSM_ACCESS_STRATEGYFunction used to access disk data in virtual memorystringmmap (default) or pread
QUERY_MAXIMUM_RESULTSSets the maximum total number of objects that can be retrieved.string - number10000
QUERY_DEFAULTS_LIMITSets the default number of objects to be returned in a query.string - number25
Starting in v1.24, defaults to 10
REINDEX_SET_TO_ROARINGSET_AT_STARTUPAllow Weaviate to perform a one-off re-indexing to use Roaring Bitmaps.

Available in versions 1.18 and higher.
booleantrue
PROMETHEUS_MONITORING_ENABLEDIf set, Weaviate will collect metrics in a Prometheus-compatible formatbooleanfalse
PROMETHEUS_MONITORING_GROUPIf set, Weaviate will group metrics for the same class across all shards.booleantrue

Module-specific

VariableDescriptionTypeExample Value
CONTEXTIONARY_URLService-Discovery for the contextionary containerstring - URLhttp://contextionary
TRANSFORMERS_INFERENCE_APIThe endpoint where to reach the transformers module if enabledstringhttp://t2v-transformers:8080
CLIP_INFERENCE_APIThe endpoint where to reach the clip module if enabledstringhttp://multi2vec-clip:8000
IMAGE_INFERENCE_APIThe endpoint where to reach the img2vec-neural module if enabledstringhttp://localhost:8000
USE_SENTENCE_TRANSFORMERS_VECTORIZER(EXPERIMENTAL) Use the sentence-transformer vectorizer instead of the default vectorizer (from the transformers library). Applies to custom images only.booleantrue

Authentication and authorization

VariableDescriptionTypeExample Value
AUTHENTICATION_ANONYMOUS_ACCESS_ENABLEDAllow users to interact with weaviate without authbooleantrue
Starting in v1.24, defaults to true
AUTHENTICATION_APIKEY_ENABLEDEnable API key-based authenticationbooleanfalse
AUTHENTICATION_APIKEY_ALLOWED_KEYSAllowed API keys.

Each key corresponds to a specific user identity below.
string - comma-separated listjane-secret-key,ian-secret-key
AUTHENTICATION_APIKEY_USERSAPI key-based identities.

Each identity corresponds to a specific key above.
string - comma-separated listjane@doe.com,ian-smith
AUTHENTICATION_OIDC_ENABLEDEnable OIDC-based authenticationbooleanfalse
AUTHENTICATION_OIDC_ISSUEROIDC Token Issuerstring - URLhttps://myissuer.com
AUTHENTICATION_OIDC_CLIENT_IDOIDC Client IDstringmy-client-id
AUTHENTICATION_OIDC_USERNAME_CLAIMOIDC Username Claimstringemail
AUTHENTICATION_OIDC_GROUPS_CLAIMOIDC Groups Claimstringgroups
AUTHORIZATION_ADMINLIST_ENABLEDEnable AdminList Authorization modebooleantrue
AUTHORIZATION_ADMINLIST_USERSUsers with admin permissionstring - comma-separated listjane@example.com,john@example.com
AUTHORIZATION_ADMINLIST_READONLY_USERSUsers with read-only permissionstring - comma-separated listalice@example.com,dave@example.com

Multi-node instances

VariableDescriptionTypeExample Value
CLUSTER_HOSTNAMEHostname of a nodestringnode1
CLUSTER_GOSSIP_BIND_PORTPort for exchanging network state information.string - number7102
CLUSTER_DATA_BIND_PORTPort for exchanging data.string - number7103
CLUSTER_JOINThe service name of the "founding" member node in a cluster setupstringweaviate-node-1:7100

Questions and feedback

If you have any questions or feedback, let us know in our user forum.