Search before asking
Description
Tablet meta consumes memory in be, when there are many tablets, e.g. 40w in a be, then tablets meta consumes a lot memory. e.g. a tablet in a table with 200 columns consumes 70KB memory. Doris store tablet meta in rocksdb while it loads them into memory when doris starts. We can use memory as a cache to reduce memory consumed by tablet meta.
Solution
- add a lru cache to TabletMgr
- maintain cache in tablet mgr when create delete and update tablet meta
- get tablet through cache and rocksdb
Are you willing to submit PR?
Code of Conduct
Search before asking
Description
Tablet meta consumes memory in be, when there are many tablets, e.g. 40w in a be, then tablets meta consumes a lot memory. e.g. a tablet in a table with 200 columns consumes 70KB memory. Doris store tablet meta in rocksdb while it loads them into memory when doris starts. We can use memory as a cache to reduce memory consumed by tablet meta.
Solution
Are you willing to submit PR?
Code of Conduct