Skip to content

nats streams max age should be configured #267

@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_activitylog --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_ids-storage-users --max-age=24h
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

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 opencloud-eu/opencloud#2512

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions