You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first version of the plugin store (#550) bounds growth only by the entry size and a mandatory maximum TTL. A plugin that writes many distinct keys can still fill the database within one TTL window.
Proposal
Operator setting max_namespace_size (bytes) in plugins.defaults.store and per plugin.
Track the size per namespace approximately: a counter document per namespace, updated with $inc on set and delete; over the limit, set raises StoreError.
TTL expiry leaves the counter too high, so recount periodically (aggregate on {ns: 1}) at startup and every few minutes.
In-memory store: LRU eviction at the limit.
On hold until there is a need for it.
Done when
the limit is configurable, enforced by both backends, documented and tested (100% coverage).
Activity