[chef] Webui edit action extremelly slow


Chronological Thread 
  • From: Albert Llop < >
  • To:
  • Subject: [chef] Webui edit action extremelly slow
  • Date: Wed, 12 May 2010 11:41:17 +0200
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=wPzOwt+lxY0Om8DKmN1bL28dTO3qI9EvfpClXFti+VHOCATBGs5aKa9O8SFzkXIN31 wh38eJglpRuIO/4IXJpeV4Iw8hM05yJzg2PI4zTqQhgJrm+qpXw00g96PpdFkCnI3BQ+ VAg2aRZ+jsBZgV5enRgOriSZvCiH0hG1/RIR4=

Hi!
This is an example dump of the server log when going to edit a node:

merb : worker (port 4040) ~ Started request handling: Wed May 12 11:33:29 +0200 2010
merb : worker (port 4040) ~ Routed to: {"format"=>nil, "action"=>"edit", "id"=>"IMFW0003.imim.es", "controller"=>"chef_server_webui/nodes"}
merb : worker (port 4040) ~ Params: {"format"=>nil, "action"=>"edit", "id"=>"IMFW0003.imim.es", "controller"=>"chef_server_webui/nodes"}

... then there's about 670 lines (95 requests in total) of requests like these:

merb : worker (port 4000) ~ Started request handling: Wed May 12 11:33:29 +0200 2010
merb : worker (port 4000) ~ Routed to: {"format"=>nil, "action"=>"show", "id"=>"activemq", "controller"=>"chef_server_api/cookbooks"}
merb : worker (port 4000) ~ Params: {"format"=>nil, "action"=>"show", "id"=>"activemq", "controller"=>"chef_server_api/cookbooks"}
[Wed, 12 May 2010 11:33:29 +0200] INFO: Authenticating client chef-webui
merb : worker (port 4000) ~ {:dispatch_time=>0.190167, :after_filters_time=>1.4e-05, :action_time=>0.189637, :before_filters_time=>0.006441}
merb : worker (port 4000) ~

And at the end:

merb : worker (port 4040) ~ {:before_filters_time=>0.0517, :dispatch_time=>14.174253, :after_filters_time=>1.7e-05, :action_time=>14.173608}
merb : worker (port 4040) ~

it's not the end of the work, but it gets pretty slow when you have to change something on a few nodes, 14 seconds per node is a bit heavy, plus the 97 extra queries looks a bit overkill and at least in my mind, something that could be optimized.

Is there something wrong, or is expected? Should I open a ticked? Apologies beforehand if you already know this, I just updated my installation of chef today and I found it weird that this was still working like this.

Thanks!
--
{ :name => "Albert Llop" }



Archive powered by MHonArc 2.6.16.

§