Make Edge query and load-event thread pools configurable - #18584
Merged
JackieTien97 merged 1 commit intoSep 5, 2026
Conversation
JackieTien97
added a commit
that referenced
this pull request
Sep 5, 2026
(cherry picked from commit 9d91245)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Normal table queries in the Edge process eventually start 20 coordinator workers, 10 coordinator scheduling workers, 4 fragment-notification workers and 5 ConfigNode load-event workers. The latter three pool sizes were hard-coded, and Edge did not override the existing coordinator read-pool setting.
Make these pool sizes configurable at startup and use smaller Edge defaults:
coordinator_read_executor_size(existing)coordinator_scheduled_executor_sizefragment_instance_notification_thread_countcn_load_statistics_publisher_thread_countValues must be positive. Changes require a restart; the existing general defaults are preserved. The normal configuration template documents all four settings. ConfigNode and SchemaRegion continue to use Ratis; DataRegion continues to use IoTConsensus. JVM memory budgets and flush/compaction pools are unchanged.
Validation
QueryThreadPoolConfigTestandLoadStatisticsPublisherConfigTest: four tests passed, covering defaults, positive-size validation, startup loading and restart-only behavior.IoTDBEdgeBasicIT: package settings, tree/table reads and writes, 160 queries over four concurrent table connections, and runtime consensus-protocol assertions.SHOW VARIABLESconfirmed Ratis for ConfigNode/SchemaRegion in both runs.jstackthread entries changed from 147 to 115. The four pools changed from 20/10/4/5 to 2/2/2/1. NMT thread committed memory changed from 16,881 KiB to 13,249 KiB. Observed RSS peaks were about 341 and 338 MiB; this change reduces thread overhead and does not establish a total RSS cap.Self-review