HCL Commerce Version 9.1.16.0 or later

Adding additional shards

Solr search sharding is included as an optional configuration in the HCL Commerce 9.1.16.0 Helm Chart. By default, the Helm Chart supports three shards, shardA, shardB and shardC. If additional shards are required, they can be added to your configuration manually.

Procedure

  1. Modify your deployment values.yaml.
    Create duplicate shard entry the same pattern as shardA, shardB, and shardC. For example, create similar subsections named shardD, and shardE.
  2. Create the templates within the templates folder.
    Create copies of the following files for your newly created shard. Ensure that you modify them to conform with the same pattern.
    • search-app-shard-a-pvc.yaml
    • search-app-shard-a-service.yaml
    • search-app-shard-a.yaml
  3. Modify search-app-master.yaml to add the new shard definitions.
    Again, use the existing definitions as a reference, and ensure that you update the following subsections:
    • initContainers
    • volumes
    • volumeMounts
  4. Modify the sharding input properties file, di-parallel-process-multijvms.properties, to include the new shards.

    Again, use existing patterns.

    For more information, see Sharding input properties file.

Results

Your HCL Commerce deployment contains your newly configured Solr search shards.