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 1F485200C5D for ; Fri, 24 Mar 2017 05:38:44 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 1DB81160B84; Fri, 24 Mar 2017 04:38:44 +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 3DBEB160B83 for ; Fri, 24 Mar 2017 05:38:43 +0100 (CET) Received: (qmail 490 invoked by uid 500); 24 Mar 2017 04:38:41 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 476 invoked by uid 99); 24 Mar 2017 04:38:40 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Mar 2017 04:38:40 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 60B3DC31E5 for ; Fri, 24 Mar 2017 04:38:40 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.799 X-Spam-Level: X-Spam-Status: No, score=-0.799 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=walmartlabs.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id sXEr0hz7GtWm for ; Fri, 24 Mar 2017 04:38:39 +0000 (UTC) Received: from ppes-mail-n5.wal-mart.com (ppes-mail-n5.wal-mart.com [161.168.133.165]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 769FD5FAD1 for ; Fri, 24 Mar 2017 04:38:38 +0000 (UTC) Received: from pps.filterd (ppes-mail-n5.wal-mart.com [127.0.0.1]) by ppes-mail-n5.wal-mart.com (8.16.0.17/8.16.0.17) with SMTP id v2O4ZrPm008708 for ; Thu, 23 Mar 2017 23:38:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=walmartlabs.com; h=from : to : subject : date : message-id : references : in-reply-to : content-type : content-id : content-transfer-encoding : mime-version; s=mail; bh=x4z/7z4iUYGWyjl4FPLpc2dQqO+kAIeKrAD57zWG7Jw=; b=Tx0996tzgNYnur5pi7h6pL6zCKZNFkGZLYRn9psVq0QYOV3m6EJEQ4VHsjYeHdtpVyZf tV0zE+RNupWAW13izQW+sYOlcAYg+M/4q/AV64Qza5/y20gWp5aFlhBpY0xc8ZI49b7h a0W41cCxLYs27AK8FzlrzM2U7JP7V19qAapRg3/+dwpNGvUQYJaoMSRVgL2kHFtx3xNW FppQVIeGEsitqqnkouzoPu1P/G8LeTOtco4B3sM4RdpQJmrL6s/XnQhbUD2u/IVMdxQT m9wwI+U4aGfti2iypS8vSU8VaBA/S31OQMYer9g5nhQZXfwVycuJN/SSbD26dy1TNurF aA== Received: from honts35018.homeoffice.wal-mart.com (oser500438.wal-mart.com [10.24.3.31]) by ppes-mail-n5.wal-mart.com with ESMTP id 29ba1vn6rv-2 for ; Thu, 23 Mar 2017 23:38:30 -0500 Received: from PHONT10105USA.homeoffice.Wal-Mart.com (10.24.137.103) by HONTS35018.homeoffice.Wal-Mart.com (172.27.184.35) with Microsoft SMTP Server (TLS) id 14.3.279.2; Thu, 23 Mar 2017 23:37:30 -0500 Received: from NAM01-BY2-obe.outbound.protection.outlook.com (10.10.197.231) by hybrid.wal-mart.com (10.24.137.103) with Microsoft SMTP Server (TLS) id 14.3.279.2; Thu, 23 Mar 2017 23:37:30 -0500 Received: from BN1P100MB0167.NAMP100.PROD.OUTLOOK.COM (129.75.54.86) by BN1P100MB0166.NAMP100.PROD.OUTLOOK.COM (129.75.54.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.947.22; Fri, 24 Mar 2017 04:37:28 +0000 Received: from BN1P100MB0167.NAMP100.PROD.OUTLOOK.COM ([129.75.54.86]) by BN1P100MB0167.NAMP100.PROD.OUTLOOK.COM ([129.75.54.86]) with mapi id 15.01.0947.022; Fri, 24 Mar 2017 04:37:28 +0000 From: Suresh Pendap To: "solr-user@lucene.apache.org" Subject: Re: unable to get more throughput with more threads Thread-Topic: unable to get more throughput with more threads Thread-Index: AQHSpDMajcsmMUTcnUeFknMBpDB04qGjMYEAgAAZd4D//6gCgA== Date: Fri, 24 Mar 2017 04:37:28 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: lucene.apache.org; dkim=none (message not signed) header.d=none;lucene.apache.org; dmarc=none action=none header.from=walmartlabs.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [216.207.42.140] x-ms-office365-filtering-correlation-id: 613c6261-d1b7-4c5f-2831-08d4726f7a5a x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(2017030254075);SRVR:BN1P100MB0166; x-microsoft-exchange-diagnostics: 1;BN1P100MB0166;7:m8XU8yUkcPzDP9L5igr2uas/3dfpczBne5GzIB25vFZtlFMuj2/Y14vifrTM6tlbznMLVLNUUBx9djXE57m9amj+6b1mFGAsuYhs67hhXEjc8QFszXFq/E+0C8imr32enMfH0Bo2Ey3nlv1iFTOC0VekATMDJtUzx3575fO1OLsh48soRXMrRpsa3NVFhCF0uQZslTwsUh+fsbK+FzZydtFl2RACitO8Gg+0zJ+08tr0gaE49BExyWmUMAEHH/7gG2l97K5RgqgK7Hx1EY6F9p3sqyA+kg3yBOpcCHNtMo3IEFxXJFvD/tDSijzBdksIPQGR95NXRGd5n7rexm04FA==;20:QannxPAqlFVEbUBQpfviTOrDjyP6DRiVsXgpY/ukPiStVtg8uGpFYIZEvm5s8JoKzD8IDZ1zbOA0vnCzEE8xsitndzSQuzwhFoYKcdT/FeI99mIMGLzLDVFWSUJDeUOhdd/fOchf3sIJ95JSf89PZP7K3bbj5wS++rzO4a0DC+5WPZWIqg0PjxZajwAJap/Yok/33V4M/eHGcn5s70yjChehcPj3aT51CoI/BJoIPYkjafTnHywFq6YPcC7NrzVkxdMTAV3KlH1eO6MQuG7uhvowhrcYScpMt/Nub1ZlfS2BmG1aNdNxKiWew2ruxqD2QUu/W+HqX3J28vYdQCqe+MuQuMFufxlnnrk/3vjbgtriVgEiSzwj+WSuQY+pL4etsDUri1UoSS2EMh0PUScxSK8MiQSRBKXRhcDe6BTk4HiFCnIW0FBJq8j4VGyvYe115RpP0z56D8nS0hyWhpEKN/46iVaFmUnKzzf/hSIksy1WdwF8y07BC0GMlF4oc5ZG x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(158342451672863); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(6040375)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6041248)(20161123558025)(20161123560025)(20161123562025)(20161123555025)(20161123564025)(6072148);SRVR:BN1P100MB0166;BCL:0;PCL:0;RULEID:;SRVR:BN1P100MB0166; x-forefront-prvs: 0256C18696 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(6009001)(39450400003)(24454002)(377454003)(110136004)(81166006)(36756003)(54356999)(8676002)(2351001)(3846002)(2900100001)(5640700003)(53546009)(8936002)(6506006)(66066001)(25786009)(38730400002)(305945005)(5660300001)(2950100002)(229853002)(6436002)(6916009)(86362001)(3280700002)(50986999)(80792005)(102836003)(2501003)(189998001)(76176999)(3660700001)(6116002)(6486002)(53936002)(2906002)(122556002)(6512007);DIR:OUT;SFP:1101;SCL:1;SRVR:BN1P100MB0166;H:BN1P100MB0167.NAMP100.PROD.OUTLOOK.COM;FPR:;SPF:None;MLV:sfv;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-ID: <3A337E59E4B3A04F982732E4088CA4A8@NAMP100.PROD.OUTLOOK.COM> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Mar 2017 04:37:28.4026 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3cbcc3d3-094d-4006-9849-0d11d61f484d X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1P100MB0166 X-OriginatorOrg: walmartlabs.com X-CFilter-Loop: Reflected X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-03-24_03:,, signatures=0 archived-at: Fri, 24 Mar 2017 04:38:44 -0000 Edwin, The heap was not being used much, only 1GB of heap was being used out of 8GB. I do have space to allocate more to the heap size. I was reading in some SOLR performance blogs that it is better not to use large heap size, instead it is better to provide lot of space to the Operating system Disk cache so that maximum documents stay in memory in the buffer cache. Regards Suresh On 3/23/17 7:52 PM, "Zheng Lin Edwin Yeo" wrote: >I also did find that beyond 10 threads for 8GB heap size , there isn't >much >improvement with the performance. But you can increase your heap size a >little if your system allows it. > >By the way, which Solr version are you using? > >Regards, >Edwin > > >On 24 March 2017 at 09:21, Matt Magnusson wrote: > >> Out of curosity, what is your index size? I'm trying to do something >> similar with maximizing output, I'm currently looking at streaming >> expressions which I'm seeing some interesting results for, I'm also >> finding that the direct mass query route seems to hit a wall for >> performance. I'm also finding that about 10 threads seems to be an >> optimum number. >> >> On Thu, Mar 23, 2017 at 8:10 PM, Suresh Pendap >> wrote: >> > Hi, >> > I am new to SOLR search engine technology and I am trying to get some >> performance numbers to get maximum throughput from the SOLR cluster of a >> given size. >> > I am currently doing only query load testing in which I randomly fire >>a >> bunch of queries to the SOLR cluster to generate the query load. I >> understand that it is not the ideal workload as the >> > ingestion and commits happening invalidate the Solr Caches, so it is >> advisable to perform query load along with some documents being >>ingested. >> > >> > The SOLR cluster was made up of 2 shards and 2 replicas. So there were >> total 4 replicas serving the queries. The SOLR nodes were running on an >>LXD >> container with 12 cores and 88GB RAM. >> > The heap size allocated was 8g min and 8g max. All the other SOLR >> configurations were default. >> > >> > The client node was running on an 8 core VM. >> > >> > I performed the test with 1 thread, 10 client threads and 50 client >> threads. I noticed that as I increased the number of threads, the query >> latency kept increasing drastically which I was not expecting. >> > >> > Since my initial test was randomly picking queries from a file, I >> decided to keep things constant and ran the program which fired the same >> query again and again. Since it is the same query, all the documents >>will >> > be in the Cache and the query response time should be very fast. I was >> also expecting that with 10 or 50 client threads, the query latency >>should >> not be increasing. >> > >> > The throughput increased only up to 10 client threads but then it was >> same for 50 threads, 100 threads and the latency of the query kept >> increasing as I increased the number of threads. >> > The query was returning 2 documents only. >> > >> > The table below summarizes the numbers that I was saying with a single >> query. >> > >> > >> > >> > >> > >> > #No of Client Nodes >> > #No of Threads 99 pct Latency 95 pct latency throughput >> CPU Utilization Server Configuration >> > >> > 1 1 9 ms 7 ms 180 reqs/sec 8% >> > >> > Heap size: ms=3D8g, mx=3D8g >> > >> > default configuration >> > >> > >> > 1 10 400 ms 360 ms 360 reqs/sec 10% >> > >> > Heap size: ms=3D8g, mx=3D8g >> > >> > default configuration >> > >> > >> > >> > >> > I also ran the client program on the SOLR server node in order to rule >> our the network latency factor. On the server node also the response >>time >> was higher for 10 threads, but the amplification was smaller. >> > >> > I am getting an impression that probably my query requests are getting >> queued up and limited due to probably some thread pool size on the >>server >> side. However I saw that the default jetty.xml does >> > have the thread pool of min size of 10 and max of 10000. >> > >> > Is there any other internal SOLR thread pool configuration which might >> be limiting the query response time? >> > >> > I wanted to check with the community if what I am seeing is abnormal >> behavior, what could be the issue? Is there any configuration that I >>can >> tweak to get better query response times for more load? >> > >> > Regards >> > Suresh >> > >>