mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-03 05:26:58 +00:00
db: add large_row_fail_threshold_mb config option
Reject writes targeting a row whose on-disk size already exceeds this threshold (MB). Code default is 0 (disabled) for existing clusters; scylla.yaml ships 20 for new deployments.
This commit is contained in:
@@ -432,6 +432,10 @@ large_partition_fail_threshold_mb: 2000
|
||||
# Log a warning when writing rows larger than this value
|
||||
# compaction_large_row_warning_threshold_mb: 10
|
||||
|
||||
# Reject writes to rows whose on-disk size exceeds this threshold (MB).
|
||||
# Set to 0 to disable.
|
||||
large_row_fail_threshold_mb: 20
|
||||
|
||||
# Log a warning when writing cells larger than this value
|
||||
# compaction_large_cell_warning_threshold_mb: 1
|
||||
|
||||
|
||||
@@ -792,6 +792,9 @@ db::config::config(std::shared_ptr<db::extensions> exts)
|
||||
, rows_count_fail_threshold(this, "rows_count_fail_threshold", liveness::LiveUpdate, value_status::Used, 0,
|
||||
"Reject writes targeting a partition whose on-disk row count already exceeds this threshold, as recorded in any SSTable's large data records. "
|
||||
"Set to 0 to disable.")
|
||||
, large_row_fail_threshold_mb(this, "large_row_fail_threshold_mb", liveness::LiveUpdate, value_status::Used, 0,
|
||||
"Reject writes targeting a partition that contains any row whose on-disk size already exceeds this threshold in MB, as recorded in any SSTable's large data records. "
|
||||
"Set to 0 to disable.")
|
||||
, compaction_rows_count_warning_threshold(this, "compaction_rows_count_warning_threshold", liveness::LiveUpdate, value_status::Used, 100000,
|
||||
"Log a warning when writing a number of rows larger than this value.")
|
||||
, compaction_collection_elements_count_warning_threshold(this, "compaction_collection_elements_count_warning_threshold", liveness::LiveUpdate, value_status::Used, 10000,
|
||||
|
||||
@@ -227,6 +227,7 @@ public:
|
||||
named_value<uint32_t> compaction_large_cell_warning_threshold_mb;
|
||||
named_value<uint32_t> large_partition_fail_threshold_mb;
|
||||
named_value<uint32_t> rows_count_fail_threshold;
|
||||
named_value<uint32_t> large_row_fail_threshold_mb;
|
||||
named_value<uint32_t> compaction_rows_count_warning_threshold;
|
||||
named_value<uint32_t> compaction_collection_elements_count_warning_threshold;
|
||||
named_value<uint32_t> compaction_large_data_records_per_sstable;
|
||||
|
||||
Reference in New Issue
Block a user