Skip to content

ref(allocation-policies): Key EAP routing policies by storage key (eap_items) - #8736

Open
pbhandari wants to merge 3 commits into
masterfrom
prajjwalbhandari/eap-967-fix-eap-vs-eap_items-allocation
Open

pbhandari wants to merge 3 commits into
masterfrom
prajjwalbhandari/eap-967-fix-eap-vs-eap_items-allocation

Conversation

@pbhandari

@pbhandari pbhandari commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

RPC routing strategies read their allocation policies from the EAP key of the allocation_policies option. That name reads like the eap_items storage key, so s4s2 was configured under eap_items only and routing fell back to PassthroughPolicy.

Routing now reads the key of its own resource_identifier, which is the eap_items storage key. There is no routing-only key any more.

  • storage_routing.py: ResourceIdentifier("EAP") becomes self.resource_identifier
  • Schema description and tests updated to match

Shared key: db_query also reads allocation_policies by the storage key of each table in the query. When a query executes against the eap_items storage, the same policy list is built at routing and again at execution, so quota is counted twice. Accepted for now.

Deploy order: the options-automator PR (https://github.com/getsentry/sentry-options-automator/pull/10699) was written for an RPC key and has to be changed to eap_items before it merges. Routing falls back to Passthrough in any region that has no eap_items entry when this deploys.

Refs EAP-967

@linear-code

linear-code Bot commented Nov 19, 2026

Copy link
Copy Markdown

EAP-967

@pbhandari
pbhandari marked this pull request as ready for review December 1, 2026 16:00
@pbhandari
pbhandari requested review from a team as code owners December 1, 2026 16:00
…p-967-fix-eap-vs-eap_items-allocation

* origin/master: (21 commits)
  ci(gocd): Wait on Required checks instead of each test job (#8769)
  ci(sentry): Run the sentry job on 2 shards without API changes (#8761)
  ci: Add a single Required checks job for branch protection (#8768)
  ci(sentry): Run Sentry's snuba tests in one pytest invocation per shard (#8594)
  feat(eap): allow block column setting jobs on eap_items_2_local (#8752)
  fix(lw-deletes): Retry deletes on ClickHouse transport errors (#8750)
  ref: bump sentry-conventions to 0.37.0 (#8759)
  feat(eap): honour and emit routing_hint on TimeSeries endpoint (#8754)
  fix(eap): Apply virtual columns to coalesced reads of their name (#8739)
  build(deps): Bump devservices to 1.5.5 (#8749)
  build(deps): Bump github/codeql-action/analyze from 3ea37a44b6e4e6847c46edae209410d258d548d1 to 38112626f97ac1fd7acf3df7ebca51f4677c1b38 (#8744)
  build(deps): Bump github/codeql-action/autobuild from 3ea37a44b6e4e6847c46edae209410d258d548d1 to 38112626f97ac1fd7acf3df7ebca51f4677c1b38 (#8743)
  build(deps): Bump github/codeql-action/init from 3ea37a44b6e4e6847c46edae209410d258d548d1 to 38112626f97ac1fd7acf3df7ebca51f4677c1b38 (#8742)
  build(deps): Bump astral-sh/setup-uv from 10.3.3 to 10.4.0 (#8747)
  build(deps): Bump actions/dependency-review-action from 5.0.0 to 5.0.1 (#8741)
  Revert "ref: bump sentry-conventions to 0.35.0 (#8737)"
  feat(allocation-policies): Raise BytesScannedPolicy default limit to 4 TB (#8730)
  ref: bump sentry-conventions to 0.35.0 (#8737)
  feat(storage-routing): Add dedicated downsample thresholds separate from reject (#8735)
  ref(lw-deletions): remove off-peak consumer backpressure (#8727)
  ...

# Conflicts:
#	sentry-options/schemas/snuba/schema.json
#	tests/web/rpc/v1/test_storage_routing.py
@pbhandari pbhandari changed the title ref(allocation-policies): Rename EAP routing resource key to RPC ref(allocation-policies): Key EAP routing policies by storage key (eap_items) Dec 1, 2026

This branch has not been deployed

No deployments
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