Thanks Erick.  That cleared my confusion.

I have a follow up question -  If I run the CREATE command with 4 nodes in
createNodeSet, I thought 2 leaders and 2 followers will be created
automatically. Thats not the case, however.

http://serv001:5258/solr/admin/collections?action=CREATE&name=Main&numShards=2&maxShardsPerNode=1&createNodeSet=
 serv001:5258_solr, serv002:5258_solr,serv003:5258_solr, serv004:5258_solr

I still get the same response.  I see 2 leaders being created, but I do not
see other 2 nodes show up as followers in the cloud page in Solr Admin UI.
 It looks like collection was not created for those 2 nodes at all.

Is there additional step involved to add them?

On Mon, Sep 8, 2014 at 12:11 PM, Erick Erickson <erickerick...@gmail.com>
wrote:

> Ahhh, this is a continual source of confusion. I've started a one-man
> campaign to talk about "leaders" and "followers" when relevant...
>
> _Every_ node is a "replica". This is because a node can be a leader or
> follower, and the role can change.
>
> So your case is entirely normal. These nodes are probably the leaders
> too, and will remain so while you add more replicas/followers.
>
> Best,
> Erick
>
> On Mon, Sep 8, 2014 at 11:20 AM, Ethan <eh198...@gmail.com> wrote:
> > I am trying to setup 2 shard cluster with 2 replicas with dedicated nodes
> > for replicas.  I have 4 node SolrCloud setup that I am trying to shard
> > using collections api .. (Like
> >
> https://wiki.apache.org/solr/SolrCloud#Example_C:_Two_shard_cluster_with_shard_replicas_and_zookeeper_ensemble
> > )
> >
> > I ran this command -
> >
> >
> http://serv001:5258/solr/admin/collections?action=CREATE&name=Main&numShards=2&maxShardsPerNode=1&createNodeSet=
> >  serv001:5258_solr, serv002:5258_solr
> >
> > Response -
> >
> > <response>
> > <lst name="responseHeader">
> > <int name="status">0</int>
> > <int name="QTime">3932</int>
> > </lst>
> > <lst name="success">
> > <lst>
> > <lst name="responseHeader">
> > <int name="status">0</int>
> > <int name="QTime">2982</int>
> > </lst>
> > <str name="core">Main_shard2_replica1</str>
> > </lst>
> > <lst>
> > <lst name="responseHeader">
> > <int name="status">0</int>
> > <int name="QTime">3005</int>
> > </lst>
> > <str name="core">Main_shard1_replica1</str>
> > </lst>
> > </lst>
> > </response>
> >
> > I want to know what *_replica1 or *_replica2 means?  Are they actually
> > replicas and not the shards?  I intended to add 2 more nodes as dedicated
> > replication nodes.  How to accomplish that?
> >
> > Would appreciate any pointers.
> >
> > -E
>

Reply via email to