During reindex, cpu spike


(weibin.wu) #1

Hi Elasticsearch:

Data volume: 212mb
Shards: 5
version: 2.4
nodes: 3
replica: 1

Our cluster will create a new index and reindex to the new index every night.
During the reindex period, CPU bump up from 20% to 80%.

Is there a way to slow down the reindex process to avoid the CPU spike?


(Nik Everett) #2

Have a look at requests_per_second here.


(weibin.wu) #3

Thanks for lighting me.
Can I check whether my request is correct?

Since after I apply the requests_per_second, nothing changed.
curl -XPOST 'localhost:9200/_reindex?requests_per_second=100&wait_for_completion=false' -d '
{
"source": {
"index": "work_index_2017-04-03"
},
"dest": {
"index": "work_index_test"
}
}'


(weibin.wu) #4

I just found out the version is actually 2.3.5

So I think thats why my request is failed. There is no requests_per_second in 2.3 right?

How can I control the CPU spike at this place?


(Nik Everett) #5

It looks like I added it in 2.4:

I don't know of any way to slow down reindex in 2.3.


(system) #6

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