[chef] Re: Re: Webui edit action extremelly slow


Chronological Thread 
  • From: Albert Llop < >
  • To:
  • Subject: [chef] Re: Re: Webui edit action extremelly slow
  • Date: Wed, 12 May 2010 17:52:04 +0200
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=dQQ5AUTuBUz6aZ57xAvZajT3EcH9w2R00ifwiUQUEtqj3tn4ujGB0AvvRuP7FQUrGo Y5ntl/c43vas3x8pDbimZZoBHCJT6zgN2HO5kOXothSVbcjaGOVuDFeyIDnShNOZ7Inl iqkhEkS5yGT+e2k/quHC4WAtMMVIBBNR7okH0=

Aw, sorry then. Lost myself in the ticker tracker and thought there wasn't anything about it.

Will wait for the fix then :)

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


On 12 May 2010 17:47, Daniel DeLeo < "> > wrote:
There's an open ticket about this: http://tickets.opscode.com/browse/CHEF-861

It certainly appears the webui is doing a bunch of unnecessary work
loading all the cookbooks.

Dan

On Wed, May 12, 2010 at 2:41 AM, Albert Llop < "> > wrote:
> 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.

§