feat: heartbeat_flush_threshold option (#4924)

* feat: heartbeat_flush_threshold

* chore: rename to flush_stats_factor

* Update src/meta-srv/src/handler/collect_stats_handler.rs
This commit is contained in:
jeremyhi
2024-11-04 11:34:50 +08:00
committed by GitHub
parent 7a4276c24a
commit 9405d1c578
7 changed files with 43 additions and 12 deletions

View File

@@ -21,8 +21,7 @@ INSERT INTO test VALUES
Affected Rows: 3
-- SQLNESS SLEEP 11s
-- FIXME(dennis): we need to wait the datanode reporting stats info to metasrv.
-- SQLNESS SLEEP 3s
SELECT SUM(region_rows), SUM(disk_size), SUM(sst_size), SUM(index_size)
FROM INFORMATION_SCHEMA.REGION_STATISTICS WHERE table_id
IN (SELECT TABLE_ID FROM INFORMATION_SCHEMA.TABLES WHERE table_name = 'test' and table_schema = 'public');

View File

@@ -16,8 +16,7 @@ INSERT INTO test VALUES
(11, 'b', 11),
(21, 'c', 21);
-- SQLNESS SLEEP 11s
-- FIXME(dennis): we need to wait the datanode reporting stats info to metasrv.
-- SQLNESS SLEEP 3s
SELECT SUM(region_rows), SUM(disk_size), SUM(sst_size), SUM(index_size)
FROM INFORMATION_SCHEMA.REGION_STATISTICS WHERE table_id
IN (SELECT TABLE_ID FROM INFORMATION_SCHEMA.TABLES WHERE table_name = 'test' and table_schema = 'public');

View File

@@ -1,3 +1,4 @@
flush_stats_factor = 1
[wal]
{{ if is_raft_engine }}
provider = "raft_engine"