Skip to content

nats streams max age should be configured #2681

@butonic

Description

@butonic

Disk usage of nats streams on disk (or in memory) might grow large. We can forget old kv entries and messages in nats by configuring the streams manually.

  1. persistent stores
nats stream edit main-queue --max-age=7d
nats stream edit KV_postprocessing --max-age=7d
nats stream edit KV_userlog --max-age=14d
nats stream edit KV_eventhistory --max-age=14d
  1. cache stores
nats stream edit KV_cache-userinfo --max-age=10s
nats stream edit KV_service-registry --max-age=30s
nats stream edit KV_storage-users --max-age=24h
nats stream edit KV_storage-system --max-age=24h
nats stream edit KV_cache-roles --max-age=24h
nats stream edit KV_proxy --max-age=24h
nats stream edit KV_opencloud-pkg --max-age=24h
nats stream edit KV_settings-cache --max-age=10m

Acceptance Criteria:

  • TTL Settings are applied at start up
  • doublecheck default values

Maybe someone can do this with compose once the opencloud container is running. It contains nats. Or we configure the streams properly when using the nats-go package directly, after #2512

Metadata

Metadata

Assignees

Type

No type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions