 PromQL Got a BOOST: 用 Rust 重写 Prometheus 的查询引擎第三届中国 Rust 开发者大会 PromQL Got a BOOST: 用 Rust 重写 Prometheus 的查询引擎 Ruihang Xia @greptime.com Ruihang GitHub: waynexia Losing hair at Greptime Wanna sleep 10 hrs/day Learn JS every year Healing 02 the Engine 03 Rust Gives 04 Outlook 05 01 Background About Prometheus and PromQL Why rewrite? What are boosted? PROMETHEUS AND PROMQL The de facto standard in cloud-native monitor scenario rate(api_request_duration{host=“foo”}[5m]) More than a monitor: alert, visualize with many integrations PROMETHEUS AND PROMQL rate(api_request_duration{host=“foo”}[5m]) Operator Data Filter Range SELECT rate(val)0 码力 | 39 页 | 6.95 MB | 1 年前3 PromQL Got a BOOST: 用 Rust 重写 Prometheus 的查询引擎第三届中国 Rust 开发者大会 PromQL Got a BOOST: 用 Rust 重写 Prometheus 的查询引擎 Ruihang Xia @greptime.com Ruihang GitHub: waynexia Losing hair at Greptime Wanna sleep 10 hrs/day Learn JS every year Healing 02 the Engine 03 Rust Gives 04 Outlook 05 01 Background About Prometheus and PromQL Why rewrite? What are boosted? PROMETHEUS AND PROMQL The de facto standard in cloud-native monitor scenario rate(api_request_duration{host=“foo”}[5m]) More than a monitor: alert, visualize with many integrations PROMETHEUS AND PROMQL rate(api_request_duration{host=“foo”}[5m]) Operator Data Filter Range SELECT rate(val)0 码力 | 39 页 | 6.95 MB | 1 年前3
 秘猿先锋-文愿-Axon 应用链框架的 Rust 开发实践Rust 项目应用 Adapter 模式 3. 使用过程宏的监控埋点开发实践 4. 区块链间互操作性的实现 • 直接调用 Prometheus API • AOP(面向切片) • LLVM IR • … 如何优雅地在代码中加入埋点 ■ Prometheus API 1. 在 Rust 代码编译成 LLVM IR 之前解析 AST,找到需要埋点的函数 2. 为这些函数生成对应的监控指标定义代码0 码力 | 32 页 | 3.63 MB | 1 年前3 秘猿先锋-文愿-Axon 应用链框架的 Rust 开发实践Rust 项目应用 Adapter 模式 3. 使用过程宏的监控埋点开发实践 4. 区块链间互操作性的实现 • 直接调用 Prometheus API • AOP(面向切片) • LLVM IR • … 如何优雅地在代码中加入埋点 ■ Prometheus API 1. 在 Rust 代码编译成 LLVM IR 之前解析 AST,找到需要埋点的函数 2. 为这些函数生成对应的监控指标定义代码0 码力 | 32 页 | 3.63 MB | 1 年前3
 CeresDB Rust 生产实践 任春韶CeresDB – 历程 2018.02 2018.10 2019.02 ~ 2020.11 2021.9  自研存储引擎  1.0.0 版本发布  查询性能优化  Prometheus 协议支持  基于 InfluxDB 单机引擎研发 分布式方案  OpenTSDB 协议  内存时序数据库  存储计算分离架构  分级存储  永久代  CeresDB0 码力 | 22 页 | 6.95 MB | 1 年前3 CeresDB Rust 生产实践 任春韶CeresDB – 历程 2018.02 2018.10 2019.02 ~ 2020.11 2021.9  自研存储引擎  1.0.0 版本发布  查询性能优化  Prometheus 协议支持  基于 InfluxDB 单机引擎研发 分布式方案  OpenTSDB 协议  内存时序数据库  存储计算分离架构  分级存储  永久代  CeresDB0 码力 | 22 页 | 6.95 MB | 1 年前3
 Real world Rust
- Why and how we use Rust in TiKV主要组件 ● Asynchronous IO ○ mio ● Storage engine ○ RocksDB ● RPC ○ Protobuf PRC ● Metrics ○ Prometheus ● futures-rs ○ WIP ● rust-grpc ○ WIP eventloop scheduler scheduler raft router coprocessor0 码力 | 29 页 | 506.53 KB | 1 年前3 Real world Rust
- Why and how we use Rust in TiKV主要组件 ● Asynchronous IO ○ mio ● Storage engine ○ RocksDB ● RPC ○ Protobuf PRC ● Metrics ○ Prometheus ● futures-rs ○ WIP ● rust-grpc ○ WIP eventloop scheduler scheduler raft router coprocessor0 码力 | 29 页 | 506.53 KB | 1 年前3
共 4 条
- 1













