Bug #5908

[Workbench] collection#show performing too many unnecessary API server requests when accessing qr1hi-4zz18-zn1m6s2le7dqjfs.

Added by Radhika Chippada about 2 years ago. Updated 4 months ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Workbench
Target version:Arvados Future Sprints
Story points-
Velocity based estimate-

History

#1 Updated by Radhika Chippada about 2 years ago

  • Category set to Workbench

I pointed my workbench to qr1hi api server and accessed /collections/qr1hi-4zz18-zn1m6s2le7dqjfs. I noticed in the workbench log several issues.

  • the collection qr1hi-4zz18-zn1m6s2le7dqjfs is retrieved again and again while displaying this collection, (it seems like for each image file display?). Also, numerous /groups calls are made (for each image display it appears). Same with the user object.
  • There were several 404 errors accessing the images (For ex: Started GET "/collections/qr1hi-4zz18-zn1m6s2le7dqjfs/000008/index_files/Alignment%20Score%20Distribution%20(Unmated%20Only).png"). Are these avoidable?

What needs to be done: We need to preload these objects and get them only once per page view. Also, need to determine if we can avoid those image fetching requests.

Started GET "/collections/qr1hi-4zz18-zn1m6s2le7dqjfs/000008/index_files/Alignment%20Score%20Distribution%20(Unmated%20Only).png" for 127.0.0.1 at 2015-05-05 12:30:47 -0400
Processing by CollectionsController#show_file as HTML
Parameters: {"uuid"=>"qr1hi-4zz18-zn1m6s2le7dqjfs", "file"=>"000008/index_files/Alignment Score Distribution (Unmated Only).png"}
API client: 0.001170788 Prepare request https://qr1hi.arvadosapi.com/arvados/v1/users/current
API client: 1.271270887 API transaction
API client: 0.001282234 Parse response
API client: 0.000717704 Prepare request https://qr1hi.arvadosapi.com/arvados/v1/groups "group_class","=","project" name
API client: 0.340730842 API transaction
API client: 0.000188187 Parse response
API client: 0.00042211 Prepare request https://qr1hi.arvadosapi.com/arvados/v1/collections/qr1hi-4zz18-zn1m6s2le7dqjfs
API client: 1.126970852 API transaction
API client: 0.440864881 API transaction
API client: 0.001057668 Parse response
API client: 0.002261714 Parse response
API client: 0.000766521 Prepare request https://qr1hi.arvadosapi.com/arvados/v1/groups "group_class","=","project" name
API client: 1.138252836 API transaction
API client: 0.002275892 Parse response
API client: 0.349087429 API transaction
API client: 0.000354321 Parse response
API client: 0.000576977 Prepare request https://qr1hi.arvadosapi.com/arvados/v1/collections/qr1hi-4zz18-zn1m6s2le7dqjfs
API client: 0.001082584 Prepare request https://qr1hi.arvadosapi.com/arvados/v1/groups "group_class","=","project" name
API client: 0.242936308 API transaction
API client: 0.000365311 Parse response
#<ActionController::RoutingError: Path not found>
Rendered application/_report_error.html.erb (1.6ms)
Rendered application/404.html.erb within layouts/application (5.3ms)
API client: 0.000353053 Prepare request https://qr1hi.arvadosapi.com/arvados/v1/groups "group_class","=","project" name
API client: 0.000555477 Prepare request https://qr1hi.arvadosapi.com/arvados/v1/groups "group_class","=","project" name
API client: 0.197915686 API transaction
API client: 0.000263299 Parse response
#<ActionController::RoutingError: Path not found>
Rendered application/_report_error.html.erb (2.0ms)
Rendered application/404.html.erb within layouts/application (5.0ms)
API client: 0.000294254 Prepare request https://qr1hi.arvadosapi.com/arvados/v1/groups "group_class","=","project" name
API client: 0.971032758 API transaction
API client: 0.001990149 Parse response
API client: 0.000392784 Prepare request https://qr1hi.arvadosapi.com/arvados/v1/groups "group_class","=","project" name
API client: 1.173353471 API transaction
API client: 0.00155911 Parse response
API client: 0.000439339 Prepare request https://qr1hi.arvadosapi.com/arvados/v1/groups "group_class","=","project" name
API client: 1.474478939 API transaction
API client: 0.00146267 Parse response
API client: 0.741344056 API transaction
API client: 0.00120473 Parse response
API client: 0.00068146 Prepare request https://qr1hi.arvadosapi.com/arvados/v1/groups "group_class","=","project" name
API client: 0.000249149 Prepare request https://qr1hi.arvadosapi.com/arvados/v1/groups "group_class","=","project" name
API client: 1.81563541 API transaction
API client: 0.001836395 Parse response
API client: 1.642098155 API transaction
API client: 0.001525901 Parse response
API client: 1.812765199 API transaction
API client: 0.002605244 Parse response
API client: 0.000641938 Prepare request https://qr1hi.arvadosapi.com/arvados/v1/groups "group_class","=","project" name
API client: 0.000429697 Prepare request https://qr1hi.arvadosapi.com/arvados/v1/groups "group_class","=","project" name
API client: 0.000541513 Prepare request https://qr1hi.arvadosapi.com/arvados/v1/groups "group_class","=","project" name
API client: 0.699332945 API transaction
API client: 0.00083649 Parse response
API client: 0.632699639 API transaction
API client: 0.000865427 Parse response
API client: 0.000784595 Prepare request https://qr1hi.arvadosapi.com/arvados/v1/groups "group_class","=","project" name
Rendered application/_projects_tree_menu.html.erb (6871.0ms)
Rendered application/_browser_unsupported.html (0.1ms)
Rendered getting_started/_getting_started_popup.html.erb (0.9ms)
Rendered layouts/body.html.erb (6881.1ms)
Completed 404 Not Found in 7249ms (Views: 6894.5ms | ActiveRecord: 0.0ms)

