-
Notifications
You must be signed in to change notification settings - Fork 23
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
Add parameters WriteMixedBlobThreshold and WriteMixedBlobThresholdSSD #2910
Conversation
cloud/blockstore/libs/storage/partition/part_actor_writeblocks.cpp
Outdated
Show resolved
Hide resolved
4cdefba
to
1c4608e
Compare
|
||
if (requestSize < writeBlobThreshold) { | ||
if (requestSize < (writeMixedBlobThreshold ? writeMixedBlobThreshold |
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.
я предлагаю организовать код так:
if (requestSize > writeBlobThreshold) {
пишем merged
} else if (requestSize > writeMixedBlobThreshold) {
пишем mixed
} else {
fresh
}
as minimum request size in bytes to write to the mixed channel.
1c4608e
to
39144a1
Compare
optional uint32 WriteMixedBlobThreshold = 403; | ||
|
||
// Overrides WriteMixedBlobThreshold for SSD volumes. | ||
optional uint32 WriteMixedBlobThresholdSSD = 404; |
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.
@agalibin @EvgeniyKozev нужны доказательства того что эти правки улучшают какой-то пользовательский сценарий
in pending state: need to implement performance tests before and after. |
Добавляет параметры WriteMixedBlobThreshold и WriteMixedBlobThresholdSSD. Это размер запроса в байтах.
С размером меньше WriteMixedBlobThreshold(SSD) будут записаны в fresh канал.
Данные с размером от WriteMixedBlobThreshold(SSD) до WriteBlobThreshold(SSD) будут записаны в mixed канал.
С размером больше WriteBlobThreshold(SSD) будут записаны в merged канал.
По умолчанию выставлены 0, что рассматривается, как фича отключена и надо работать по-старому.
Это первый шаг, далее будет добавлена логика для Compaction.
#2875