-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Fix filesystem offload oom #6697
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
Fix filesystem offload oom #6697
Conversation
|
/pulsarbot run-failure-checks |
|
/pulsarbot run-failure-checks |
2 similar comments
|
/pulsarbot run-failure-checks |
|
/pulsarbot run-failure-checks |
|
@congbobo184 thanks for your pull request. I have applied the modification. However, the OOM still occurs. |
I think you offload to hdfs is too slowly, and then you produce message is too fast. and then many ledger will offload int the same time. so we maybe should control the read-ahead number or the whole fileSystem offload task number |
pheecian
left a comment
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.
close ledgerEntries at once or close ledger entry one by one is equivalent. this will make no difference for the memory consumption. the same idea(actually the same code modification) is tested by me already. It will not help. Anyway, it makes sense. But it helps not.
|
quote from @congbobo184 "so we maybe should control the read-ahead number" this is what my PR want to do |
|
Add label release/2.5.1 and remove label release/2.5.2 |
Fixes #6692 ### Motivation avoid prefetch too much data when offloading, which may lead to OOM; fix object not close issue, which is also mentioned by congbobo184 #6697 *Explain here the context, and why you're making that change. What is the problem you're trying to solve.* ### Does this pull request potentially affect one of the following parts: *If `yes` was chosen, please highlight the changes* - Dependencies (does it add or upgrade a dependency): (no) - The public API: (no) - The schema: (no) - The default values of configurations: (no) - The wire protocol: (no) - The rest endpoints: (no) - The admin cli options: (no) - Anything that affects deployment: (no) ### Documentation - Does this pull request introduce a new feature? (no)
Fixes apache#6692 avoid prefetch too much data when offloading, which may lead to OOM; fix object not close issue, which is also mentioned by congbobo184 apache#6697 *Explain here the context, and why you're making that change. What is the problem you're trying to solve.* *If `yes` was chosen, please highlight the changes* - Dependencies (does it add or upgrade a dependency): (no) - The public API: (no) - The schema: (no) - The default values of configurations: (no) - The wire protocol: (no) - The rest endpoints: (no) - The admin cli options: (no) - Anything that affects deployment: (no) - Does this pull request introduce a new feature? (no)
Fixes #6692 ### Motivation avoid prefetch too much data when offloading, which may lead to OOM; fix object not close issue, which is also mentioned by congbobo184 #6697 *Explain here the context, and why you're making that change. What is the problem you're trying to solve.* ### Does this pull request potentially affect one of the following parts: *If `yes` was chosen, please highlight the changes* - Dependencies (does it add or upgrade a dependency): (no) - The public API: (no) - The schema: (no) - The default values of configurations: (no) - The wire protocol: (no) - The rest endpoints: (no) - The admin cli options: (no) - Anything that affects deployment: (no) ### Documentation - Does this pull request introduce a new feature? (no) (cherry picked from commit 514b6af)
Fixes apache#6692 ### Motivation avoid prefetch too much data when offloading, which may lead to OOM; fix object not close issue, which is also mentioned by congbobo184 apache#6697 *Explain here the context, and why you're making that change. What is the problem you're trying to solve.* ### Does this pull request potentially affect one of the following parts: *If `yes` was chosen, please highlight the changes* - Dependencies (does it add or upgrade a dependency): (no) - The public API: (no) - The schema: (no) - The default values of configurations: (no) - The wire protocol: (no) - The rest endpoints: (no) - The admin cli options: (no) - Anything that affects deployment: (no) ### Documentation - Does this pull request introduce a new feature? (no)

Motivation
to fix filesystem offload oom #6692
Does this pull request potentially affect one of the following parts:
If yes was chosen, please highlight the changes
Dependencies (does it add or upgrade a dependency): (no)
The public API: (no)
The schema: (no)
The default values of configurations: (no)
The wire protocol: (no)
The rest endpoints: (no)
The admin cli options: (no)
Anything that affects deployment: (no)
Documentation
Does this pull request introduce a new feature? (yes / no)
If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)
If a feature is not applicable for documentation, explain why?
If a feature is not documented yet in this PR, please create a followup issue for adding the documentation