db/config: add compaction_collection_elements_count_warning_threshold

Signed-off-by: Benny Halevy <bhalevy@scylladb.com>
This commit is contained in:
Benny Halevy
2022-09-29 13:15:16 +03:00
parent 5e88e6267e
commit 167ec84eeb
4 changed files with 7 additions and 0 deletions

View File

@@ -410,6 +410,9 @@ commitlog_total_space_in_mb: -1
# Log a warning when row number is larger than this value
# compaction_rows_count_warning_threshold: 100000
# Log a warning when writing a collection containing more elements than this value
# compaction_collection_elements_count_warning_threshold: 10000
# How long the coordinator should wait for seq or index scans to complete
# range_request_timeout_in_ms: 10000
# How long the coordinator should wait for writes to complete

View File

@@ -382,6 +382,8 @@ db::config::config(std::shared_ptr<db::extensions> exts)
"Log a warning when writing cells larger than this value")
, compaction_rows_count_warning_threshold(this, "compaction_rows_count_warning_threshold", 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", value_status::Used, 10000,
"Log a warning when writing a collection containing more elements than this value")
/* Common memtable settings */
, memtable_total_space_in_mb(this, "memtable_total_space_in_mb", value_status::Invalid, 0,
"Specifies the total memory used for all memtables on a node. This replaces the per-table storage settings memtable_operations_in_millions and memtable_throughput_in_mb.")

View File

@@ -163,6 +163,7 @@ public:
named_value<uint32_t> compaction_large_row_warning_threshold_mb;
named_value<uint32_t> compaction_large_cell_warning_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> memtable_total_space_in_mb;
named_value<uint32_t> concurrent_reads;
named_value<uint32_t> concurrent_writes;

View File

@@ -104,6 +104,7 @@ Configure the detection threshold of large rows and large cells with the corresp
* ``compaction_large_row_warning_threshold_mb`` parameter (default: 10MB).
* ``compaction_large_cell_warning_threshold_mb`` parameter (default: 1MB).
* ``compaction_collection_elements_count_warning_threshold`` parameter (default: 10000).
Once the threshold is reached, the relevant information is captured in the ``system.large_rows`` / ``system.large_cells`` tables.
In addition, a warning message is logged in the Scylla log (refer to :doc:`logging </getting-started/logging>`).