请原谅我起了这么一个标题党的名字。之前用 Fluentd 搭建过日志收集系统(参见:基于 fluentd 搭建日志收集系统),所以当再次需要搭建日志系统的时候,第一时间就想到了安利一波 Fluentd。结果在浏览官网的时候看到了 Fluent Bit,果断就被安利了。
Fluentd vs Fluent Bit
作为同一家公司出品的日志收集软件,Fluent Bit 自诞生起就不可避免的被拿来和 Fluentd 进行比较。首先说结论,我认为 Fluent Bit 并不是用来替代 Fluentd 的。我们不妨通过官网的介绍来看他们各自的定位:Fluentd 作为一个全功能的 Data Collector,而 Fluent Bit 是作为一个轻量级的 Data Forwarder。
Fluentd is an open source data collector for unified logging layer. Fluentd allows you to unify data collection and consumption for a better use and understanding of data.
Fluent Bit is a Fast and Lightweight Data Forwarder for Linux, OSX and BSD family operating systems. It has been made with a strong focus on performance to allow the collection of events from different sources without complexity.
Fluentd | Fluent Bit | |
---|---|---|
Scope | Containers / Servers | Containers / Servers |
Language | C & Ruby | C |
Memory | ~40MB | ~450KB |
Performance | High Performance | High Performance |
Dependencies | Built as a Ruby Gem, it requires a certain number of gems. | Zero dependencies, unless some special plugin requires them. |
Plugins | More than 650 plugins available | Around 35 plugins available |
License | Apache License v2.0 | Apache License v2.0 |
参考:
http://fluentbit.io/
https://www.fluentd.org/
3,338 total views, 3 views today