Excluding hosts from Solr-distributed queries
You can exclude hosts from Solr-distributed queries.
To exclude hosts from Solr-distributed queries, perform these steps on each node that you want to send queries to.
- Navigate to the solr/conf directory.The default Solr conf location depends on the type of installation:
Installer-Services and Package installations /usr/share/dse/resources/solr/conf Installer-No Services and Tarball installations dse_install_location/resources/solr/conf - Open the exclude.hosts file, and add the list of nodes to be excluded. Separate each name with a newline character.
- Update the list of routing endpoints on each node by calling the JMX operation
refreshEndpoints()
on the com.datastax.bdp:type=ShardRouter mbean.