# 云上规模使用更无忧，持续优化 Remote WAL 和对象存储性能的使用体验 | Greptime 双周精选

Source: https://greptime.cn/blogs/2024-08-14-biweekly

## 内容概述

作为一个成长中的开源项目，GreptimeDB 的进展离不开来自全球的社区贡献者们，感谢各位！

最近的内容更新如下：
- **实现新的 Kafka Topic Consumer 用以提升 RemoteWAL 性能**
- **提升在对象存储上的读性能**
- **给 TWCS 压缩添加文件数量限制**
- **为 RemoteWAL 支持 Kafka 的 SASL 和 TLS 配置**

## 社区贡献者名单

在过去的两周里，GreptimeDB 共合并了 82 个 PR，其中有 3 位独立贡献者，累计 5 个 PR 被成功合并，还有很多待合并的 PR。

祝贺以下各位在过去 2 周内成为我们活跃的贡献者：

- @[J0HN50N133](https://github.com/J0HN50N133) ([db#4541](https://github.com/GreptimeTeam/greptimedb/pull/4541))

- @[leaf-potato](https://github.com/leaf-potato) ([db#4468](https://github.com/GreptimeTeam/greptimedb/pull/4468) [db#4463](https://github.com/GreptimeTeam/greptimedb/pull/4463) [docs#1118](https://github.com/GreptimeTeam/docs/pull/1118))

- @[Stephan3555](https://github.com/Stephan3555) ([helm-charts#150](https://github.com/GreptimeTeam/helm-charts/pull/150))

👏 欢迎 @[Stephan3555](https://github.com/Stephan3555)  作为新的贡献者加入社区并成功合并了首个 PR，还有更多来自其他独立贡献者的 PR 正在等待合并。

<img src="/zh/blogs/2024-08-14-biweekly/contributorpost.png" alt="Contributor of GreptimeDB" style="width: 80%; margin: 0 auto"/>

同时衷心感谢我们所有的成员和贡献者，是你们的付出让我们的项目得以成功，也是你们让 GreptimeDB 成为一个更优质的产品。让我们一起努力，建立一个更棒的社区！

## PR 亮点
### [db#4424](https://github.com/GreptimeTeam/greptimedb/pull/4424) 实现新的 Kafka Topic Consumer 用以提升 RemoteWAL 性能

实现一个新的遵循 WAL 索引信息的 Kafka Topic Consumer 用于降低单一 Region 回放时的读放大因子。

### [db#4520](https://github.com/GreptimeTeam/greptimedb/pull/4520) 提升在对象存储上的数据获取性能

在数据访问层合并范围较小的 IO 从而优化数据获取（此处再次**感谢 @OpenDAL 社区的精妙设计**）。

### [db#4453](https://github.com/GreptimeTeam/greptimedb/pull/4453) 减少锁的范围并改进日志

此 PR 减少了部分锁的范围，从而避免不同流相互阻塞太长时间。在 append 模式下，此锁会导致 part 之间无法并行读取。

### [db#4536](https://github.com/GreptimeTeam/greptimedb/pull/4536) 为 RemoteWAL 支持 Kafka 的 SASL 和 TLS 配置

允许用户为 Kafka 客户端配置 SASL/PLAIN、SASL/SCRAM-SHA-256、SASL/SCRAM-SHA-512 和 TLS。

### [db#4481](https://github.com/GreptimeTeam/greptimedb/pull/4481) 为 TWCS 压缩添加文件数量限制

在 `TwcsOptions` 中引入 `max_active_window_files` 和 `max_inactive_window_files` 从而限制活跃和非活跃窗口中的文件数量。

## Good First Issue

### [db#4480 为 Mito Engine 增加 debug 级别的 Trace](https://github.com/GreptimeTeam/greptimedb/issues/4480)

当前的 Trace 并不适合用户性能调试，可以在 Mito Engine 中增加更细节的 Spans，比如从 S3 读取数据的时间等等。

关键词：Mito Engine, Trace

难度：中等

### [db#4533 修复 `greptime_app_version` 统计中不正确的 `version label`](https://github.com/GreptimeTeam/greptimedb/issues/4533)

修复 `/metrics` 中 `greptime_app_version metric` 中的 `version` 总是带有一个前导 `-` ，应该是统计信息中 Branch 值丢失变为空导致的。

关键词：Metrics

难度：简单

## 关于 Greptime

[Greptime 格睿科技](https://greptime.cn/)专注于为可观测、物联网及车联网等领域提供实时、高效的数据存储和分析服务，帮助客户挖掘数据的深层价值。目前基于云原生的时序数据库 [GreptimeDB](https://github.com/GreptimeTeam/greptimedb) 已经衍生出多款适合不同用户的解决方案，更多信息或 demo 展示请联系下方小助手（微信号：greptime）。

欢迎对开源感兴趣的朋友们参与贡献和讨论，从带有 good first issue 标签的 issue 开始你的开源之旅吧～期待在开源社群里遇见你！添加小助手微信即可加入“技术交流群”与志同道合的朋友们面对面交流哦~

Star us on GitHub Now: https://github.com/GreptimeTeam/greptimedb

官网：https://greptime.cn/

文档：https://docs.greptime.cn/

Twitter: https://twitter.com/Greptime

Slack: https://greptime.com/slack

LinkedIn: https://www.linkedin.com/company/greptime/
