Reducing the Number of Replicas

You can reduce the number of Solr replicas if several are visible on a single instance.

Context

Your current configuration shows multiple Solr replicas on one instance. Due to your customer's requirements, you would like to scale it down to the default setup of one replica and one shard for one instance.

Procedure

  1. Go to Collections in the Solr dashboard.
  2. On the list of shards, expand the details of the shard with multiple replicas.
  3. Select and remove the unneeded replica by clicking the red X next to it.
  4. Confirm the operation when prompted.
  5. To make the change permanent, update the configuration of SAP Commerce Cloud:
    1. In properties, set the n value in solr.config.%s.replicationFactor = n to your desired number, where %s is the Solr config name (the default name is Default) and n is the number of replicas
    2. In Backoffice, go to Start of the navigation pathAdministration Cockpit Next navigation step Search and Navigation Next navigation step Facet Search ConfigurationEnd of the navigation path and edit the search entry configuration by setting the number of shards and replication factor to 1 in Cloud Mode Configuration.

Results

When executed successfully, one replica is allocated to the affected shard. View the result in Start of the navigation pathCloud Next navigation step GraphEnd of the navigation path.