good point Shai!
On Thu, Jul 16, 2015 at 9:36 PM, Shai Erera <[email protected]> wrote: > An easier way (IMO) and more 'official' is to use the CLUSTERSTATUS ( > https://cwiki.apache.org/confluence/display/solr/Collections+API#CollectionsAPI-api18) > or OVERSEERSTATUS ( > https://cwiki.apache.org/confluence/display/solr/Collections+API#CollectionsAPI-api17) > API. > > The OVERSEERSTATUS returns a 'leader' item which says who is the overseer, > at least as far as I understand. Not sure what is returned in case there > are multiple nodes with the overseer role. > > The CLUSTERSTATUS returns an 'overseer' item with all nodes that have the > overseer role assigned. I'm usually using that API to query for the status > of my Solr cluster. > > Shai > > On Fri, Jul 17, 2015 at 3:55 AM, Erick Erickson <[email protected]> > wrote: > >> look at the overseer election ephemeral node in ZK, the first one in >> line is the current overseer. >> >> Best, >> Erick >> >> On Thu, Jul 16, 2015 at 3:42 AM, Markus Jelsma >> <[email protected]> wrote: >> > Hello - i need to run a thread on a single instance of a cloud so need >> to find out if current node is the overseer. I know we can already >> programmatically find out if this replica is the leader of a shard via >> isLeader(). I have looked everywhere but i cannot find an isOverseer. I did >> find the election stuff but i am unsure if that is what i need to use. >> > >> > Any thoughts? >> > >> > Thanks! >> > Markus >>
