当前位置:网站首页>Flume learning III
Flume learning III
2022-06-30 09:52:00 【Keep-upup】
Flume Business

flume Streaming processing has two transactions Put Business and Take Business
Put The flow of a transaction is ,source And channel Communicating yes ,doput Write data to temporary buffer putlist, It's triggering doCommit Submitted to the channel, if channel Full or otherwise abnormal , It will trigger doRollback Roll back to source Waiting for resubmission .
Take Business :sink And channel communicate , Put the data into Takelist Inside ,sink Again from Talelist Pull data from it , If an exception occurs during data transmission , The trigger rollback take takelist Data rollback to channel Memory queue .
Flume Agent internals

Important components :
ChannelSelector The purpose of this is to select Event Which one will be sent to Channel. There are two types of them , Namely Replicating( Copy ) and Multiplexing( Multiplexing ).
ReplicatingSelector Will be the same Event To all Channel,Multiplexing According to the phase Principle of due , Will be different Event To different Channel.
SinkProcessor common Yes 3、 ... and Kind of class type , branch other yes DefaultSinkProcessor 、 LoadBalancingSinkProcessor and FailoverSinkProcessor DefaultSinkProcessor Yes Should be Of yes single individual Of Sink , LoadBalancingSinkProcessor and FailoverSinkProcessor The corresponding is Sink Group,LoadBalancingSinkProcessor Negative... Can be achieved Load balancing function ,FailoverSinkProcessor Can realize the function of fail over .
Flume topology
Simple series connection :

This pattern is to put more than one flume The sequence is connected , From the initial source From the beginning to the end sink The transfer of Destination storage system . This mode is not recommended to bridge too many flume Number ,flume Too much will not only affect the transmission rate , And once a node is in transit flume Downtime , It will affect the whole transmission system .
Replication and multiplexing :
Flume Support the flow of events to one or more destinations . This mode can copy the same data to multiple channel in , Or distribute different data to different channel in ,sink You can choose to send to different destinations The earth .
Load balancing and fail over :
Flume Support the use of multiple sink Logically, there is a sink Group ,sink Group with different SinkProcessor Can achieve load balancing and error recovery function .
polymerization :

This pattern is our most common , It's also very practical , daily web Applications are usually distributed on hundreds of servers , The great Even thousands of 、 Tens of thousands of servers . Generated log , It's also very troublesome to deal with . use flume This combination of It can solve this problem very well , One for each server flume Collect logs , Transfer to a centralized log collector flume, And so on flume Upload to hdfs、hive、hbase etc. , Log analysis .
边栏推荐
- Based on svelte3 X desktop UI component library svelte UI
- ACM intensive training graph theory exercise 3 in the summer vacation of 2020 [problem solving]
- 【ARK UI】HarmonyOS ETS的启动页的实现
- Terminal -- Zsh of terminal three swordsmen
- Bloom filter
- MySQL knowledge summary (useful for thieves)
- MCU firmware packaging Script Software
- JVM garbage collector G1 & ZGC details
- Datatabletomodellist entity class
- 【AGC】构建服务3-认证服务示例
猜你喜欢

【新书推荐】MongoDB Performance Tuning

IDC released the report on China's software defined storage and hyper convergence market in the fourth quarter of 2020, and smartx hyper convergence software ranked first in the financial industry

Techtarget: Interpretation of the basic concept of super fusion cloud

Electron, which can wrap web page programs into desktop applications

Microsoft. Bcl. Async usage summary -- in Net framework 4.5 project Net framework version 4.5 and above can use async/await asynchronous feature in C 5
![[new book recommendation] mongodb performance tuning](/img/2c/e5a814df4412a246c703ca548a4f68.png)
[new book recommendation] mongodb performance tuning

桂林 穩健醫療收購桂林乳膠100%股權 填補乳膠產品線空白

CRF (conditional random field) learning summary

MySQL-- Entity Framework Code First(EF Code First)

Valuenotifier and valuelistenablebuilder in fluent
随机推荐
utils 协程
JVM tuning tool commands (notes)
Properties of string
Dart development skills
[ubuntu-mysql 8 installation and master-slave replication]
Niuke IOI weekly competition 20 popularization group (problem solving)
JWT expiration processing - single token scheme
MySQL优化
OCX child thread cannot trigger event event (forward)
Practice of super integration and transformation of core production business of public funds
3.集成eslint、prettier
【新书推荐】Cleaning Data for Effective Data Science
八大排序(二)
Eight sorts (I)
Difference between bow and cbow
[new book recommendation] mongodb performance tuning
Redis docker master-slave mode and sentinel
Comparison problems encountered in recent study
Cb/s Architecture - Implementation Based on cef3+mfc
[new book recommendation] cleaning data for effective data science