-
Notifications
You must be signed in to change notification settings - Fork 734
support memory pools configurations & tune spilling settings #7510
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
21318b9 to
f7bb36a
Compare
f7bb36a to
3e8f730
Compare
|
⚪
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
|
⚪ ⚪
⚪
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
3e8f730 to
d1ba9a4
Compare
|
⚪
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
|
⚪ ⚪
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
| } | ||
|
|
||
| request.SetSchedulerGroup(UserRequestContext->PoolId); | ||
| request.SetMemoryPoolPercent(UserRequestContext->PoolConfig->QueryMemoryLimitPercentPerNode); |
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.
В этом месте может быть UserRequestContext->PoolConfig = std::nullopt, лучше добавить на это проверку
| TxInfo = MakeIntrusive<NRm::TTxState>( | ||
| TxId, TInstant::Now(), ResourceManager_->GetCounters()); | ||
| TxId, TInstant::Now(), ResourceManager_->GetCounters(), | ||
| UserRequestContext->PoolId, UserRequestContext->PoolConfig->QueryMemoryLimitPercentPerNode); |
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.
Тут тоже стоит проверить UserRequestContext->PoolConfig = std::nullopt
| } | ||
|
|
||
| void SetNewLimit(ui64 baseLimit, double memoryPoolPercent, double overPercent) { | ||
| if (abs(memoryPoolPercent - MemoryPoolPercent) < MYEPS && baseLimit != BaseLimit) |
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.
Тут точно должно быть baseLimit != BaseLimit? Судя по коду конфиг может поменяться и тогда делается SetNewLimit для TotalMemoryResource (тут), в этом случае лимит не поменяется
Changelog entry
support memory pools configurations & improve spilling settings
Changelog category
Additional information
...