Skip to content

ref(allocation-policies): Add scan_limit and key_by to BytesScannedRejectingPolicy - #8631

Closed
dezzeddi wants to merge 1 commit into
masterfrom
dani/bsr-scan-limit-key-by
Closed

dezzeddi wants to merge 1 commit into
masterfrom
dani/bsr-scan-limit-key-by

Conversation

@dezzeddi

Copy link
Copy Markdown
Member

BytesScannedRejectingPolicy encodes the tenant level in six scan-limit setting names. This replaces the four param overrides with one scan_limit setting, plus key_by to pick which tenant the window counts against.

  • scan_limit: one limit for project- and org-keyed queries. Per-tenant values go in match blocks. Unset (-1) falls back to project_referrer_scan_limit / organization_referrer_scan_limit, so config can move in either order.
  • key_by: tenant_referrer (default, today's Redis key), organization_referrer or organization.
  • Removed referrer_all_projects_scan_limit_override, referrer_all_organizations_scan_limit_override, organization_referrer_scan_limit_override, organization_scan_limit_override. No config sets them today.
  • Schema: key_by allowed as a string on policies.

No behaviour change with current config.

…jectingPolicy

Replace the four *_scan_limit_override param configs with one scan_limit
setting (per-tenant values go in match blocks) and a key_by setting that
picks the tenant the scan window counts against. The default key_by keeps
today's Redis key. project_referrer_scan_limit and
organization_referrer_scan_limit still apply when scan_limit is unset, so
config can move in either order.
@dezzeddi

Copy link
Copy Markdown
Member Author

Combined into #8642.

@dezzeddi dezzeddi closed this Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant