Agent State
Last updated
Last updated
The agent keeps most of its state in memory.
However, some information is persisted to ensure that the agent can recover from a restart.
The default state provider is a file-based provider that stores the agent's state by default in the directory /var/lib/steadybit-agent
. The path can be configured via the STEADYBIT_AGENT_STATE_PATH
environment variable. The helm chart is, by default, creating a statefulset with a persistent volume claim to store the agent's state.
Another option is to use as a state provider. The following set of environment variables can be used to configure this.
Environment Variable | Required | Description |
---|
The agent persists extension registrations to ensure they are not lost after a restart. Extension registrations can be maintained via the agent API, see .
If redis is used as the state provider, existing file-based extension registrations are ignored.
Auto discovered extensions from Kubernetes are independently registered and not persisted via the configured persistence provider. They are also not visible or manageable via the agent API.
The agent keeps track of an experiment's current execution state. This state is persisted so that actions can be rolled back in case of an agent restart.
| yes | The unique agent identifiert, required if |
| yes | Needs to be set to |
| yes | The redis host |
| no | The redis port, defaults to |
| no | The redis username |
| no | The redis password |
| no | The redis database, defaults to |
| no | Should SSL be used |