Skip to content

[datalayer] Handle state loss on restart #86

@Mohammad-nassar10

Description

@Mohammad-nassar10

Problem Statement

The in-memory DataStore resets to zero on restart, losing all accumulated state (running request counters, latency histograms, etc.). Any extractor that builds up state over time is affected.

Proposed Solution

Options to explore

  • Persist a snapshot to a ConfigMap or file on shutdown, reload on start
  • Add a warm-up period where the selector treats the store as unreliable
  • Replace in-memory store with a persistent backend (Redis, etc.)

Alternatives Considered

No response

Willingness to Contribute

Yes, I can submit a PR

Additional Context

Related to #42

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions