AIStore Environment Variables
Introduction
AIStore (AIS) operators and developers can use this page to find environment variables and understand their place among configuration sources:
- Cluster (global) and node (local) configuration, including local overrides of inherited cluster configuration.
aisnodecommand-line options.- Environment variables, covered on this page.
- Low-level constants (hardcoded defaults) that rarely need to change.
This list excludes bucket configuration. New AIS buckets receive a snapshot of applicable cluster defaults at creation; changing cluster configuration does not update the properties of existing buckets. You can set bucket properties at creation or change them later per bucket.
For additional sources, refer to References. The rest of this page covers only environment variables, item 3 above.
Rules
Environment variables have different consumers and precedence rules. Check the setting and deployment path before relying on an override:
- The daemon reads some variables at runtime or startup, such as
AIS_READ_HEADER_TIMEOUT(instead of theapc.ReadHeaderTimeoutconstant) andAIS_DAEMON_ID(a startup node-ID override). These do not establish a general rule for persisted cluster configuration. - CLI and other client tools read their own environment settings, such as
AIS_ENDPOINTand client TLS variables. These settings do not change daemon configuration. - Deployment generators use variables such as
AIS_USE_HTTPSto create initial configuration. The daemon loads persisted cluster configuration when available, rather than reapplying those generator inputs on restart. To change an existing cluster’s HTTPS mode, follow Switching cluster between HTTP and HTTPS.
Some variables are required in particular environments, such as the Kubernetes variables listed below; do not assume every setting is optional.
Table of Contents
The remainder of this text groups AIS environment variables by their respective usages, and is structured as follows:
- Build Tags
- Primary
- Network
- Node
- HTTPS
- Local playground
- Kubernetes
- Package: backend
- Package: stats
- Package: memsys
- Package: transport
separately, there’s authentication server config:
and finally:
Build Tags
Different AIS builds may (or may not) require different environment vars. For complete list of supported build tags, please see conditional linkage. Here’s a very brief and non-exhaustive intro:
Primary
Background: in a running AIS cluster, at any point in time there’s a single primary gateway that may also be administratively selected, elected, reelected. Hence, two related variables:
Network
Node
See also:
HTTPS
At first it may sound slightly confusing, but HTTP-wise AIS is both a client and a server.
All nodes in a cluster talk to each other using HTTP (or HTTPS) - the fact that inevitably implies a certain client-side configuration (and configurability).
For a new local playground deployment, the generator writes the following values into the daemon’s initial net.http configuration:
For example, set AIS_USE_HTTPS=true before a fresh make deploy. These inputs do not override existing persisted net.http configuration. Daemon listeners use net.http TLS settings, including client_ca_tls and client_auth_tls for server-side client authentication. Embedded intra-cluster clients also derive their TLS settings from net.http, not from AIS_CRT or AIS_CLIENT_CA. Refer to Public and intra-cluster TLS configuration.
CLI and other tools that call EnvToTLS read the following client-side environment variables; they do not configure daemon intra-cluster clients:
Further references
- Generating self-signed certificates
- Deploying: 4 targets, 1 gateway, 6 mountpaths, AWS backend
- Accessing HTTPS-based cluster
- Testing with self-signed certificates
- Observability: TLS related alerts
- Updating and reloading X.509 certificates
- Switching cluster between HTTP and HTTPS
Local playground
This group of environment variables is used exclusively by development scripts and integration tests.
See also:
Kubernetes
Kubernetes POD name is also reported via ais show cluster CLI - when it is a Kubernetes deployment, e.g.:
The aisinit init container, which generates node configuration in Kubernetes deployments, reads its own variables - for example, AIS_PUBLIC_HOSTNAME and AIS_PUBLIC_HOSTNAME_OVERRIDE (which, when set, takes precedence over all other public-hostname rules). See aisinit.
See related:
AWS S3
NOTE: for the most recent updates, please refer to the source.
Package: backend
AIS natively supports 3 (three) Cloud storages.
The corresponding environment “belongs” to the internal backend package and includes:
Notice in the table above that the variables S3_ENDPOINT and AWS_PROFILE are designated as global: cluster-wide.
The implication: it is possible to override one or both of them on a per-bucket basis:
AIS as S3 storage
Environment S3_ENDPOINT is important, and may also be a source of minor confusion. The reason: AIS itself provides S3 compatible interface.
For instance, on the client side you could say something like:
and then run existing S3 applications against an AIS cluster at 10.0.4.53 - with no changes (to the application).
Moreover, configure AIS to handle S3 requests at its ”/” root:
and re-specify S3_ENDPOINT environment to make it looking slightly more conventional:
To recap:
- use
S3_ENDPOINTto override thes3.amazonaws.comdefault; - specify
AWS_PROFILEto use a non-default (named) AWS profile
and separately:
- you could run existing S3 apps (with no changes) against AIS by using
S3_ENDPOINTon the client side
See also:
Package: stats
AIStore is a fully compliant Prometheus exporter.
StatsD was deprecated in v3.28 (Spring 2025) and completely removed in v4.0 (September 2025).
Package: memsys
Package: transport
See also: streaming intra-cluster transport.
AuthN
AIStore Authentication Server (AuthN) provides secure access control to AIStore via JSON Web Tokens.
A single AuthN service can support multiple AIS clusters, with no fixed limit.
The following variables can be used to configure deployment scripts and validation of tokens in AIStore:
For configuring the AuthN service and clients, see the AuthN Environment Variables.
When AuthN is disabled (i.e., not used), the respective ais config command will show something like:
Notice: this command is executed on the AIStore cluster, not AuthN.
See also: