Search code examples
solrapache-zookeepersolrcloud

Solrcloud - remove a node


I have a Solrcloud setup, which runs 3 ZKs and 3 Solrs (version 4.10.3). I would like to take out one of the Solr servers completely from this setup so that I only have 2 Solrs and 3 ZKs.

I've tried googling and the only results I can find are to remove replicas or collections but not to remove a node.

Any idea how I can remove a node in SolrCloud?


Solution

  • you can first remove shards and replica. using below command

    <SOLR_URL>/solr/admin/collections?action=DELETEREPLICA&collection=<Collection_name>&shard=<shard_name>&replica=<replica_node_naeme>
    

    The shard name (shard) and replica node name (coreNodeName) values can be found in the core.properties file located under /solr/server/solr/. For example: http://localhost:9501/solr/admin/collections?action=DELETEREPLICA&collection=wblib&shard=shard1&replica=core_node1

    Then you can delete the installation files for the removed Solr node.