chef / chef-server

Chef Infra Server is a hub for configuration data; storing cookbooks, node policies and metadata of managed nodes.
https://www.chef.io/chef/
Apache License 2.0
290 stars 210 forks source link

estatsd impact the chef server performance and estatsd can not be disabled by estatsd['enable'] = false #1504

Open lincolnling opened 6 years ago

lincolnling commented 6 years ago

I encounter 2 issues, anyone have any idea?

  1. estatsd can not be disabled by estatsd['enable'] = false
  2. estatsd impact the chef server performance badly when setting to emit metric to server other than localhost, got error like this: 2018-05-22 13:48:37 =CRASH REPORT==== crasher: initial call: stats_hero:init/1 pid: <0.1748.0> registered_name: [] exception exit: {{timeout,{gen_server,call,[<0.1030.0>,{send,[[[["chefAPI",".application.allRequests"],58,"1",124,"c","\n"],[["chefAPI",".","",".allRequests"],58,"1",124,"c","\n"],[["chefAPI",".application.byRequestType.","clients",".","GET"],58,"1",124,"c","\n"]]]}]}},[{gen_server,init_it,6,[{file,"gen_server.erl"},{line,352}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,240}]}]} ancestors: [stats_hero_worker_sup,stats_hero_sup,<0.1020.0>] messages: [] links: [<0.1044.0>] dictionary: [] trap_exit: false status: running heap_size: 987 stack_size: 27 reductions: 2626 neighbours: 2018-05-22 13:48:37 =SUPERVISOR REPORT==== Supervisor: {local,stats_hero_worker_sup} Context: child_terminated Reason: {timeout,{gen_server,call,[<0.1030.0>,{send,[[[["chefAPI",".application.allRequests"],58,"1",124,"c","\n"],[["chefAPI",".","",".allRequests"],58,"1",124,"c","\n"],[["chefAPI",".application.byRequestType.","clients",".","GET"],58,"1",124,"c","\n"]]]}]}} Offender: [{pid,<0.1748.0>},{id,stats_hero},{mfargs,{stats_hero,start_link,undefined}},{restart_type,temporary},{shutdown,brutal_kill},{child_type,worker}]
PrajaktaPurohit commented 5 years ago

@lincolnling We are very sorry you are seeing this issue. We will surely try to reproduce it on our end. Meanwhile. could you please let us know if you are still seeing this issue and what version of Chef Infra Server could this be reproduced with. Thank you!

PrajaktaPurohit commented 5 years ago

While estatsd was a good option when chosen. There might be a couple of better alternatives available now. Would be interesting to take a look into those.