Merge branch 'main' into tzlogfmts
commit
596d8aa5de
|
@ -84,7 +84,7 @@ where
|
||||||
) {
|
) {
|
||||||
let buffer_size = self.db.buffer_size();
|
let buffer_size = self.db.buffer_size();
|
||||||
if buffer_size < soft_limit {
|
if buffer_size < soft_limit {
|
||||||
debug!(%db_name, buffer_size, %soft_limit, "memory use under soft limit");
|
trace!(%db_name, buffer_size, %soft_limit, "memory use under soft limit");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -269,7 +269,7 @@ where
|
||||||
_ => unreachable!("this chunk should be have filtered out already"),
|
_ => unreachable!("this chunk should be have filtered out already"),
|
||||||
}
|
}
|
||||||
let has_added_to_compact = to_compact.len() > to_compact_len_before;
|
let has_added_to_compact = to_compact.len() > to_compact_len_before;
|
||||||
debug!(db_name = %self.db.name(),
|
trace!(db_name = %self.db.name(),
|
||||||
%partition,
|
%partition,
|
||||||
?has_added_to_compact,
|
?has_added_to_compact,
|
||||||
chunk_storage = ?storage,
|
chunk_storage = ?storage,
|
||||||
|
@ -355,7 +355,7 @@ where
|
||||||
.unwrap_or_default();
|
.unwrap_or_default();
|
||||||
|
|
||||||
let persistable_row_count = partition.persistable_row_count();
|
let persistable_row_count = partition.persistable_row_count();
|
||||||
debug!(%db_name, %partition,
|
trace!(%db_name, %partition,
|
||||||
partition_persist_row_count=persistable_row_count,
|
partition_persist_row_count=persistable_row_count,
|
||||||
rules_persist_row_count=%rules.persist_row_threshold.get(),
|
rules_persist_row_count=%rules.persist_row_threshold.get(),
|
||||||
partition_persistable_age_seconds=persistable_age_seconds,
|
partition_persistable_age_seconds=persistable_age_seconds,
|
||||||
|
@ -367,7 +367,7 @@ where
|
||||||
} else if persistable_age_seconds >= rules.persist_age_threshold_seconds.get() as u64 {
|
} else if persistable_age_seconds >= rules.persist_age_threshold_seconds.get() as u64 {
|
||||||
info!(%db_name, %partition, persistable_age_seconds, "persisting partition as exceeds age threshold");
|
info!(%db_name, %partition, persistable_age_seconds, "persisting partition as exceeds age threshold");
|
||||||
} else {
|
} else {
|
||||||
debug!(%db_name, %partition, persistable_row_count, "partition not eligible for persist");
|
trace!(%db_name, %partition, persistable_row_count, "partition not eligible for persist");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue