Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

poc: PooledPlanner + choice of 2 load balancing #456

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

xuorig
Copy link
Contributor

@xuorig xuorig commented Mar 12, 2024

Deploying new instances of apollo-router almost inevitably ends up with a spike in timeouts. Initially thinking this was due to large query plans / done in JS (related), it is instead mostly due to the synchronous nature of the planner, with a ton of queuing happening for new instances receiving a high cardinality of new queries to plan.

There is a ton of gotchas with using a pool of planners. Errors especially are hard to recover from. I'm going to use this branch to test things out and see what kinds of improvements could be achieved.

@xuorig xuorig changed the title poc: PooledPlanner poc: PooledPlanner + choice of 2 load balancing Mar 12, 2024
@xuorig xuorig force-pushed the worker-planner-pool branch from 95b3440 to 4ec590b Compare March 12, 2024 14:06
@xuorig xuorig force-pushed the worker-planner-pool branch from 4ec590b to 5ab543f Compare March 12, 2024 14:21
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