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 E1030200BA7 for ; Fri, 21 Oct 2016 18:10:57 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id DF843160AE8; Fri, 21 Oct 2016 16:10:57 +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 301AA160ADE for ; Fri, 21 Oct 2016 18:10:57 +0200 (CEST) Received: (qmail 33990 invoked by uid 500); 21 Oct 2016 16:10:55 -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 33974 invoked by uid 99); 21 Oct 2016 16:10:55 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Oct 2016 16:10:55 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 814C6C0118 for ; Fri, 21 Oct 2016 16:10:54 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.321 X-Spam-Level: X-Spam-Status: No, score=-0.321 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, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id WUvgULD0jk6S for ; Fri, 21 Oct 2016 16:10:53 +0000 (UTC) Received: from mail-qk0-f180.google.com (mail-qk0-f180.google.com [209.85.220.180]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id CBC1A5F23D for ; Fri, 21 Oct 2016 16:10:52 +0000 (UTC) Received: by mail-qk0-f180.google.com with SMTP id o68so160634456qkf.3 for ; Fri, 21 Oct 2016 09:10:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=juMJKT2O94LRriAeIplRN6mX6lvEGHsKvPH6bNm6KqA=; b=OKqdV2jZTnChT8nodtQa3XlGT8PGl1wANt0Zynit2BghlYWHyT43I0UcsAQ78oAj99 mzZ65wQEbGbT7xuvC5hFlPVADwYqJ8SmW59xdcdHzjZSOOE2xgt2sCV/YlApE++rFl7d Dchl8UzS03Erg59qbh1A0z9dtVELY2XhclTc0Ftp5+aVZF6lM46q5rtt0VoJmjE6H1hN OiteDp59do1GcuxJQOcay99B7rvHa3K73zatz66rlsNiSpbsNQm8S/27GBF4tHyT7GBy yJVX1Yy6u6Zpbk1HL6UEW19lVbYYM1E95glPFocMrRxIhPKfwx0InrIX6kp8R0xlOqVx auyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=juMJKT2O94LRriAeIplRN6mX6lvEGHsKvPH6bNm6KqA=; b=Jhjy3WS2v6+DH/xKrfWCgE6YpRImyYzHz/JVIJNAomNgYY9V72BxIP+EnEsgRSrEsz D8eIkMydkZOPy8TYU/I5gkRhgcgXrDXrzm51BUnhsfo7vpxLgFbrVMVRLVxzB7QF2gIV r9uIXu0kkwVB3ALNdQJ3Sy057zNidLz1RCLxCwxsBfNKWoTAsXpjgdK2dLyZOZ0JgR3g fa89moBivyBsMI1hv9nhxU8JqwM1eLx/3gC6ZnuFl/echvLvvYCfiBMHYv4XJgOfDRun jusETP8phPUfMAKaR2VMPDmqVMkefHQMF96KNE1t5YErIch/cNukIsov2CXSRcuNYJ8M +4Qw== X-Gm-Message-State: ABUngveyFn4fg/1dSdWXXEFSYHiH2Dslz8rktonoFJQSN4Gtcftp/B+V/5Dux7CJLiCJEQ== X-Received: by 10.55.116.7 with SMTP id p7mr1875389qkc.1.1477066251720; Fri, 21 Oct 2016 09:10:51 -0700 (PDT) Received: from [192.168.100.3] (pool-108-48-93-124.washdc.fios.verizon.net. [108.48.93.124]) by smtp.gmail.com with ESMTPSA id 21sm1683039qkg.27.2016.10.21.09.10.50 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Oct 2016 09:10:50 -0700 (PDT) Subject: Re: solr shutdown To: solr-user@lucene.apache.org References: <104a2574-46f7-465a-72c7-6094cf067bdc@gmx.net> From: Joe Obernberger Message-ID: <6deb9b05-95b3-3c23-3bb0-fb05715cc9f9@gmail.com> Date: Fri, 21 Oct 2016 12:10:50 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit archived-at: Fri, 21 Oct 2016 16:10:58 -0000 Thanks Shawn - We've had to increase this to 300 seconds when using a large cache size with HDFS, and a fairly heavily loaded index routine (3 million docs per day). I don't know if that's why it takes a long time to shutdown, but it can take a while for solr cloud to shutdown gracefully. If it does not, you end up with write.lock files for some (if not all) of the shards, and have to delete them manually before restarting. -Joe On 10/21/2016 9:01 AM, Shawn Heisey wrote: > On 10/21/2016 6:56 AM, Hendrik Haddorp wrote: >> I'm running solrcloud in foreground mode (-f). Does it make a >> difference for Solr if I stop it by pressing ctrl-c, sending it a >> SIGTERM or using "solr stop"? > All of those should produce the same result in the end -- Solr's > shutdown hook will be called and a graceful shutdown will commence. > > Note that in the case of the "bin/solr stop" command, the default is to > only wait five seconds for graceful shutdown before proceeding to a > forced kill, which for a typical install, means that forced kills become > the norm rather than the exception. We have an issue to increase the > max timeout, but it hasn't been done yet. > > I strongly recommend anyone going into production should edit the script > to increase the timeout. For the shell script I would do at least 60 > seconds. The Windows script just does a pause, not an intelligent wait, > so going that high probably isn't advisable on Windows. > > Thanks, > Shawn >