During reindex, cpu spike

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?

Have a look at requests_per_second here.

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"
}
}'

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?

It looks like I added it in 2.4:

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

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