From solr-user-return-120193-apmail-lucene-solr-user-archive=lucene.apache.org@lucene.apache.org Tue Jan 26 12:55:01 2016 Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 56E2517602 for ; Tue, 26 Jan 2016 12:55:01 +0000 (UTC) Received: (qmail 75515 invoked by uid 500); 26 Jan 2016 12:54:58 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 75439 invoked by uid 500); 26 Jan 2016 12:54:58 -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 75427 invoked by uid 99); 26 Jan 2016 12:54:58 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jan 2016 12:54:58 +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 B6F79C2245 for ; Tue, 26 Jan 2016 12:54:57 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.019 X-Spam-Level: X-Spam-Status: No, score=-0.019 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=sematext-com.20150623.gappssmtp.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id xeHYUO-jHu_a for ; Tue, 26 Jan 2016 12:54:50 +0000 (UTC) Received: from mail-wm0-f54.google.com (mail-wm0-f54.google.com [74.125.82.54]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 6BE8D20E9B for ; Tue, 26 Jan 2016 12:54:50 +0000 (UTC) Received: by mail-wm0-f54.google.com with SMTP id l65so102797782wmf.1 for ; Tue, 26 Jan 2016 04:54:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sematext-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=Yd2DJXTIDMlD8D6Xnpd/r6Kepk7mo6LxqXBuuiyNFRY=; b=wne4sc+BwCoZv4rh7v2wwKLiqyrW5sYSWb9bwWgaZ57Y69BAjdNVaY07oMMaqyYBTS RIZdQQ7Qzo1iO1xgxCCFhL3rZnNJPeyctSMi7gC/sh6dk/ccH8ptF9lF7XeYQSQTSeeQ GQxz38ZF2qjiJCRTT4rePc8zRrxCL4WxivGBi9dJBYPFkXjhqj390ck+oiDHcu5ZIOwx b+i7+Uwi5pe69ChcyybSXANLJkX45VN5Wbv0Rg+8GHyEWbd7bfl1ANAQ0MUEEBCeS61F 4vq7aaKs2W5/5YVNRC1GlVS1uRduNVXxZB52g0J7erNlEfdadfjDYtCpXQQoBGh556kh dy0Q== 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-type :content-transfer-encoding; bh=Yd2DJXTIDMlD8D6Xnpd/r6Kepk7mo6LxqXBuuiyNFRY=; b=WaNSHXT3tXVLJ9vNprlvEoU5aiQ1ezU6Icap+I4NqFqRiYZ7jvxUxBSonYv0jF1EZL jc/5DoxhrL1dLsSN4VznsWXLkI+ZGasLHD7AfMRaZHP6g13Z378aivkxV8nSmBVBIT0V q334zjIDIHilM5vFAyJSoxQIm8tEEfBeznSgQn+RJpf0oRgFXXhvOTjXqXttaJNxGy2V aJP9sKCoOQ0ndhn1ElvpuM2KZ50DwtkloSZJLdKDYzQQdWCMoCMsqxFLPgULJQ6XOfgU JigzVAj6WwrApEK8WDh5av+c6geEzieOdVpEhnICRWoaVjOYNCEhWB3X5NSFj9GhA+/d g4Nw== X-Gm-Message-State: AG10YOSSbrxVfvInnLXZwrGrAtpNGFUOPraLkBokuvtzE31LiZIgvar85YYnlkXW8pRDtg== X-Received: by 10.194.216.35 with SMTP id on3mr22833713wjc.107.1453812890067; Tue, 26 Jan 2016 04:54:50 -0800 (PST) Received: from [192.168.0.107] (cable-77-221-19-30.dynamic.telemach.ba. [77.221.19.30]) by smtp.gmail.com with ESMTPSA id u12sm3418144wmu.10.2016.01.26.04.54.49 for (version=TLSv1/SSLv3 cipher=OTHER); Tue, 26 Jan 2016 04:54:49 -0800 (PST) Subject: Re: To Detect Wheter Core is Available To Post To: solr-user@lucene.apache.org References: From: Emir Arnautovic Message-ID: <56A76C9A.7020403@sematext.com> Date: Tue, 26 Jan 2016 13:54:50 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Hi Edwin, Assuming you are using SolrCloud - why do you need specific core? Can you use some of status actions from collection API - there is CLUSTERSTATUS action? Thanks, Emir On 26.01.2016 05:34, Edwin Lee wrote: > Hi All, > > Our team is using the Solr to process log and we met a problem in SOLR > posting. > > We want to detect the health of each core —- whether they are available to > post. We have to figure out ways to do that: > > 1. Using luke request . —- Cost is a bit high for core loading > 2. We have designed a cache and adding the hook when the core is open or > closed to record whether the core is loaded. —- *Question: If a core is > loaded, is there situation that we still cannot post data to it?* > 3. We try to post some meanless data with our unique id, and delete that > data within the same commit, for example, if we use json to post data, it > is like this, > > { > "add": { > "doc":{ > "id": "%%ID%%" > } > }, > "delete": { "id": "%%ID%%" }, > "commit": {}} > > *But we still not 100% sure whether it will mess up with our normal data.* > > What is the best way for this requirment. We want to consult your opinions. > > Thank you. > > Regards, > Edwin Lee > 20160126 > -- Monitoring * Alerting * Anomaly Detection * Centralized Log Management Solr & Elasticsearch Support * http://sematext.com/