Allow to customize blobovnicza's leaf width #622

Merged
fyrchik merged 1 commit from dstepanov-yadro/frostfs-node:feat/blobovnizca_leaf_width into master 2024-09-04 19:51:02 +00:00

Relates #602

Now it is possible to set custom width for the blobovnizca's leaves. It allows to have more databases with same depth and do not increase the number of active blobovnizcas.

In turn, this will allow to create smaller blobovnizcas with the same target blobovnizca tree size to reduce degradation.

Relates #602 Now it is possible to set custom width for the blobovnizca's leaves. It allows to have more databases with same depth and do not increase the number of active blobovnizcas. In turn, this will allow to create smaller blobovnizcas with the same target blobovnizca tree size to reduce degradation.
dstepanov-yadro requested review from storage-core-committers 2023-08-18 06:31:22 +00:00
dstepanov-yadro requested review from storage-core-developers 2023-08-18 06:31:23 +00:00
acid-ant reviewed 2023-08-18 07:05:55 +00:00
@ -124,2 +128,3 @@
for i := uint64(0); i < blz.blzShallowDepth; i++ {
cp *= blz.blzShallowWidth
if i+1 == blz.blzShallowDepth {
activeMapCapacity *= blz.blzLeafWidth
Member

It is possible to multiply out of the loop, in this case if will be redundant. In this case, condition for iteration will be i < blz.blzShallowDepth-1

It is possible to multiply out of the loop, in this case `if` will be redundant. In this case, condition for iteration will be `i < blz.blzShallowDepth-1`
Author
Member

Since this is an unsigned data type (uint64), I prefer not to deal with subtraction:)

Since this is an unsigned data type (uint64), I prefer not to deal with subtraction:)
acid-ant approved these changes 2023-08-18 07:06:28 +00:00
aarifullin approved these changes 2023-08-18 07:40:01 +00:00
dstepanov-yadro changed title from Allow to customiza blobovnizca's leaf width to Allow to customize blobovnicza's leaf width 2023-08-18 10:26:24 +00:00
fyrchik approved these changes 2023-08-18 13:20:14 +00:00
dstepanov-yadro force-pushed feat/blobovnizca_leaf_width from 11b2dee2f9 to 354a92ea2c 2023-08-21 07:27:54 +00:00 Compare
fyrchik approved these changes 2023-08-21 07:30:23 +00:00
fyrchik merged commit 354a92ea2c into master 2023-08-21 07:35:01 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-node#622
No description provided.