OpenMLDB
OpenMLDB copied to clipboard
show table status will get the incorrect memory usage for mulltiple replicas
Now we use "show table status" and get the incorrect memory usage.
https://github.com/4paradigm/OpenMLDB/blob/main/src/sdk/sql_cluster_router.cc#L4565-L4576
The number we get is in 'partition info ', it's copy of leader replica. And the numbers of followers are in 'partition_meta', we don't count them
TODO: clarify it in doc
- for memory table: its table data + index
- rows count may not accurate from different indexes
- multiple by
replica_num
for actual mem size, regardless it happens or not