-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Remote Store] Change remote purge threadpool to fixed instead of scaling to limit i… #12247
Changes from 2 commits
7fd8581
3d08b4c
50dcbf2
699b571
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -183,7 +183,7 @@ public static ThreadPoolType fromType(String type) { | |
map.put(Names.SYSTEM_WRITE, ThreadPoolType.FIXED); | ||
map.put(Names.TRANSLOG_TRANSFER, ThreadPoolType.SCALING); | ||
map.put(Names.TRANSLOG_SYNC, ThreadPoolType.FIXED); | ||
map.put(Names.REMOTE_PURGE, ThreadPoolType.SCALING); | ||
map.put(Names.REMOTE_PURGE, ThreadPoolType.FIXED); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this creating overhead that will be unused on some cluster configurations? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, but the overhead is quite minimal , given the size of the pool. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you help me understand how this pool is used? I don't have a sense for what 'minimal' means as some customers operate OpenSearch on very resource constrained systems such as EC2's T3 instance types. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This pool is used for async deletions related to remote store .
Actually on a domain with no remote store, there is not going to be any overhead . Fixed Size threadpool creates For remote store enabled clusters, this will help limit the memory impact of this queue by limiting its size. |
||
map.put(Names.REMOTE_REFRESH_RETRY, ThreadPoolType.SCALING); | ||
map.put(Names.REMOTE_RECOVERY, ThreadPoolType.SCALING); | ||
map.put(Names.INDEX_SEARCHER, ThreadPoolType.RESIZABLE); | ||
|
@@ -265,7 +265,7 @@ public ThreadPool( | |
new ScalingExecutorBuilder(Names.TRANSLOG_TRANSFER, 1, halfProc, TimeValue.timeValueMinutes(5)) | ||
); | ||
builders.put(Names.TRANSLOG_SYNC, new FixedExecutorBuilder(settings, Names.TRANSLOG_SYNC, allocatedProcessors * 4, 10000)); | ||
builders.put(Names.REMOTE_PURGE, new ScalingExecutorBuilder(Names.REMOTE_PURGE, 1, halfProc, TimeValue.timeValueMinutes(5))); | ||
builders.put(Names.REMOTE_PURGE, new FixedExecutorBuilder(settings, Names.REMOTE_PURGE, halfProc, 10000)); | ||
builders.put( | ||
Names.REMOTE_REFRESH_RETRY, | ||
new ScalingExecutorBuilder(Names.REMOTE_REFRESH_RETRY, 1, halfProc, TimeValue.timeValueMinutes(5)) | ||
|
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.
This isn't right, other issue could be masked by blindly try/catching exceptions. Why isn't the action listener's onFailure called?
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.
The action listener comes into play only after the list call is successful. In this case the list itself fails.
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.
OK maybe onFailure isn't the best signal - what would be a better signal? Exceptions are mysterious (undocumented) and expensive.