title: Elasticsearch: high CPU usage
body: <p>I'm running ES on an AWS EC2 t2.small instance, and I am experiencing a sudden and massive drop in CPU credits every once in a while.</p>
  
  <p><a href="https://www.dropbox.com/s/0pw0qfudoca899f/cpu_credits.png?dl=0" rel="nofollow noreferrer">https://www.dropbox.com/s/0pw0qfudoca899f/cpu_credits.png?dl=0</a></p>
  
  <p>The drop started on a monday, which is when we create 4 new logging indices for that weeks logs. We currently have ~60 logging indices which mostly just get insert requests and rarely any searching is done. We also have about 30 indices that are actively searched against and at least 10 of them get regular bulk updates.</p>
  
  <p>Last time I was faced with an issue like this, I deleted a bunch of old indices and that seemed to help, however I would prefer avoiding that.</p>
  
  <p>What are the most common reasons for high resource usage? Amount of indices? Amount of records in them? Amount of shards allocated? Amount of updates to records or mapping (there are a some indices with thousands of fields)?</p>
  
  <p>Let me know if there's any information I could provide, and thank you in advance for any help on clearing this issue.</p>
  
  <hr>
  
  <p>EDIT 1: </p>
  
  <p><a href="https://www.dropbox.com/s/si9pe59yx5v9fgk/_cat.indices.txt?dl=0" rel="nofollow noreferrer">Output from _cat/indices?v</a></p>
  
  <p><a href="https://www.dropbox.com/s/akt23i96g68dshv/_nodes.stats.txt?dl=0" rel="nofollow noreferrer">Output from _nodes/stats</a></p>