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 Per Qvindesland <pe...@me.com> on 2017/12/11 12:48:05 UTC

Solrcloud Drupal 7

Hi All

I have a solr cloud with zookeeper 3.4.10 and solr 5.4.1, i on 3 centos 7 instances in AWS, I intend to use the cluster for Drupal 7 search.

At the moment we have 2 instances running in production with each having their own solr installation (no cloud) but I would like to improve the redundancy and maybe even the performance, I followed http://www.francelabs.com/blog/tutorial-deploying-solrcloud-6-on-amazon-ec2/ to get the cloud up and running but I need some guidance on how to add in a new shard/collection so I can point the drupal instances to the new solr cloud, does anyone have any information on how to do this? as you can see i have no experience with solr cloud :)

Regards
Per




Re: Solrcloud Drupal 7

Posted by Fengtan <fe...@gmail.com>.
One way to provide Solr with the config files is to upload them to
ZooKeeper
https://lucene.apache.org/solr/guide/6_6/using-zookeeper-to-manage-configuration-files.html#UsingZooKeepertoManageConfigurationFiles-UploadingConfigurationFilesusingbin_solrorSolrJ

This can be achieved by copying the config files from
search_api_solr/solr-conf/x.x to your Solr server and then running the
'bin/solr zk upconfig' utility to upload them into a new configset. Once
you have done that, you can create a new collection with that configset.

Not sure if the zk upconfig utility is available in Solr 5 though, so you
may want to have a look at the reference guide for Solr 5:
https://archive.apache.org/dist/lucene/solr/ref-guide/



On Mon, Dec 11, 2017 at 11:06 AM, Per Qvindesland <pe...@me.com> wrote:

> Hi
>
> Thanks for the information.
>
> Once the collection is created how do you drop such as the schema.xml to
> the folder locations, I have used rsync -av search_api_solr/solr-conf/5.x
> /var/solr/data/search_shard2_replica1/ on one instance but I can’t see
> the files being replicated between the instances.
>
> Regards
> Per
>
>
>
>
> > On 11 Dec 2017, at 14:57, Fengtan <fe...@gmail.com> wrote:
> >
> > Hi,
> >
> > Drupal can talk to a SolrCloud cluster the same way it talks to a
> > standalone Solr server, i.e. by using the Search API suite
> > https://www.drupal.org/project/search_api
> >
> > You will have to create the collection yourself on Solr though (Drupal
> will
> > not do it for you).
> >
> > If you want to take advantage of SolrCloud's fault tolerance capabilities
> > then you may have to:
> > * either use an external load balancer in front of your SolrCloud cluster
> > * or implement a smart client in Drupal -- I opened this ticket some time
> > ago https://www.drupal.org/project/search_api_solr/issues/2858645
> >
> >
> >
> > On Mon, Dec 11, 2017 at 7:48 AM, Per Qvindesland <pe...@me.com> wrote:
> >
> >> Hi All
> >>
> >> I have a solr cloud with zookeeper 3.4.10 and solr 5.4.1, i on 3 centos
> 7
> >> instances in AWS, I intend to use the cluster for Drupal 7 search.
> >>
> >> At the moment we have 2 instances running in production with each having
> >> their own solr installation (no cloud) but I would like to improve the
> >> redundancy and maybe even the performance, I followed
> >> http://www.francelabs.com/blog/tutorial-deploying-
> >> solrcloud-6-on-amazon-ec2/ to get the cloud up and running but I need
> >> some guidance on how to add in a new shard/collection so I can point the
> >> drupal instances to the new solr cloud, does anyone have any
> information on
> >> how to do this? as you can see i have no experience with solr cloud :)
> >>
> >> Regards
> >> Per
> >>
> >>
> >>
> >>
>
>

Re: Solrcloud Drupal 7

Posted by Per Qvindesland <pe...@me.com>.
Hi 

Thanks for the information.

Once the collection is created how do you drop such as the schema.xml to the folder locations, I have used rsync -av search_api_solr/solr-conf/5.x /var/solr/data/search_shard2_replica1/ on one instance but I can’t see the files being replicated between the instances.

Regards
Per




> On 11 Dec 2017, at 14:57, Fengtan <fe...@gmail.com> wrote:
> 
> Hi,
> 
> Drupal can talk to a SolrCloud cluster the same way it talks to a
> standalone Solr server, i.e. by using the Search API suite
> https://www.drupal.org/project/search_api
> 
> You will have to create the collection yourself on Solr though (Drupal will
> not do it for you).
> 
> If you want to take advantage of SolrCloud's fault tolerance capabilities
> then you may have to:
> * either use an external load balancer in front of your SolrCloud cluster
> * or implement a smart client in Drupal -- I opened this ticket some time
> ago https://www.drupal.org/project/search_api_solr/issues/2858645
> 
> 
> 
> On Mon, Dec 11, 2017 at 7:48 AM, Per Qvindesland <pe...@me.com> wrote:
> 
>> Hi All
>> 
>> I have a solr cloud with zookeeper 3.4.10 and solr 5.4.1, i on 3 centos 7
>> instances in AWS, I intend to use the cluster for Drupal 7 search.
>> 
>> At the moment we have 2 instances running in production with each having
>> their own solr installation (no cloud) but I would like to improve the
>> redundancy and maybe even the performance, I followed
>> http://www.francelabs.com/blog/tutorial-deploying-
>> solrcloud-6-on-amazon-ec2/ to get the cloud up and running but I need
>> some guidance on how to add in a new shard/collection so I can point the
>> drupal instances to the new solr cloud, does anyone have any information on
>> how to do this? as you can see i have no experience with solr cloud :)
>> 
>> Regards
>> Per
>> 
>> 
>> 
>> 


Re: Solrcloud Drupal 7

Posted by Fengtan <fe...@gmail.com>.
Hi,

Drupal can talk to a SolrCloud cluster the same way it talks to a
standalone Solr server, i.e. by using the Search API suite
https://www.drupal.org/project/search_api

You will have to create the collection yourself on Solr though (Drupal will
not do it for you).

If you want to take advantage of SolrCloud's fault tolerance capabilities
then you may have to:
* either use an external load balancer in front of your SolrCloud cluster
* or implement a smart client in Drupal -- I opened this ticket some time
ago https://www.drupal.org/project/search_api_solr/issues/2858645



On Mon, Dec 11, 2017 at 7:48 AM, Per Qvindesland <pe...@me.com> wrote:

> Hi All
>
> I have a solr cloud with zookeeper 3.4.10 and solr 5.4.1, i on 3 centos 7
> instances in AWS, I intend to use the cluster for Drupal 7 search.
>
> At the moment we have 2 instances running in production with each having
> their own solr installation (no cloud) but I would like to improve the
> redundancy and maybe even the performance, I followed
> http://www.francelabs.com/blog/tutorial-deploying-
> solrcloud-6-on-amazon-ec2/ to get the cloud up and running but I need
> some guidance on how to add in a new shard/collection so I can point the
> drupal instances to the new solr cloud, does anyone have any information on
> how to do this? as you can see i have no experience with solr cloud :)
>
> Regards
> Per
>
>
>
>