Skip to content

Conversation

@lutter
Copy link
Collaborator

@lutter lutter commented Dec 9, 2025

No description provided.

This helps us avoid timeouts when we encounter a thundering herd, for
example when an index node starts up and all subgraphs want access to the
database.
The start_subgraph code called load_indexes while holding a connection;
load_indexes tries to get another connection. If the pool is exhausted
because many subgraphs are starting, we end up in a deadlock.
@lutter lutter requested a review from isum December 9, 2025 01:02
@lutter lutter force-pushed the lutter/async-unblock branch from ab63011 to 0ff94bd Compare December 9, 2025 18:25
tokio-postgres does not respect PGAPPNAME, so that its connections are not
named properly in pg_stat_activity etc. We manually add it to the URL to
help tracking and debugging connection issues
@lutter lutter force-pushed the lutter/async-unblock branch from 8a9de13 to c7dbc41 Compare December 10, 2025 18:08
@lutter lutter force-pushed the lutter/async-unblock branch from 2f232fe to baac3b0 Compare December 11, 2025 22:31
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.

3 participants