Return-Path: X-Original-To: apmail-zookeeper-user-archive@www.apache.org Delivered-To: apmail-zookeeper-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 451E310636 for ; Mon, 25 Nov 2013 06:44:07 +0000 (UTC) Received: (qmail 31987 invoked by uid 500); 25 Nov 2013 06:44:06 -0000 Delivered-To: apmail-zookeeper-user-archive@zookeeper.apache.org Received: (qmail 31802 invoked by uid 500); 25 Nov 2013 06:44:02 -0000 Mailing-List: contact user-help@zookeeper.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@zookeeper.apache.org Delivered-To: mailing list user@zookeeper.apache.org Received: (qmail 31794 invoked by uid 99); 25 Nov 2013 06:44:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Nov 2013 06:44:01 +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 devaki.vamsi@gmail.com designates 209.85.217.170 as permitted sender) Received: from [209.85.217.170] (HELO mail-lb0-f170.google.com) (209.85.217.170) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Nov 2013 06:43:57 +0000 Received: by mail-lb0-f170.google.com with SMTP id w7so2819562lbi.15 for ; Sun, 24 Nov 2013 22:43:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=l6vFwy0j/jAI9mcSuaD/XJSWbul1kFOrwLwnvVCxV0w=; b=so8yFJbM/dB1NfXtzvjBX05/zyBA8x7fPXKD4C2ZXSAtnoLzkIDbsrRE6Sv1ztpWym /lieMCJIXvP2lbQofOsW/UaHIQ7IRl0lZD4xPHwB4YOe8LLr7P6+yEmEgky5tzw560RL Z3izRXbWjsrmzbQir4tFavSOZ2ctNDuZ/8vhv7tjpD2noR5qKBnR5IPS12pHboPkA/fz vfj/+wo8ITjv6NxX3kvefzZLxtLvthFNh450bgS+t9tXhNfyL3xXex57z41P4Oq/FQ+m ZtBX9oyJ3biCp5A5loBv1szXoGVFuuw53ahDryTCor0iivXSWeu+xoQcn9jek6Fm+j6v eQ9w== X-Received: by 10.152.10.99 with SMTP id h3mr21759895lab.13.1385361815691; Sun, 24 Nov 2013 22:43:35 -0800 (PST) MIME-Version: 1.0 Received: by 10.114.83.230 with HTTP; Sun, 24 Nov 2013 22:43:14 -0800 (PST) In-Reply-To: References: From: Vamsi Devaki Date: Mon, 25 Nov 2013 12:13:14 +0530 Message-ID: Subject: Re: Multi threaded queue consumers To: user@zookeeper.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org On Sun, Nov 24, 2013 at 9:57 PM, Sznajder ForMailingList wrote: > Hi, > > I share with you a very problematic (for me...) issue, I encountered. > > I wrote a very simple Queue (Producer and consumer). > > The producer, put to the ZK Queue items (integer) when the queue reached > half of its initial size. > And Consumer just picks from the list and prints to a log file the consumed > item and sleeps some time. > > In addition, I defined the Consumer to be multi-threaded > > I tested the following configurations on different quorums (when each server > is 16 cores) > > Quorum of 2 servers : One consumer and one producer, 2 threads for the > consumer: > In 5 minutes, I consumed 1320 items. > > When I make the consumer to be 16 threads, I get: 10890 items consumed. All > is OK. > > > > > However, when I move to a quorum of three, with 2 consumers (and each > consumer 16 threads), I suddenly get: > In 5 minutes 12634 items consumed. That means, that adding a new consumer > did not enhance the throughput of the system. > > > I am blocked with this issue, several days, and any help will be welcome!! > > Benjamin > Hello Benjamin, Did you measure add/delete thru-put for your cluster? If not, can you check if it is significantly higher than 12k? This should help to get you started: https://github.com/brownsys/zookeeper-benchmark Regards, Vamsi