-
Notifications
You must be signed in to change notification settings - Fork 333
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
feat: remove dedicated runtime for grpc, mysql and pg protocols #4436
Conversation
Signed-off-by: Ruihang Xia <[email protected]>
Signed-off-by: Ruihang Xia <[email protected]>
Signed-off-by: Ruihang Xia <[email protected]>
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4436 +/- ##
==========================================
- Coverage 84.88% 84.60% -0.28%
==========================================
Files 1081 1081
Lines 192961 193003 +42
==========================================
- Hits 163791 163290 -501
- Misses 29170 29713 +543 |
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.
rest LGTM
Actually this is a breaking change. It changes how we configure and tune the server. We'd better including this in next minor release instead of patch release. |
I've tested this change won't fail the server start progress. Only the old config won't take effect so I didn't categorize it as breaking change. |
Signed-off-by: Ruihang Xia <[email protected]>
Co-authored-by: Zhenchi <[email protected]>
Signed-off-by: Ruihang Xia <[email protected]>
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.
Do we need to run the alive keeper in the heartbeat runtime? The region alive keeper may be related to the heartbeat task.
Signed-off-by: Ruihang Xia <[email protected]>
Signed-off-by: Ruihang Xia <[email protected]>
Signed-off-by: Ruihang Xia <[email protected]>
I updated the runtime config for tests. By default, each pod will be allocated up to 1 core CPU (which will lead the default global_rt_size to be 1). However, it's problematic to set the global runtime size to 1 (e.g., deadlock). |
I found the table is flushing:
The admin function may be the cause. We try to block inside the async runtime and hang the whole runtime. greptimedb/src/common/macro/src/admin_fn.rs Lines 230 to 248 in 53fc14a
|
I hereby agree to the terms of the GreptimeDB CLA.
Refer to a related PR or issue link (optional)
What's changed and what's your intention?
Refine runtime related usages.
Major changes:
global_runtime
compact_runtime
for compaction only to limit its max CPU usage. This is a simple workaround at present.Checklist