[
https://issues.apache.org/jira/browse/FLUME-1535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13451988#comment-13451988
]
Ted Malaska commented on FLUME-1535:
------------------------------------
How it works:
1. The user will be able to define a byteCapacity and a
byteCapacityBufferPercentage.
2. Events byte size will be estimated from there body contents
3. On put bytes are added to current total
4. On commit any uncommitted takes are removed from the current byte total
5. On rollover any uncommitted puts are removed from the current byte total
> Ability to specify the capacity of MemoryChannel in bytes
> ---------------------------------------------------------
>
> Key: FLUME-1535
> URL: https://issues.apache.org/jira/browse/FLUME-1535
> Project: Flume
> Issue Type: Improvement
> Components: Channel
> Affects Versions: v1.2.0
> Reporter: Jayant Shekhar
> Assignee: Ted Malaska
> Labels: patch
> Fix For: v1.3.0
>
> Attachments: FLUME-1535-0.patch, FLUME-1535-1.patch
>
>
> Users should be able to specify the capacity of memory channel in bytes.
> Currently users are able to specify the capacity in terms of max number of
> events. This causes issues when the size of the events can vary significantly
> (a couple of KB to MB) and could easily result in the Flume agent running
> into OOM.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira