Created
November 28, 2017 13:24
-
-
Save rupzme/9f2d43e8a429a83878e9987877bff465 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
------ solr index issue ------- | |
<target name="setupSolr" description="Creates the SOLR standalone setup by copying the SOLR setup from Pangaea2 source code."> | |
<copy todir="${local.solr.setup.dir.path}"> | |
<fileset dir="${source.pangaea2.solr.base.dir.path}"/> | |
</copy> | |
</target> | |
https://wiki.hybris.com/pages/viewpage.action?pageId=308361467 | |
#Hybris Master config | |
in: | |
/Users/test/Hybris/pangaea-newbuild-test/solr_master/server/solr/configsets/default/conf/solrconfig.xml | |
change: | |
<requestHandler name="/replication" class="solr.ReplicationHandler" > | |
<!-- | |
To enable simple master/slave replication, uncomment one of the | |
sections below, depending on whether this solr instance should be | |
the "master" or a "slave". If this instance is a "slave" you will | |
also need to fill in the masterUrl to point to a real machine. | |
--> | |
<lst name="master"> | |
<str name="enable">${enable.master:false}</str> | |
<str name="replicateAfter">commit</str> | |
<str name="replicateAfter">startup</str> | |
<str name="confFiles">schema.xml,stopwords.txt</str> | |
</lst> | |
<!-- | |
<lst name="slave"> | |
<str name="masterUrl">http://your-master-hostname:port/solr/${solr.core.name}/replication</str> | |
<str name="pollInterval">00:00:60</str> | |
</lst> | |
--> | |
</requestHandler> | |
#Hybris Slave Config | |
in: | |
/Users/test/Hybris/pangaea-newbuild-test/solr_slave/server/solr/configsets/default/conf/solrconfig.xml | |
change: | |
<requestHandler name="/replication" class="solr.ReplicationHandler" > | |
<!-- | |
To enable simple master/slave replication, uncomment one of the | |
sections below, depending on whether this solr instance should be | |
the "master" or a "slave". If this instance is a "slave" you will | |
also need to fill in the masterUrl to point to a real machine. | |
--> | |
<!-- | |
<lst name="master"> | |
<str name="replicateAfter">commit</str> | |
<str name="replicateAfter">startup</str> | |
<str name="confFiles">schema.xml,stopwords.txt</str> | |
</lst> | |
--> | |
<lst name="slave"> | |
<str name="enable">${enable.slave:false}</str> | |
<str name="masterUrl">http://${master.address:127.0.0.1}:8983/solr/${solr.core.name}/replication</str> | |
<str name="pollInterval">00:00:60</str> | |
</lst> | |
</requestHandler> | |
master: | |
./solr -Denable.master=true | |
slave: | |
./solr -p 8984 -Denable.slave=true -Dmaster.address=127.0.0.1 | |
add slave endpoint to solr server config: | |
Reindex will replicate to slave & queries to the storefront will show in slave & master logs. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment