Memory Channel 老师能解释一下最后条的内容设置吗

来源:11-4 -使用Flume采集Log4j产生的日志

慕运维7479159

2018-01-10

Memory Channel¶

The events are stored in an in-memory queue with configurable max size. It’s ideal for flows that need higher throughput and are prepared to lose the staged data in the event of a agent failures. Required properties are in bold.

Property Name

Default

Description

type    –    The component type name, needs to be memory    

capacity    100    The maximum number of events stored in the channel    

transactionCapacity    100    The maximum number of events the channel will take from a source or give to a sink per transaction    

keep-alive    3    Timeout in seconds for adding or removing an event    

byteCapacityBufferPercentage    20    Defines the percent of buffer between byteCapacity and the estimated total size of all events in the channel, to account for data in headers. See below.    

byteCapacity    see description    Maximum total bytes of memory allowed as a sum of all events in this channel. The implementation only counts the Event body, which is the reason for providing the byteCapacityBufferPercentage configuration parameter as well. Defaults to a computed value equal to 80% of the maximum memory available to the JVM (i.e. 80% of the -Xmx value passed on the command line). Note that if you have multiple memory channels on a single JVM, and they happen to hold the same physical events (i.e. if you are using a replicating channel selector from a single source) then those event sizes may be double-counted for channel byteCapacity purposes. Setting this value to 0 will cause this value to fall back to a hard internal limit of about 200 GB.    


写回答

1回答

Michael_PK

2018-01-10

这信息自己翻译下就行啊,还让我给你翻译....

1
1
慕运维7479159
老师,这个不是翻译的问题,如果仅仅是翻译,我通过谷歌翻译了,结果读了一下,里面的内容读不明白,原因是没有实际的经验,很难理解其中的意思,如果仅仅翻译就不麻烦老师了
2018-01-10
共1条回复

Spark Streaming实时流处理项目实战

Flume+Kafka+Spark Streaming 构建通用实时流处理平台

1404 学习 · 571 问题

查看课程