Chef

node :edit page slow to load in webui

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 0.8.2, 0.8.8
  • Fix Version/s: 0.9.0
  • Component/s: WebUI
  • Labels:
    None

Description

Editing a node in the WebUI makes a series of slow API calls for information taking over ten seconds to load

[Thu, 03 Dec 2009 01:24:08 +0000] DEBUG: Sending HTTP Request via GET to localhost:5984/chef/_design/id_map/_view/name_to_id?include_docs=true&key=[%22webui_user%22,%22admin%22]
[Thu, 03 Dec 2009 01:24:08 +0000] DEBUG: Signing the request as chef-webui
[Thu, 03 Dec 2009 01:24:08 +0000] DEBUG: Sending HTTP Request via GET to localhost:4000/nodes/btmops01_optlab_webtrends_corp
[Thu, 03 Dec 2009 01:24:08 +0000] DEBUG: Signing the request as chef-webui
[Thu, 03 Dec 2009 01:24:08 +0000] DEBUG: Sending HTTP Request via GET to localhost:4000/cookbooks
— SNIP —
[Thu, 03 Dec 2009 01:24:19 +0000] DEBUG: Sending HTTP Request via GET to localhost:4000/roles
merb : worker (port 4002) ~ Started request handling: Thu Dec 03 01:24:08 +0000 2009
merb : worker (port 4002) ~ Params: {"format"=>nil, "action"=>"edit", "id"=>"btmops01_optlab_webtrends_corp", "controller"=>"chef_server_webui/nodes"}
merb : worker (port 4002) ~ {:action_time=>11.064881, :after_filters_time=>2.8e-05, :before_filters_time=>0.007754, :dispatch_time=>11.065554}
merb : worker (port 4002) ~

Activity

Hide
Andrew Fulcher added a comment - 23/Aug/10 8:16 PM
Show
Andrew Fulcher added a comment - 23/Aug/10 8:16 PM Think this issue was fixed by: http://github.com/opscode/chef/commit/bdc33b8f8c10125cd911c2b0334f03bafdcd2d35
Hide
Daniel DeLeo added a comment - 22/Oct/10 4:50 AM

Thanks Andrew, I think you're correct, so I'm closing. The specific problem in this case (IIRC) was N+1 queries to generate the available runlist items.

Show
Daniel DeLeo added a comment - 22/Oct/10 4:50 AM Thanks Andrew, I think you're correct, so I'm closing. The specific problem in this case (IIRC) was N+1 queries to generate the available runlist items.

People

Vote (2)
Watch (1)

Dates

  • Created:
    03/Dec/09 1:29 AM
    Updated:
    22/Oct/10 4:50 AM
    Resolved:
    22/Oct/10 4:50 AM