Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A8F4B10D4D for ; Fri, 7 Feb 2014 09:47:32 +0000 (UTC) Received: (qmail 49884 invoked by uid 500); 7 Feb 2014 09:47:30 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 49174 invoked by uid 500); 7 Feb 2014 09:47:21 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 49109 invoked by uid 99); 7 Feb 2014 09:47:19 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Feb 2014 09:47:19 +0000 Date: Fri, 7 Feb 2014 09:47:19 +0000 (UTC) From: "Christian Rolf (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-6665) Batching in CqlRecordWriter MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-6665?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13894348#comment-13894348 ] Christian Rolf commented on CASSANDRA-6665: ------------------------------------------- Thanks for the quick feedback John! The biggest issue we've seen is on larger rings, where the write tasks quickly run out of heap (caching is per replica). That's why I left the batching disabled by default. > Batching in CqlRecordWriter > --------------------------- > > Key: CASSANDRA-6665 > URL: https://issues.apache.org/jira/browse/CASSANDRA-6665 > Project: Cassandra > Issue Type: Improvement > Components: Hadoop > Environment: Cluster of 12 nodes, each node with 256-384 vnodes. RPC threads capped at 2048. > Reporter: Christian Rolf > Priority: Minor > Attachments: batchWrite.txt > > > We're writing from Pig map tasks, about 20 million records of one integer each. > For the case of 12 nodes, with 256-384 vnodes per node, we get around 4000 threads per mapper. This obviously overloads the nodes, since the number of RPC threads are capped, and the write fails. > Also, each transfer is only in the order of a few bytes of payload. Clearly batching is a good solution. -- This message was sent by Atlassian JIRA (v6.1.5#6160)