Started GET "/collections/qr1hi-4zz18-zn1m6s2le7dqjfs/000008/index_files/Fragment%20Length%20Distribution.png" for 127.0.0.1 at 2015-05-05 12:30:50 -0400
Processing by CollectionsController#show_file as HTML
Parameters: {"uuid"=>"qr1hi-4zz18-zn1m6s2le7dqjfs", "file"=>"000008/index_files/Fragment Length Distribution.png"}
API client: 0.001376675 Prepare request https://qr1hi.arvadosapi.com/arvados/v1/users/current
API client: 0.107907513 API transaction
API client: 0.000159282 Parse response
API client: 0.000318106 Prepare request https://qr1hi.arvadosapi.com/arvados/v1/collections/qr1hi-4zz18-zn1m6s2le7dqjfs
API client: 0.251188661 API transaction
API client: 0.00029793 Parse response
#<ActionController::RoutingError: Path not found>
Rendered application/_report_error.html.erb (0.6ms)
Rendered application/404.html.erb within layouts/application (2.4ms)
API client: 0.000343521 Prepare request https://qr1hi.arvadosapi.com/arvados/v1/groups "group_class","=","project" name
API client: 1.254940551 API transaction
API client: 0.001099331 Parse response
API client: 0.000520913 Prepare request https://qr1hi.arvadosapi.com/arvados/v1/groups "group_class","=","project" name
API client: 1.02221658 API transaction
API client: 0.000951928 Parse response
API client: 1.205324668 API transaction
API client: 0.001818865 Parse response
API client: 1.148761041 API transaction
API client: 0.001546181 Parse response
API client: 0.9578001 API transaction
API client: 0.001743496 Parse response
API client: 0.000554079 Prepare request https://qr1hi.arvadosapi.com/arvados/v1/groups "group_class","=","project" name
API client: 0.000645312 Prepare request https://qr1hi.arvadosapi.com/arvados/v1/groups "group_class","=","project" name
API client: 0.000821923 Prepare request https://qr1hi.arvadosapi.com/arvados/v1/groups "group_class","=","project" name
API client: 0.00041487 Prepare request https://qr1hi.arvadosapi.com/arvados/v1/groups "group_class","=","project" name
API client: 0.776257672 API transaction
API client: 0.000743673 Parse response
API client: 0.000603899 Prepare request https://qr1hi.arvadosapi.com/arvados/v1/groups "group_class","=","project" name
API client: 0.36468908 API transaction
API client: 0.000775841 Parse response
API client: 0.768002402 API transaction
API client: 0.001856128 Parse response
API client: 0.473747413 API transaction
API client: 0.001396352 Parse response
API client: 0.443752133 API transaction
API client: 0.000981148 Parse response
API client: 0.000527072 Prepare request https://qr1hi.arvadosapi.com/arvados/v1/groups "group_class","=","project" name
API client: 0.000615928 Prepare request https://qr1hi.arvadosapi.com/arvados/v1/groups "group_class","=","project" name
API client: 0.000871376 Prepare request https://qr1hi.arvadosapi.com/arvados/v1/groups "group_class","=","project" name
Rendered application/_projects_tree_menu.html.erb (7313.5ms)
Rendered application/_browser_unsupported.html (0.1ms)
Rendered getting_started/_getting_started_popup.html.erb (0.5ms)
Rendered layouts/body.html.erb (7339.6ms)
Completed 404 Not Found in 7930ms (Views: 7363.8ms | ActiveRecord: 0.0ms)

#2 Updated by Brett Smith about 2 years ago

  • Target version changed from Bug Triage to Arvados Future Sprints

#3 Updated by Tom Clegg 4 months ago

  • Status changed from New to Closed

Also available in: Atom PDF