cancel
Showing results for 
Search instead for 
Did you mean: 

Solr Cluster Configuration

adit_patel
Confirmed Champ
Confirmed Champ
How do you configure 2 Solr nodes in a clustered mode for 4 Alfresco 4.1.4 cluster

4 Alfresco node cluster   ->   2 Solr node cluster

I would appreciate if someone can point me the step by step documentation. I did not find it anywhere

Thanks,
Adit
5 REPLIES 5

mrogers
Star Contributor
Star Contributor
You put a load balancer in front of the solr nodes.   (for the search service in Alfresco to use)   And then decide whether each instance of solr tracks one of the 4, or more via another load balancer for solr to track the repo.  

Another option is you add a repo to the 2 solr nodes to the cluster so each instance of solr tracks its own repository instance.  

Is there official documentation or recommendation of approach provided by Alfresco for its enterprise versions?

glaenen
Champ in-the-making
Champ in-the-making
Did you find any more information? I'm trying a setup with multiple solr nodes.

With each solr node tracking one of the Alfresco nodes, would you get a correct search result through the loadbalancer in front? Or just the result that was indexed by the solr node you are balanced to?
Would you use a SOLR cluster ( http://wiki.apache.org/solr/ClusteringComponent#Document_Clustering) ?

Thanks,
Glenn

glaenen
Champ in-the-making
Champ in-the-making
Is there a way to setup a solr slave server with the alfresco solr implementation?
I tried disabling the master and enabling the slave section for the replication requestHandler in solrconfig.xml,
But it seems like the masterUrl parameter must be http while alfresco solr is using https.

Using an http url throws the following error, while the url works in a browser but gets redirected to the https url:

2013-07-18 15:35:00,028  ERROR [solr.handler.SnapPuller] [pool-3-thread-1] Master at: http://localhost:8080/solr/archive/replication is not available. Index fetch failed. Exception: Request failed for the url org.apache.commons.httpclient.methods.PostMethod@31976629

Using the https url throws the error:

2013-07-18 15:32:00,023  ERROR [solr.handler.SnapPuller] [pool-3-thread-1] Master at: https://localhost:8443/solr/archive/replication is not available. Index fetch failed. Exception: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

How can I get this setup working?
Thanks,
Glenn Laenen

ajamit24
Champ in-the-making
Champ in-the-making
HI Adit,

I am new to alfresco and need to set up solr cluster with alfresco cluster on alfresco 5. Please share the steps with me.

We need to install 2 alfresco nodes in cluster and 2 solr nodes in cluster.