Skip to content

Cache component instances on a Motion server, within a memory budget #265

@shreyashankar

Description

@shreyashankar

Currently component instances are flushed and shut down, but we may benefit from keeping instances alive because the state won't have to load again. Some things to consider:

  • There's a budget for what we can keep in memory
  • If we keep a component in memory for too long, it can become stale

For the first bullet, we can write some algorithm that prioritizes keeping large & frequently-accessed components in memory.

For the second bullet, we can check our version against the latest version in Redis, and if the component is stale, we can refresh it.

Metadata

Metadata

Assignees

Labels

XLXtra large task, > 1 weekresearch

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions