Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Katalogus caching in the scheduler #3357

Open
jpbruinsslot opened this issue Aug 13, 2024 · 1 comment
Open

Katalogus caching in the scheduler #3357

jpbruinsslot opened this issue Aug 13, 2024 · 1 comment
Assignees
Labels
katalogus mula Issues related to the scheduler tech-debt

Comments

@jpbruinsslot
Copy link
Contributor

jpbruinsslot commented Aug 13, 2024

The sophisticated caching and filtering in the scheduler can perhaps be optimized by:

  • Adding more API filtering options in the Katalogus that would resolve creating 3 separate caches in the scheduler
  • Adding ETag (Entity Tag) or Last-Modified headers to katalogus to invalidate internal katalogus state in the scheduler instead of relying on the ExpiringDict functionality
  • Potentially resolve Scheduler katalogus freshness #856 since the katalogus state in the scheduler will always be updated to the latest modified timestamp
  • Retrieval of new boefjes is now a call per organisation to diff internal cache of present boefjes to enabled boefjes. Could be optimized by a signal to the scheduler when a boefje gets enabled/added

Related: #856

@underdarknl
Copy link
Contributor

In general, I want to move in the direction of storing the enabled/configured plugins in XTDB, instead of the katalogus.
For the following point:

* Retrieval of new boefjes is now a call per organisation to diff internal cache of present boefjes to enabled boefjes. Could be optimized by a signal to the scheduler when a boefje gets enabled/added

When we move the plugin config to XTDB, octopoes should already send out signals to the Scheduler for changes to OOI's. We can use the same mechanism to pick up changes on plugins.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
katalogus mula Issues related to the scheduler tech-debt
Projects
None yet
Development

No branches or pull requests

2 participants