-
Notifications
You must be signed in to change notification settings - Fork 578
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Icinga's initial threads are linked to core count in host with no way to adjust or limit #9147
Comments
For the sake of cross-referencing: https://community.icinga.com/t/any-way-to-reduce-the-number-of-threads-in-icinga/8840 |
Have you tried |
Where should I set this? |
E.g. in the constants.conf. |
So it looks like this doesn't help. I tried with both |
Hmm... and -DConcurrency=1 in the systemd file just after icinga2 daemon? |
No changes as well with this added to systemd. |
Have you done |
IIRC one of the insights when looking at #9099 was (of course not written down) that there are some places where the number of thread can't be easily controlled by the user at the moment: icinga2/lib/base/io-engine.cpp Line 87 in f2563cc
icinga2/lib/base/threadpool.hpp Line 39 in f2563cc
|
yes I did and still no luck. |
Currently the number of threads spawned is tied to the number of cores/cpu-threads the host running icinga has. Ideally, we would like to reduce the number of threads icinga needs to just run off of 1
initial thread if possible.
It seems this used to be possible with the init.conf but this was removed a while ago. For example, the value I'm referring to when doing checks is this. The below command shows the threads per icinga.
18-core-host # icinga2 console -e Concurrency
18
4-core-host # icinga2 console -e Concurrency
4
128-core-host-with-2-threads-per-core # icinga2 console -e Concurrency
256
To Reproduce
icinga2 console -e Concurrency
As shown above, this will change depending on the number of cores the host's cpu has.
Expected behavior
I would prefer a way to minimize this. We are pinning icinga to one core on our hosts, so in theory we should only require 1 thread (based on this logic), however it is still spawning a bunch of threads.
Your Environment
Include as many relevant details about the environment you experienced the problem in
icinga2 --version
): 2.13.1-1icinga2 feature list
): Enabled features: api checker mainlogAdditional context
I can get any more info if needed. But this is a huge concern for our environment. Thank you!
The text was updated successfully, but these errors were encountered: