Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mdrill实时数据源之索引结构 #45

Open
muyannian opened this issue Oct 14, 2013 · 0 comments
Open

mdrill实时数据源之索引结构 #45

muyannian opened this issue Oct 14, 2013 · 0 comments

Comments

@muyannian
Copy link
Contributor

索引分为两种,本地索引和内存索引
索引根据是否对外提供服务 分3总类型 A类表示可以只读,B类表示可写,C表示临时

对外提供读的服务索引如下
Index 1 A
Index 2 A
Index N A
RAM A

提供写服务的索引如下
RAM B

当B体积增加到阈值或超过设定时间后
RAM A + RAM B =>RAM C
然后 RAM B to clear,RAM A=RAM C

当RAM A增加到一定体积后
RAM A+INDEX N A=>INDEX C
然后清理RAM A,INDEX N A,然后INDEX C转换为INDEX A

当INDEX N的N超过设定阈值后,借助INDEX C 合并最小的两个INDEX为新的INDEX

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant