Skip to content

[Enhancement] reduce memory consumption by tablet meta in be #18619

Description

@dataroaring

Search before asking

  • I had searched in the issues and found no similar issues.

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

  1. add a lru cache to TabletMgr
  2. maintain cache in tablet mgr when create delete and update tablet meta
  3. get tablet through cache and rocksdb

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions