-
Notifications
You must be signed in to change notification settings - Fork 998
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
feat(tiering): add max file size limit #2344
Conversation
Signed-off-by: adi_holden <[email protected]>
Signed-off-by: adi_holden <[email protected]>
Signed-off-by: adi_holden <[email protected]>
Signed-off-by: adi_holden <[email protected]>
src/server/engine_shard_set.cc
Outdated
@@ -29,6 +33,11 @@ ABSL_FLAG(string, spill_file_prefix, "", | |||
" associated with tiered storage. E.g," | |||
"spill_file_prefix=/path/to/file-prefix"); | |||
|
|||
ABSL_FLAG(dfly::MemoryBytesFlag, max_file_size, dfly::MemoryBytesFlag{}, |
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.
I suggest prefixing this flag with a feature name, aka tiered_file_max_size
.
or spill_file_max_size
for consistency though I think we won't use spill file
externally so it probably not a good name,
src/server/engine_shard_set.cc
Outdated
@@ -787,14 +797,52 @@ auto EngineShard::AnalyzeTxQueue() -> TxQueueInfo { | |||
|
|||
*/ | |||
|
|||
uint64_t GetDiskLimit() { |
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.
GetDiskLimit
-> GetFsLimit
src/server/engine_shard_set.cc
Outdated
max_shard_file_size = max_file_size / shard_queue_.size(); | ||
if (max_shard_file_size < 256_MB) { | ||
LOG(ERROR) << "Max tiering file size is too small. Setting: " | ||
<< HumanReadableNumBytes(max_file_size) << " Requeried at least " |
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.
Requeried -> Required
Signed-off-by: adi_holden <[email protected]>
@romange ping |
fixes #2207