Add a note about HDD, enable throttling only for hybrid OSDs

This commit is contained in:
Vitaliy Filippov
2023-07-09 12:45:11 +03:00
parent b7e4d0c9bf
commit 57ad4c3636
5 changed files with 19 additions and 11 deletions
+2 -2
View File
@@ -99,7 +99,7 @@ int disk_tool_t::prepare_one(std::map<std::string, std::string> options, int is_
if (options["journal_size"] == "")
{
if (options["journal_device"] == "")
options["journal_size"] = "32M";
options["journal_size"] = is_hdd ? "128M" : "32M";
else if (is_hdd)
options["journal_size"] = DEFAULT_HYBRID_JOURNAL;
}
@@ -107,7 +107,7 @@ int disk_tool_t::prepare_one(std::map<std::string, std::string> options, int is_
{
if (options["block_size"] == "")
options["block_size"] = "1M";
if (options["throttle_small_writes"] == "")
if (options["journal_device"] != "" && options["throttle_small_writes"] == "")
options["throttle_small_writes"] = "1";
}
json11::Json::object sb;