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

Add on-demand compiler pool scaling #3550

Merged
merged 3 commits into from Mar 8, 2022
Merged

Add on-demand compiler pool scaling #3550

merged 3 commits into from Mar 8, 2022

Conversation

fantix
Copy link
Member

@fantix fantix commented Feb 24, 2022

Use --compiler-pool-scaling-mode=on_demand to switch to the new mode,
which will a spawn new compiler worker process every 3 seconds if the
compiling requests keep queueing up, up to num of CPUs; after 60 seconds
without compiling requests, the compiler pool will scale down to
--compiler-pool-size with a default of 1 under on-demand mode.

Use --compiler-pool-scaling-mode=on_demand to switch to the new mode,
which will a spawn new compiler worker process every 3 seconds if the
compiling requests keep queueing up, up to num of CPUs; after 60 seconds
without compiling requests, the compiler pool will scale down to
--compiler-pool-size with a default of 1 under on-demand mode.
edb/server/args.py Outdated Show resolved Hide resolved
edb/server/compiler_pool/pool.py Outdated Show resolved Hide resolved
@fantix fantix marked this pull request as ready for review Feb 24, 2022
@fantix fantix mentioned this pull request Feb 25, 2022
6 tasks
1st1
1st1 approved these changes Mar 2, 2022
@1st1
Copy link
Member

@1st1 1st1 commented Mar 7, 2022

Should we merge this one?

@fantix
Copy link
Member Author

@fantix fantix commented Mar 7, 2022

Should we merge this one?

Sure - I was only concerned if we want to switch to use a DSN in #3555 for compilers, if so I'd update this one too.

elprans
elprans approved these changes Mar 8, 2022
Copy link
Member

@elprans elprans left a comment

👍

@fantix fantix merged commit f4c7772 into edgedb:master Mar 8, 2022
21 checks passed
@fantix fantix deleted the t3474 branch Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants