storm trident 一个batch多大

You can increase the batch size by changing "tridentKafkaConfig.fetchSizeBytes" property.

Also, batch size is related with number of brokers and number of partitions.

For example, if you have 2 brokers and 3 partitions for each broker that means the total count of partition is 6.

y this way, the batch size equals to tridentKafkaConfig.fetchSizeBytes X total partition count.

if we assume that the tridentKafkaConfig.fetchSizeBytes is 1024X1024, the batch size equals to 6 MB.(3x2x1024x1024)bytes

相当于从kafka里面是批量读取的,然后形成storm中的一个batch

而且spout里面有一个buffer,应该也算是一个缓存,将正在处理的一部分数据,存在内存中,直到处理完

©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容