Skip to content

Improve WaitAndWiden affinity fallback behavior #1659

Description

@barrygreengus

Problem

WaitAndWiden treats cache-affinity candidates as unordered peers. A load comparator can move a session between its primary and backup while the primary is still admissible, which weakens cache locality. Queue admissibility also determines when global candidates enter selection, so locality can be abandoned before the request SLO requires it.

Desired behavior

  • Treat cache-affinity candidates as an ordered primary and backup.
  • Use the backup only when the primary is not admissible.
  • Unlock non-affinity candidates only after both affinity candidates are unsuitable.
  • Derive the affinity wait budget from the request SLO while leaving enough time for the best cold candidate.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions