Ich habe Solr mit mehreren Kernen ausgeführt. Wegen der hohen Last möchte ich einen Slave einrichten, der exakt dieselben Indizes enthält.Wie konfiguriere ich Solr-Replikation mit mehreren Kernen
Die Dokumentation http://wiki.apache.org/solr/SolrReplication gibt an: "Fügen Sie den Replikationsanforderungshandler zu solrconfig.xml für jeden Kern hinzu", aber ich habe nur eine solrconfig.xml.
Meine Konfiguration:
Config:/data/Solr/web/Solr/conf/config Dateien
Daten:/data/Solr/data/Solr/Kerndaten dirs
Ist es wirklich notwendig zu kopieren die solrconfig.xml für jeden Kern?
Und wo sollte ich diese mehreren solrconfig-Dateien?
solr.xml
<?xml version="1.0" encoding="UTF-8" ?>
<solr persistent="true">
<property name="dih.username" value="user"/>
<property name="dih.password" value="passwd"/>
<property name="jdbclib" value="/usr/progress/dlc102b/java"/>
<property name="dih.dburl" value="jdbc:datadirect:openedge://172.20.7.218:31380;databaseName=easource"/> <cores adminPath="/admin/cores">
<core instanceDir="/data/solr/web/trunk/" name="product" dataDir="/data/solr/data/trunk/product-swap">
<property name="dih-config" value="dih-config-product.xml"/>
</core>
<core instanceDir="/data/solr/web/trunk/" name="product-swap" dataDir="/data/solr/data/trunk/product">
<property name="dih-config" value="dih-config-product.xml"/>
</core>
<core instanceDir="/data/solr/web/trunk/" name="periodp" dataDir="/data/solr/data/trunk/periodp">
<property name="dih.config" value="dih-config-periodp.xml"/>
</core>
<core instanceDir="/data/solr/web/trunk/" name="periodp-swap" dataDir="/data/solr/data/trunk/periodp-swap">
<property name="dih.config" value="dih-config-periodp.xml"/>
</core>
</cores>
</solr>
Können Sie Ihre 'solr.xml' veröffentlichen, wo Sie Ihre Kerne konfiguriert haben? – javanna
Ich habe solr.xml hinzugefügt – DionS
Danke, genau was ich dachte. Schau dir meine Antwort an. – javanna