Return-Path: X-Original-To: apmail-flume-user-archive@www.apache.org Delivered-To: apmail-flume-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9E6D9DF83 for ; Tue, 6 Nov 2012 21:38:54 +0000 (UTC) Received: (qmail 69493 invoked by uid 500); 6 Nov 2012 21:38:54 -0000 Delivered-To: apmail-flume-user-archive@flume.apache.org Received: (qmail 69448 invoked by uid 500); 6 Nov 2012 21:38:54 -0000 Mailing-List: contact user-help@flume.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@flume.apache.org Delivered-To: mailing list user@flume.apache.org Received: (qmail 69438 invoked by uid 99); 6 Nov 2012 21:38:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Nov 2012 21:38:54 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of brock@cloudera.com designates 209.85.216.44 as permitted sender) Received: from [209.85.216.44] (HELO mail-qa0-f44.google.com) (209.85.216.44) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Nov 2012 21:38:47 +0000 Received: by mail-qa0-f44.google.com with SMTP id c4so698084qae.17 for ; Tue, 06 Nov 2012 13:38:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:x-gm-message-state; bh=VXtjNr282aKQ0slx5pKlpfixSG9rSf5x6KLJK8arxyU=; b=bWLo58zxxGZJLue5AtgBxiIGHPQ6ERzM1cjxBKBFMAe4pVj1nG17dWWLdCoB/bb8jZ ZodUQZzjb/W1rtuusa+0fTHlOevHs8hBGpIiegGUTdFz5f1nUoSevbxCm1rzd55OQC3R YR3QuuoE+JTV644fgczaIL6rmzO3S3wMKIJsEzwrcKI3FNrXuGCc2ex2oButHd0Fldm5 Ag4oAsezl39yCIHTJZiIpV+BgD7J94hhGEzmlRzrDiS8W+66qLinKB0pLjKgPDlfLoNg TIO1oJRF6+wn/tDDa9YhrAeeZIqEUs2OF7XZ9d6mzRkMVFUDijXyfedIed9ngmiMEyTS Zv/w== Received: by 10.224.33.135 with SMTP id h7mr3794944qad.26.1352237906965; Tue, 06 Nov 2012 13:38:26 -0800 (PST) MIME-Version: 1.0 Received: by 10.49.120.200 with HTTP; Tue, 6 Nov 2012 13:38:06 -0800 (PST) In-Reply-To: <1352237525.85801.YahooMailNeo@web162401.mail.bf1.yahoo.com> References: <1352237525.85801.YahooMailNeo@web162401.mail.bf1.yahoo.com> From: Brock Noland Date: Tue, 6 Nov 2012 15:38:06 -0600 Message-ID: Subject: Re: Guarantees of the memory channel for delivering to sink To: user@flume.apache.org, Rahul Ravindran Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQlOyM5wjZqoLHwLg/Qs1u7InR//zjuPzX/VTljRh7ewkuDtX7hR77SDbqek52aY9mTCnmEr X-Virus-Checked: Checked by ClamAV on apache.org Your still going to be writing out all events, no? So how would file channel do more IO than that? On Tue, Nov 6, 2012 at 3:32 PM, Rahul Ravindran wrote: > Hi, > I am very new to Flume and we are hoping to use it for our log > aggregation into HDFS. I have a few questions below: > > FileChannel will double our disk IO, which will affect IO performance on > certain performance sensitive machines. Hence, I was hoping to write a > custom Flume source which will use a memory channel, and which will perform > checkpointing. The checkpoint will be updated each time we perform a > successive insertion into the memory channel. (I realize that this results > in a risk of data, the maximum size of which is the capacity of the memory > channel). > > As long as there is capacity in the memory channel buffers, does the > memory channel guarantee delivery to a sink (does it wait for > acknowledgements, and retry failed packets)? This would mean that we need to > ensure that we do not exceed the channel capacity. > > I am writing a custom source which will use the memory channel, and which > will catch a ChannelException to identify any channel capacity issues(so, > buffer used in the memory channel is full because of lagging sinks/network > issues etc). Is that a reasonable assumption to make? > > Thanks, > ~Rahul. -- Apache MRUnit - Unit testing MapReduce - http://incubator.apache.org/mrunit/