weibin.wu  
                (weibin.wu)
               
                 
              
                  
                    April 27, 2017,  3:36am
                   
                   
              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?
             
            
               
               
               
            
            
           
          
            
              
                nik9000  
                (Nik Everett)
               
              
                  
                    April 27, 2017,  2:53pm
                   
                   
              2 
               
             
            
              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?
             
            
               
               
               
            
            
           
          
            
              
                nik9000  
                (Nik Everett)
               
              
                  
                    May 11, 2017,  2:59am
                   
                   
              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  
                (system)
                  Closed 
               
              
                  
                    June 8, 2017,  3:06am
                   
                   
              6 
               
             
            
              This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.