-
Notifications
You must be signed in to change notification settings - Fork 119
Description
We currently use a CycleState
, which is a map for the scheduler plugins to put and get state info. This is mainly used by the prefix cache aware plugin to share states between the Score
and PostCycle
extension points.
And to deprecate the PostCycle
extension point in favor of the PreRequest
, we need a mechanism to share states between the scheduler and director layers.
From the discussion in #1062, there seems to be 2 major questions:
- The use of a generic
CycleState
map itself.
Do we need a safer mechanism rather than a generic map? Should different scheduling profiles share state and if so, how to make sure they don't corrupt each other?
- How to let plugins communicate across layers.
Specifically for the prefix cache plugin, how to share state between the Scorer
and PreRequest
extension points.
cc @nirrozenbaum @kfswain @ahg-g
@kfswain will take the AI to create a proposal.