You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Bill Au <bi...@gmail.com> on 2015/08/28 16:10:16 UTC
solrcloud and core swapping
Is core swapping supported in SolrCloud? If I have a 5 nodes SolrCloud
cluster and I do a core swap on the leader, will the core be swapped on the
other 4 nodes as well? Or do I need to do a core swap on each node?
Bill
Re: solrcloud and core swapping
Posted by Upayavira <uv...@odoko.co.uk>.
It doesn't matter which node you do it on. And, you can replace an
existing alias by just creating another one with the same name.
Upayavira
On Mon, Aug 31, 2015, at 02:04 PM, Bill Au wrote:
> Thank, Shawn. So I only need to issue the command to update the alias on
> one of the node in the SolrCloud cluster, right? Should I do it on the
> leader or it doesn't matter which node I do it one?
>
> Bill
>
> On Fri, Aug 28, 2015 at 10:35 AM, Shawn Heisey <ap...@elyograg.org>
> wrote:
>
> > On 8/28/2015 8:25 AM, Shawn Heisey wrote:
> > > Instead, use collection aliasing. Create collections named something
> > > like foo_0 and foo_1, and update the alias "foo" to point to whichever
> > > of them is currently live. Your queries and update requests will never
> > > need to know about foo_0 and foo_1 ... only the coordinating part of
> > > your system, where you would normally do your core swapping, needs to
> > > know about those.
> >
> > You might also want to have a foo_build alias pointing to the *other*
> > collection for any "full rebuild" functionality, so it can also use a
> > static collection name.
> >
> > Thanks,
> > Shawn
> >
> >
Re: solrcloud and core swapping
Posted by Bill Au <bi...@gmail.com>.
Thank, Shawn. So I only need to issue the command to update the alias on
one of the node in the SolrCloud cluster, right? Should I do it on the
leader or it doesn't matter which node I do it one?
Bill
On Fri, Aug 28, 2015 at 10:35 AM, Shawn Heisey <ap...@elyograg.org> wrote:
> On 8/28/2015 8:25 AM, Shawn Heisey wrote:
> > Instead, use collection aliasing. Create collections named something
> > like foo_0 and foo_1, and update the alias "foo" to point to whichever
> > of them is currently live. Your queries and update requests will never
> > need to know about foo_0 and foo_1 ... only the coordinating part of
> > your system, where you would normally do your core swapping, needs to
> > know about those.
>
> You might also want to have a foo_build alias pointing to the *other*
> collection for any "full rebuild" functionality, so it can also use a
> static collection name.
>
> Thanks,
> Shawn
>
>
Re: solrcloud and core swapping
Posted by Shawn Heisey <ap...@elyograg.org>.
On 8/28/2015 8:25 AM, Shawn Heisey wrote:
> Instead, use collection aliasing. Create collections named something
> like foo_0 and foo_1, and update the alias "foo" to point to whichever
> of them is currently live. Your queries and update requests will never
> need to know about foo_0 and foo_1 ... only the coordinating part of
> your system, where you would normally do your core swapping, needs to
> know about those.
You might also want to have a foo_build alias pointing to the *other*
collection for any "full rebuild" functionality, so it can also use a
static collection name.
Thanks,
Shawn
Re: solrcloud and core swapping
Posted by Shawn Heisey <ap...@elyograg.org>.
On 8/28/2015 8:10 AM, Bill Au wrote:
> Is core swapping supported in SolrCloud? If I have a 5 nodes SolrCloud
> cluster and I do a core swap on the leader, will the core be swapped on the
> other 4 nodes as well? Or do I need to do a core swap on each node?
When you're running SolrCloud, swapping any of the cores might really
screw things up. I think it might be a good idea for Solr to return a
"not supported in cloud mode" failure on certain CoreAdmin actions.
Instead, use collection aliasing. Create collections named something
like foo_0 and foo_1, and update the alias "foo" to point to whichever
of them is currently live. Your queries and update requests will never
need to know about foo_0 and foo_1 ... only the coordinating part of
your system, where you would normally do your core swapping, needs to
know about those.
Thanks,
Shawn