Skip to content

Evaluate regional node-query pool pressure and the existing cache proposal (upstream 2101) #221

Description

@dborup

Deferred evaluation

Track the relevance of upstream issue 2101: regional /api/nodes requests can occupy the SQLite connection pool with expensive history scans. This is an assessment and coordination issue, not a claim that our production server has experienced the reported outage.

Status checked 2026-10-04: upstream issue 2101 is open; its proposed PR 2102 is closed without merging. Our #176 is open and already contains an adapted implementation candidate. Do not start another competing port.

What it does / potential benefit

The proposed cache reuses regional node membership across count and page requests instead of repeatedly scanning the observation history. It could reduce query work and pool contention on large histories and repeated regional browsing. Query cancellation/deadlines and the remaining cold-cache work need evaluation separately; caching is not proof that every pool-starvation case is solved.

Existing work in our fork

Risks / questions for later

  • Are the proposed stale-data windows acceptable for Nodes and Live?
  • What happens with concurrent cold requests for many different region sets, cache eviction, retention and observer-region changes?
  • Does cancellation release database resources promptly? Is a bounded query deadline or concurrency limit needed in addition to caching?
  • Preserve result membership, pagination/count consistency, legacy data and the server's read-only database contract.
  • The upstream incident and PR-author test results are not measurements of our current staging/production deployment.

Evaluation checklist

No merge, production query experiment, configuration change or deployment is authorized by this issue alone.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions