aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorva-kuznecov <va-kuznecov@ydb.tech>2023-12-06 20:03:05 +0300
committerva-kuznecov <va-kuznecov@ydb.tech>2023-12-06 22:48:43 +0300
commit3e3eea42c85e3088ac4032e9056f7bd838a50ab4 (patch)
tree8a65da15288eb0c61da2655c944a14582bfc9613
parent9ce76685d71d2ca7d7faab410dfa060ac9d9aa28 (diff)
downloadydb-3e3eea42c85e3088ac4032e9056f7bd838a50ab4.tar.gz
Add FeatureFlag EnablePDiskHighHDDInFlight KIKIMR-20161
-rw-r--r--ydb/core/blobstorage/pdisk/blobstorage_pdisk_config.h3
-rw-r--r--ydb/core/protos/feature_flags.proto1
2 files changed, 3 insertions, 1 deletions
diff --git a/ydb/core/blobstorage/pdisk/blobstorage_pdisk_config.h b/ydb/core/blobstorage/pdisk/blobstorage_pdisk_config.h
index b9fca54b06..0789d3ccfa 100644
--- a/ydb/core/blobstorage/pdisk/blobstorage_pdisk_config.h
+++ b/ydb/core/blobstorage/pdisk/blobstorage_pdisk_config.h
@@ -197,7 +197,8 @@ struct TPDiskConfig : public TThrRefBase {
DriveModelBulkWrieBlockSize = choose(64'000, 1 << 20, 2 << 20);
DriveModelTrimSpeedBps = choose(6ull << 30, 6ull << 30, 0);
ReorderingMs = choose(1, 7, 50);
- DeviceInFlight = choose(128, 4, 32);
+ const ui64 hddInFlight = FeatureFlags.GetEnablePDiskHighHDDInFlight() ? 32 : 4;
+ DeviceInFlight = choose(128, 4, hddInFlight);
CostLimitNs = choose(500'000ull, 20'000'000ull, 50'000'000ull);
UseSpdkNvmeDriver = Path.StartsWith("PCIe:");
diff --git a/ydb/core/protos/feature_flags.proto b/ydb/core/protos/feature_flags.proto
index 6863584be2..247fb014a1 100644
--- a/ydb/core/protos/feature_flags.proto
+++ b/ydb/core/protos/feature_flags.proto
@@ -122,4 +122,5 @@ message TFeatureFlags {
optional bool EnableUuidAsPrimaryKey = 107 [default = false];
optional bool EnableTablePgTypes = 108 [default = false];
optional bool EnableLocalDBBtreeIndex = 109 [default = false];
+ optional bool EnablePDiskHighHDDInFlight = 110 [default = false];
}