当前位置:网站首页>【Flume】batchSize和transactionCapacity区别
【Flume】batchSize和transactionCapacity区别
2022-07-30 10:30:00 【全栈程序员站长】
大家好,又见面了,我是你们的朋友全栈君。
batchSize是针对Source和Sink提出的一个概念,它用来限制source和sink对event批量处理的。
即一次性你可以处理batchSize个event,这个一次性就是指在一个事务中。
当你处理的event数量超出了batchSize,那么事务就会提交了。
注意,这里有一个隐晦的地方,就是batchSize一定不能大于transactionCapacity
transactionCapacity这个概念来自于通道中,不同于batchSize(Source,Sink),说白了,就是batchSize与transactionCapactiy相互传递数据,好比两个人相互递交文件,所以batchSize的容量要小于在channel内的transactionCapactiy,否则文件会溢出。
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/129454.html原文链接:https://javaforall.cn
边栏推荐
- 【 HMS core 】 【 】 the FAQ HMS Toolkit collection of typical questions 1
- PyQt5 - draw text on window
- Re19: Read the paper Paragraph-level Rationale Extraction through Regularization: A case study on European Court
- mysql与redis 区别
- 【HMS core】【Analytics Kit】【FAQ】如何解决华为分析付费分析中付款金额显示为0的问题?
- Flask's routing (app.route) detailed
- Basemap and Seaborn
- vscode中写markdown格式笔记的配置过程和相关语法
- what is this method called
- Scrapy爬虫之网站图片爬取
猜你喜欢

Neural Network Study Notes 4 - Autoencoder (including sparse, stacked) (updated)

Redis Desktop Manager 2022.4.2 发布

360发布面向未来的EDR,全方位守护政企用户终端安全

PyQt5 - Drawing different types of straight lines

加密和安全

第3章 信息收集

RandLA-Net复现记录

Practical Walkthrough | Calculate Daily Average Date or Time Interval in MySQL

Security Thought Project Summary

实现web实时消息推送的7种方案
随机推荐
In 2022, the top will be accepted cca shut the list
Drag and drop events, dataTransfer, getBoundingClientRect
Flink_CDC construction and simple use
MySQL | Subqueries
Security思想项目总结
Meikle Studio-Look at Hongmeng Device Development Practical Notes 7-Network Application Development
typescript入门之helloworld
数据库事务,JDBC操作和数据类型
Re20:读论文的先例:普通法的信息理论分析
ospf2 two-point two-way republish (question 2)
第2章 常用安全工具
Basemap and Seaborn
360发布面向未来的EDR,全方位守护政企用户终端安全
【HMS core】【FAQ】HMS Toolkit典型问题合集1
张量篇-初步
Quick Start Tutorial for flyway
Neural Ordinary Differential Equations
OC- about alloc and dealloc (haven't started writing yet)
再有人问你分布式事务,把这篇扔给他
Js array operating mobile for encapsulation