Skip to main content

Expiry configuration

[expiry]​

The sweeps that delete what is past its expiresAt.
[expiry]
sweep_interval = "30s"
batch_size = 1000

expiry.sweep_interval​

non-zero durationrestart to apply

How often the expiry sweeps run, over entities and their attributes, subscriptions, context source registrations, Snapshots and Entity Maps. An expired resource may stay in storage for up to one interval, but the API never serves it.

Default
"30s"
Must be
0 < sweep_interval
Environment variable
ANDROMEDA__EXPIRY__SWEEP_INTERVAL

expiry.batch_size​

positive integerrestart to apply

The most expired entities, or entities with expired attributes, one step of the entity sweep reads.

Default
1000
Must be
0 < batch_size
Environment variable
ANDROMEDA__EXPIRY__BATCH_SIZE