# Performance is low when using cluster mode

**URL:** <https://discuss.elastic.co/t/performance-is-low-when-using-cluster-mode/343964>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [September 27, 2023, 9:23am UTC](https://discuss.elastic.co/t/performance-is-low-when-using-cluster-mode/343964 "2023-09-27T09:23:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndreWanga](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewanga/32/126047_2.png) [@AndreWanga](https://discuss.elastic.co/u/AndreWanga)\
**Post date:** [September 27, 2023, 9:23am UTC](https://discuss.elastic.co/t/performance-is-low-when-using-cluster-mode/343964/1 "2023-09-27T09:23:12Z")

</div>

### Elasticsearch Version

7.4.0

### Java Version

from official docker image

### OS Version

from official docker image

### Problem Description

I have set up an Elasticsearch cluster using the official Elasticsearch image. I have configured three nodes, each with 2 CPU cores and 8 GB of RAM. I have also isolated the CPU resources for each container using Docker to avoid CPU resource conflicts.

I conducted a test using a dataset in the order of 100,000 records. Initially, I set the shards count to 1 and the replica count to 0, and the throughput was measured at 1000 requests per second (r/s). However, when I increased the replica count to 2, the throughput significantly decreased to 300 r/s. I also tried to set the shard count to 3 and the replica count to 1, but the throughput still experienced a significant drop.

I attempted to increase the number of CPU cores per node to 4, but performance did not improve. How can I sustainably enhance the performance of my Elasticsearch cluster, such as by increasing the number of nodes and configuring the appropriate shard and replica settings, for easier maintenance in the future?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 25, 2023, 9:23am UTC](https://discuss.elastic.co/t/performance-is-low-when-using-cluster-mode/343964/2 "2023-10-25T09:23:45Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
