Updated Branches: refs/heads/trunk 90bb15383 -> 0d0437347
FLUME-2267. Increase default transactionCapacity for FileChannel from 1000 to 10000 (Udai Kiran Potluri via Mike Percy) Project: http://git-wip-us.apache.org/repos/asf/flume/repo Commit: http://git-wip-us.apache.org/repos/asf/flume/commit/0d043734 Tree: http://git-wip-us.apache.org/repos/asf/flume/tree/0d043734 Diff: http://git-wip-us.apache.org/repos/asf/flume/diff/0d043734 Branch: refs/heads/trunk Commit: 0d04373473e302a3155b12945e3350cee760c151 Parents: 90bb153 Author: Mike Percy <[email protected]> Authored: Sat Dec 14 00:51:57 2013 -0800 Committer: Mike Percy <[email protected]> Committed: Sat Dec 14 00:51:57 2013 -0800 ---------------------------------------------------------------------- .../org/apache/flume/channel/file/FileChannelConfiguration.java | 2 +- flume-ng-doc/sphinx/FlumeUserGuide.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/flume/blob/0d043734/flume-ng-channels/flume-file-channel/src/main/java/org/apache/flume/channel/file/FileChannelConfiguration.java ---------------------------------------------------------------------- diff --git a/flume-ng-channels/flume-file-channel/src/main/java/org/apache/flume/channel/file/FileChannelConfiguration.java b/flume-ng-channels/flume-file-channel/src/main/java/org/apache/flume/channel/file/FileChannelConfiguration.java index c2dcffc..10ca11f 100644 --- a/flume-ng-channels/flume-file-channel/src/main/java/org/apache/flume/channel/file/FileChannelConfiguration.java +++ b/flume-ng-channels/flume-file-channel/src/main/java/org/apache/flume/channel/file/FileChannelConfiguration.java @@ -39,7 +39,7 @@ public class FileChannelConfiguration { * Maximum number of put/take events in a transaction. Default: 1000 */ public static final String TRANSACTION_CAPACITY = "transactionCapacity"; - public static final int DEFAULT_TRANSACTION_CAPACITY = 1000; + public static final int DEFAULT_TRANSACTION_CAPACITY = 10000; /** * Interval at which checkpoints should be taken. Default 30s (ms) */ http://git-wip-us.apache.org/repos/asf/flume/blob/0d043734/flume-ng-doc/sphinx/FlumeUserGuide.rst ---------------------------------------------------------------------- diff --git a/flume-ng-doc/sphinx/FlumeUserGuide.rst b/flume-ng-doc/sphinx/FlumeUserGuide.rst index 335a991..7a41efb 100644 --- a/flume-ng-doc/sphinx/FlumeUserGuide.rst +++ b/flume-ng-doc/sphinx/FlumeUserGuide.rst @@ -2139,7 +2139,7 @@ checkpointDir ~/.flume/file-channel/checkpoi useDualCheckpoints false Backup the checkpoint. If this is set to ``true``, ``backupCheckpointDir`` **must** be set backupCheckpointDir -- The directory where the checkpoint is backed up to. This directory **must not** be the same as the data directories or the checkpoint directory dataDirs ~/.flume/file-channel/data Comma separated list of directories for storing log files. Using multiple directories on separate disks can improve file channel peformance -transactionCapacity 1000 The maximum size of transaction supported by the channel +transactionCapacity 10000 The maximum size of transaction supported by the channel checkpointInterval 30000 Amount of time (in millis) between checkpoints maxFileSize 2146435071 Max size (in bytes) of a single log file minimumRequiredSpace 524288000 Minimum Required free space (in bytes). To avoid data corruption, File Channel stops accepting take/put requests when free space drops below this value
