Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 545F6200BC1 for ; Tue, 1 Nov 2016 15:42:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 52D71160AF7; Tue, 1 Nov 2016 14:42:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id BFF2D160B02 for ; Tue, 1 Nov 2016 15:41:59 +0100 (CET) Received: (qmail 25954 invoked by uid 500); 1 Nov 2016 14:41:58 -0000 Mailing-List: contact dev-help@flume.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flume.apache.org Delivered-To: mailing list dev@flume.apache.org Received: (qmail 25859 invoked by uid 99); 1 Nov 2016 14:41:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Nov 2016 14:41:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 9C6DD2C2A66 for ; Tue, 1 Nov 2016 14:41:58 +0000 (UTC) Date: Tue, 1 Nov 2016 14:41:58 +0000 (UTC) From: "Theodore michael Malaska (JIRA)" To: dev@flume.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (FLUME-3020) Improve HDFSEventSink Escape Ingestion by more then 10x by not getting InetAddress on every record MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 01 Nov 2016 14:42:00 -0000 [ https://issues.apache.org/jira/browse/FLUME-3020?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Theodore michael Malaska updated FLUME-3020: -------------------------------------------- Attachment: flume-3020.patch Cache the local host in a static variable. We can do this because there is zero chance the local host will change for a life of a JVM. > Improve HDFSEventSink Escape Ingestion by more then 10x by not getting InetAddress on every record > -------------------------------------------------------------------------------------------------- > > Key: FLUME-3020 > URL: https://issues.apache.org/jira/browse/FLUME-3020 > Project: Flume > Issue Type: Improvement > Reporter: Theodore michael Malaska > Attachments: flume-3020.patch > > > If you are use escaping the current code will call InetAddress on every record. Which will result is a huge impact to performance. > TotalTime,8403, > totalEventTakeTime,1498, > totalWriteTime,1981, > totalWriterSetupTime,65, > commitTime,201, > flushTime,18, > startTrans,7, > The rest is all InetAddress -- This message was sent by Atlassian JIRA (v6.3.4#6332)