To increase search performance, I tried to add a replica to my cluster. Initially, I measured a response time of around 700ms for a specific request with a single node with a primary shard. After adding a node and a replica shard to the cluster, it takes averagely 2000ms to get the result of the request (so it almost tripled).
I'm using these configs for the replica :
cluster.name: findmyfpstore
node.name: fmfs_r1
node.master: false
network.host: ...
http.port: ...
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts: ['...']
index.number_of_shards: 1
index.number_of_replicas: 1
Am I doing something wrong ? Feel free to tell me if you need more informations, I'm a beginner at ElasticSearch.
Thanks a lot!
EDIT: I tried with 2 shards, 1 replica, it doesn't change much