# Keeping same search rate on one index spikes CPU in data nodes vs distributing the same load in two indices

**URL:** <https://discuss.elastic.co/t/keeping-same-search-rate-on-one-index-spikes-cpu-in-data-nodes-vs-distributing-the-same-load-in-two-indices/279985>\
**Category:** Elasticsearch\
**Tags:** elastic-stack-monitoring\
**Created:** [July 29, 2021, 12:56pm UTC](https://discuss.elastic.co/t/keeping-same-search-rate-on-one-index-spikes-cpu-in-data-nodes-vs-distributing-the-same-load-in-two-indices/279985 "2021-07-29T12:56:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anurag\_Prajapat](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anurag_prajapat/32/72739_2.png) [@Anurag\_Prajapat](https://discuss.elastic.co/u/Anurag_Prajapat)\
**Post date:** [July 29, 2021, 12:56pm UTC](https://discuss.elastic.co/t/keeping-same-search-rate-on-one-index-spikes-cpu-in-data-nodes-vs-distributing-the-same-load-in-two-indices/279985/1 "2021-07-29T12:56:35Z")

</div>

We tested out two scenarios:

- 100 TPS search traffic was pointed to one index  
20% CPU usage in data nodes and Threadpool search queue spikes observed. Application side there was increase in TP90 by 3x

- 80-20 TPS search traffic pointed to two indices  
CPU was at 4% with no spikes and no Threadpool search queue spikes observed

Both indices have same number of shards and replicas.

Can anyone help understand why CPU spike behaviour is seen (same load) with to one index vs two indices?

---

<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:** [August 26, 2021, 12:56pm UTC](https://discuss.elastic.co/t/keeping-same-search-rate-on-one-index-spikes-cpu-in-data-nodes-vs-distributing-the-same-load-in-two-indices/279985/2 "2021-08-26T12:56:58Z")

</div>

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