Pega - External Search - Where is the settings to set Primary or Replicate shards ?
Hi,
I have 3 VMs, each installed with Pega, SRS and Elastic Search.
The shards in Elastic Search only set to 1 Primary and 1 Replica. This seems to cause search issue in the Pega Application. No apparent error in the logs, but having discrepencies of cache size of search.
Is there settings in Pega to set to 1 Primary and 2 Replica ?
@MingEeL4
Pega itself does not provide a direct setting to configure the number of primary or replica shards for external Elasticsearch. Those settings are controlled at the Elasticsearch cluster level, not inside Pega. By default, when you create an index, Elasticsearch assigns 1 primary and 1 replica unless you specify otherwise. If you want 1 primary and 2 replicas, you need to update the index settings in Elasticsearch using its API (for example,
PUT /<index>/_settings). Pega’s Search and Reporting Service (SRS) will then use the updated index configuration automatically. Make sure all three VMs are part of the same Elasticsearch cluster, so the replicas can distribute properly. Also, double-check that the SRS nodes are pointing to the same cluster, otherwise you’ll continue to see search cache inconsistencies.