Hi. Is there an option to limit Elasticsearch to run, for example, on only half of available cpu cores on the machine? I'm running some heavy queries on my ELK instance which sometimes loads all cores at 100%. Since there are also other services running on this machine, the situation is not perfect.
using nice to manually lower the process priority or
using cpulimit to repeatedly pause the process and keep it within a certain limit
plus of course cgroups again
Outside of a container, I don't think this is good practice, though. cpulimit will send SIGSTOP/SIGCONT signals to the elasticsearch process and I'm not sure about the effects this can have . nice is too "soft" for what you want to achieve.
My advice if you don't want to leverage Docker for now, install ES on a dedicated host.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.