-
Notifications
You must be signed in to change notification settings - Fork 55
[dev.icinga.com #11072] LWRP icinga2_service is very slow #195
Comments
Updated by ascopenco on 2016-02-02 20:50:34 +00:00 Let me explain how time of execution is growing. |
Updated by vkhatri on 2016-02-13 07:19:44 +00:00
@ascopenco Sorry for the delay, i will take a look at it. 4cores machine indeed should not take 30mins for ~2k services. Could you please share the Chef Server and Client details? Would be great to have a LWRP resource sample. |
Updated by ascopenco on 2016-02-15 08:13:44 +00:00 Chef Server: 12.3.1 example of LWRP: icinga2_service "#{server['fqdn']}_ssh" do |
Updated by vkhatri on 2016-02-15 13:14:06 +00:00 @ascopenco thanks! |
Updated by ascopenco on 2016-02-16 09:15:18 +00:00 in addition: VM is on CentOS release 6.7 (Final) strace show lags on brk syscall: |
@scopenco Are you still facing the slow start up issue? Never got a chance to get back to you. |
Yes, and I know the reasons. It's O(n*n) algorithm complexity. So How did I resolved this problem for >3k service installations? |
got same problem in configuration with 2k hosts and 20k services. It just not working because of described reason. After some experiments - ended up with following approach:
Reason: Icinga2 configuration has it's own syntax, that's already "monitoring as code". |
I've created a new cookbook that creates hosts and services using API https://supermarket.chef.io/cookbooks/icinga2_api so now using this cookbook a get in 10 times better performance. |
This issue has been migrated from Redmine: https://dev.icinga.com/issues/11072
Created by ascopenco on 2016-02-02 20:27:38 +00:00
Assignee: vkhatri
Status: Assigned
Target Version: (none)
Last Update: 2016-02-16 09:15:18 +00:00 (in Redmine)
Hello,
I have issue with generation icinga2 configs with cookbook LWRPs. It take huge time.
For example generation of ~2k services take more then 30 mins on VM with 4 cpu core and 16Gb memory.
Tests show me the main problems is in icinga2_service. Its the slowest LWRP. 1-3 secs for one execution.
The text was updated successfully, but these errors were encountered: