mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-01-06 21:32:58 +00:00
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:
@@ -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');
|
||||
|
||||
@@ -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');
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
flush_stats_factor = 1
|
||||
[wal]
|
||||
{{ if is_raft_engine }}
|
||||
provider = "raft_engine"
|
||||
|
||||
Reference in New Issue
Block a user