-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Load plugins concurrently #9521
Conversation
Is it possible that having only 2 threads would get same results, so having |
00db4ec
to
488684f
Compare
core/trino-main/src/main/java/io/trino/metadata/StaticCatalogStore.java
Outdated
Show resolved
Hide resolved
@@ -2,6 +2,7 @@ node.id=will-be-overwritten | |||
node.environment=test | |||
|
|||
coordinator=true | |||
experimental.concurrent-startup=true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How faster it become in produce tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i didn't measure this.
it is. I would prefer to leave fine-tunings and for the future. |
488684f
to
e6eacc8
Compare
@findepi I'm worried about logging during startup. Are logs intertwined right now? |
absolutely. |
@findepi Maybe we could defer dumping configuration after plugin/catalogs are loaded and server is started? I think that flushing output takes some portion of that 30s. Alternatively we could buffer logs and flush them at once after catalog is loaded. WDYT? |
|
e6eacc8
to
900db35
Compare
there is not a ton of logs, so logging overhead is negligible. |
73b0152
to
933c80e
Compare
per conversation with @kokosing i dropped catalog parallel loading. Also @martint told me he has a more elaborate version of catalog parallel loading. @kokosing ptal |
This adds an opt-in capability to start server concurrent. When enabled, plugins are loaded concurrently. In local testing, this improves `DevelopmentServer` startup time from about 88s to about 38s (actual times very much depend on multiple factors). As a follow-up work, catalogs can be made to load concurrently.
933c80e
to
bd5e518
Compare
This adds an opt-in capability to start server concurrent. When enabled,
plugins are loaded concurrently.
In local testing, this improves
DevelopmentServer
startup time fromabout 88s to about 38s (actual times very much depend on multiple
factors).
As a follow-up work, catalogs can be made to load concurrently.