Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8468B9B1D for ; Fri, 7 Oct 2011 22:16:54 +0000 (UTC) Received: (qmail 34659 invoked by uid 500); 7 Oct 2011 22:16:52 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 34576 invoked by uid 500); 7 Oct 2011 22:16:52 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 34499 invoked by uid 99); 7 Oct 2011 22:16:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Oct 2011 22:16:52 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Oct 2011 22:16:51 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id A74EF2AECA6 for ; Fri, 7 Oct 2011 22:16:30 +0000 (UTC) Date: Fri, 7 Oct 2011 22:16:30 +0000 (UTC) From: "Ted Dunning (Commented) (JIRA)" To: dev@lucene.apache.org Message-ID: <2061862650.10275.1318025790686.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <560922570.26875.1316012530080.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (SOLR-2765) Shard/Node states MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SOLR-2765?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13123257#comment-13123257 ] Ted Dunning commented on SOLR-2765: ----------------------------------- I don't think that you need all nodes to watch all nodes. What you need is a directory of assigned states that a central overseer sets. Each node will watch their assignment to see which shards to serve and what state to assume. Then you need the live_nodes directory where all nodes can advertise an ephemeral showing their current status including which shards served and any other information. Since this is SOLR, XML is a natural format for that. The only watcher on the live_nodes directory and the node files in that directory is the overseer. If a node dies, ZK will send notifications to all live query connections and the overseer. It is also nice to have the current serving state for query connections to be in a file or in directory form. This file could be updated (atomically) by nodes as they start or stop serving shards, but would have to be updated by the overseer on node failure. Using a per shard directory allows the list of nodes serving a shard to be handled as ephemerals, but it is a bit less desirable because zknode names have to contain node references which is an example of name/content confusion. Since atomic update is easy in ZK, the file implementation is probably better. The update to current shard state will ultimately cause a notification to be sent to each live query connection. > Shard/Node states > ----------------- > > Key: SOLR-2765 > URL: https://issues.apache.org/jira/browse/SOLR-2765 > Project: Solr > Issue Type: Sub-task > Components: SolrCloud, update > Reporter: Yonik Seeley > Fix For: 4.0 > > Attachments: incremental_update.patch, shard-roles.patch > > > Need state for shards that indicate they are recovering, active/enabled, or disabled. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org