OpenMLDB icon indicating copy to clipboard operation
OpenMLDB copied to clipboard

show table status will get the incorrect memory usage for mulltiple replicas

Open tobegit3hub opened this issue 5 months ago • 2 comments

Now we use "show table status" and get the incorrect memory usage.

tobegit3hub avatar Mar 19 '24 10:03 tobegit3hub

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

vagetablechicken avatar Mar 20 '24 03:03 vagetablechicken

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

aceforeverd avatar Mar 20 '24 03:03 aceforeverd