title: How do I configure Solr replication with multiple cores
body: <p>I have Solr running with multiple cores.
  Because of the heavy load, I want to set up a slave containing the exact same indexes.</p>
  
  <p>The documentation <a href="http://wiki.apache.org/solr/SolrReplication">http://wiki.apache.org/solr/SolrReplication</a> states "Add the replication request handler to solrconfig.xml for each core", but I only have one solrconfig.xml.</p>
  
  <p>My configuration:<br>
  Config: /data/solr/web/solr/conf/config files<br>
  Data: /data/solr/data/solr/core data dirs  </p>
  
  <p>Is it really necessary to copy the solrconfig.xml for each core?<br>
  And where should I put these multiple solrconfig files?</p>
  
  <p>solr.xml  </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
    &lt;solr persistent="true"&gt;
    &lt;property name="dih.username" value="user"/&gt;
    &lt;property name="dih.password" value="passwd"/&gt;
    &lt;property name="jdbclib" value="/usr/progress/dlc102b/java"/&gt;
    &lt;property name="dih.dburl" value="jdbc:datadirect:openedge://172.20.7.218:31380;databaseName=easource"/&gt; &lt;cores adminPath="/admin/cores"&gt;
      &lt;core instanceDir="/data/solr/web/trunk/" name="product" dataDir="/data/solr/data/trunk/product-swap"&gt;
        &lt;property name="dih-config" value="dih-config-product.xml"/&gt;
      &lt;/core&gt;
      &lt;core instanceDir="/data/solr/web/trunk/" name="product-swap" dataDir="/data/solr/data/trunk/product"&gt;
        &lt;property name="dih-config" value="dih-config-product.xml"/&gt;
      &lt;/core&gt;
      &lt;core instanceDir="/data/solr/web/trunk/" name="periodp" dataDir="/data/solr/data/trunk/periodp"&gt;
        &lt;property name="dih.config" value="dih-config-periodp.xml"/&gt;
      &lt;/core&gt;
      &lt;core instanceDir="/data/solr/web/trunk/" name="periodp-swap" dataDir="/data/solr/data/trunk/periodp-swap"&gt;
        &lt;property name="dih.config" value="dih-config-periodp.xml"/&gt;
      &lt;/core&gt;
    &lt;/cores&gt;
  &lt;/solr&gt;
  </code></pre>