-
Notifications
You must be signed in to change notification settings - Fork 486
[server] Change the default value of 'coordinator.io-pool.size' from 1 to 10 #617
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
Conversation
ca67135 to
1cc8f5e
Compare
1cc8f5e to
8821d3b
Compare
|
Upon further review, I realized that all Additionally, I found that Flink uses a similar configuration, Sorry for the back-and-forth on this matter. @swuferhong |
Ok, I will change it back, but I feel that the |
8821d3b to
bd9125f
Compare
|
@wuchong comments addressed. |
| ConfigOptions.TABLET_SERVER_ID.key())); | ||
| } | ||
|
|
||
| if (conf.get(ConfigOptions.BACKGROUND_THREADS) < 1) { |
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.
COORDINATOR_IO_POOL_SIZE ?
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.
TabletServer use BACKGROUND_THREADS as io param. Here I just noticed that there was no such check before, so I added it
Purpose
Linked issue: #616
When I creating a partitioned kv table with a large number of buckets like 512. I found that the
CoordinatorServeheap memory kept increasing, eventually reaching around 15 GB. Further inspection of the memory usage revealed that most of it was occupied byKvFileHandlerandKvSnapshotHandle.The main reason for the accumulation of
KvFileHandlerandKvSnapshotHandleis that the speed of deletingremote snapshot filesis very slow (the remote storage is OSS). Additionally, since the current concurrency level for deletion threads is only1, the backlog becomes increasingly severe, eventually leading to frequent full GCs and even OOM. The preliminary solution is to increase the'coordinator.io-pool.size'to10, allowing 10 concurrent threads to handle the deletion tasks. From the test results, CPU usage increases by only about3%, but the accumulation ofKvFileHandlerandKvSnapshotHandleno longer occurs.In the long term, we need to further optimize the memory usage of
KvFileHandlerandKvSnapshotHandle. Issue #528 will continue to track this.Brief change log
Tests
API and Format
Documentation