Return-Path: Delivered-To: apmail-hadoop-hbase-user-archive@minotaur.apache.org Received: (qmail 2171 invoked from network); 8 Dec 2009 20:55:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Dec 2009 20:55:10 -0000 Received: (qmail 79762 invoked by uid 500); 8 Dec 2009 20:55:10 -0000 Delivered-To: apmail-hadoop-hbase-user-archive@hadoop.apache.org Received: (qmail 79715 invoked by uid 500); 8 Dec 2009 20:55:09 -0000 Mailing-List: contact hbase-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hbase-user@hadoop.apache.org Delivered-To: mailing list hbase-user@hadoop.apache.org Received: (qmail 79705 invoked by uid 99); 8 Dec 2009 20:55:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Dec 2009 20:55:09 +0000 X-ASF-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ruslan.usifov@gmail.com designates 209.85.220.224 as permitted sender) Received: from [209.85.220.224] (HELO mail-fx0-f224.google.com) (209.85.220.224) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Dec 2009 20:55:07 +0000 Received: by fxm24 with SMTP id 24so5813549fxm.11 for ; Tue, 08 Dec 2009 12:54:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=2YP0BIAoDthfxy+tDSGWkMiB9tC0OvgJFtkwxjWy+5o=; b=RSDE+G/KEs28C8U2HVu7Mzz2qQgPMlOVLzGJlzXcRIt4j8Kdut2uhn9sZQ+4AoOHV9 hlTQxQWaj260YkCsSnY1GAeri4yVSEyGIuBLxTGjjOIYEsmWKpWKQ7MAJM1oIIum0hsR dzGLPGmtoEwxHBfo9ykqOCRc5aYgN9uh918WY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=JXWTB9/0D7dUKPhlcZRHggLg5bAoWdOZMTozep4VL81grPDARHxmJb5wFi6ru/rcvB UG62Sp3/5Hs8bfxeRIlSpn4z0Av7CJsUDFZeEFRrAVHc7lavt2ygp0rAP1JAl6Bv8gcg BLo3LEeQsZUM7PInTMSgKX+lBO9T/0IT+O6K4= MIME-Version: 1.0 Received: by 10.223.132.204 with SMTP id c12mr1234648fat.32.1260305685993; Tue, 08 Dec 2009 12:54:45 -0800 (PST) In-Reply-To: <9b048d180912080703s21ea880ame1bbdbc70d6eaf65@mail.gmail.com> References: <9b048d180912080703s21ea880ame1bbdbc70d6eaf65@mail.gmail.com> Date: Tue, 8 Dec 2009 23:54:45 +0300 Message-ID: <9b048d180912081254l40394881n5ccd71b5fc6375a4@mail.gmail.com> Subject: Concurrent reads throw thrift From: ruslan usifov To: hbase-user@hadoop.apache.org Content-Type: multipart/alternative; boundary=0023545bd658b8db95047a3dc80b --0023545bd658b8db95047a3dc80b Content-Type: text/plain; charset=ISO-8859-1 Hi! I have cluster from 3 machines: firts(srv1) have NameNode, DataNode, Hmaster, Hregionserver, Thrift on it second(srv2) have DataNode, Hregionserver, HQuorumPerr, Thrift on it. third(srv3) have DataNode, Hregionserver and have follow python program, that run in 8 separate process import random; import time; from thrift import Thrift from thrift.transport import TSocket, TTransport from thrift.protocol import TBinaryProtocol from hbase import ttypes from hbase.Hbase import Client, ColumnDescriptor, Mutation, BatchMutation def get_client(host): transport = TSocket.TSocket(host, 9090) # Buffering is critical. Raw sockets are very slow transport = TTransport.TBufferedTransport(transport) # Wrap in a protocol protocol = TBinaryProtocol.TBinaryProtocolAccelerated(transport) # Create a client to use the protocol encoder client = Client(protocol) # Connect! transport.open() return client clients = [get_client("192.168.0.241"), get_client("192.168.0.242")]; begin = time.time(); maxrange = 20000000 - 1; for i in xrange(500000): if (i != 0) and ((i % 10000) == 0): tm = time.time(); print tm - begin; begin = tm; client = clients[random.randint(0, len(clients) - 1)]; client.getRow("test", str(random.randint(0, maxrange))); print time.time() - begin; And i have very big latency (about 300 request per seconds). If i run that program in 4 process latency is slow but i think is not good (making about 1000 request per second) It's very strange that and cpu and discs are not 100% load Please help!!! What i do wrong? --0023545bd658b8db95047a3dc80b--