一 结构

二 初始化

三 数据存储结构
网上找了两个图
image.png
image.png
- CommitLog 消息生产物理存储文件处理
- ConsumeQueue 消息消费逻辑结构
- IndexFile 消息查找索引文件,
- MappedFileQueue 存储层接口
- TransientStorePool 堆外内存
- MappedFile 文件映射到内存处理类
- MappedFile.MappedByteBuffer 文件映射到用户空间内存
this.mappedByteBuffer = this.fileChannel.map(MapMode.READ_WRITE, 0, fileSize);
- MappedFile.writeBuffer 管理堆外内存TransientStorePool的结构
网友评论