Bug 985496
Summary: | oo-admin-chk level1 times out | ||
---|---|---|---|
Product: | OpenShift Online | Reporter: | Sten Turpin <sten> |
Component: | Pod | Assignee: | Abhishek Gupta <abhgupta> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> |
Severity: | high | Docs Contact: | |
Priority: | unspecified | ||
Version: | 2.x | CC: | dmcphers, jhou, rchopra, twiest, xtian |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-08-07 22:55:29 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Sten Turpin
2013-07-17 15:45:26 UTC
If you take away all the bloat inside the block you get: >> require "/var/www/openshift/broker/config/environment" => true >> ?> start_time = Time.now => 2013-07-17 09:45:00 -0400 >> apps = [] => [] >> app_selection = {:fields => ["name", "uuid", "created_at", "domain_id", "group_instances.gears._id","group_instances.gears.uuid", "group_instances.gears.uid", "group_instances.gears.server_identity", "group_instances._id", "component_instances._id", "component_instances.cartridge_name", "component_instances.group_instance_id", "group_overrides", "app_ssh_keys.name", "app_ssh_keys.content"], :timeout => false} => {:fields=>["name", "uuid", "created_at", "domain_id", "group_instances.gears._id", "group_instances.gears.uuid", "group_instances.gears.uid", "group_instances.gears.server_identity", "group_instances._id", "component_instances._id", "component_instances.cartridge_name", "component_instances.group_instance_id", "group_overrides", "app_ssh_keys.name", "app_ssh_keys.content"], :timeout=>false} >> app_query = {"group_instances.gears.0" => {"$exists" => true}} => {"group_instances.gears.0"=>{"$exists"=>true}} >> OpenShift::DataStore.find(:applications, app_query, app_selection) do |app| ?> apps << app >> end => nil >> ?> puts apps.size 149766 => nil >> puts Time.now - start_time 130.756245042 About time we employ multiple threads/processes. Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/2c3c908560fa6e28588425791605e79d20ee2cfd Fix for bug 985496 Verified on devenv_3588 The time it takes to query apps is much saved. There is no timeout reported when running oo-admin-chk on level 1. irb(main):001:0> require "/var/www/openshift/broker/config/environment" => true irb(main):002:0> start_time = Time.now => 2013-07-30 22:41:11 -0400 irb(main):003:0> apps = [] => [] irb(main):004:0> app_selection = {:fields => ["name", "uuid", "created_at", "domain_id", "group_instances.gears._id","group_instances.gears.uuid", "group_instances.gears.uid", "group_instances.gears.server_identity", "group_instances._id", "component_instances._id", "component_instances.cartridge_name", "component_instances.group_instance_id", "group_overrides", "app_ssh_keys.name", "app_ssh_keys.content"], :timeout => false} => {:fields=>["name", "uuid", "created_at", "domain_id", "group_instances.gears._id", "group_instances.gears.uuid", "group_instances.gears.uid", "group_instances.gears.server_identity", "group_instances._id", "component_instances._id", "component_instances.cartridge_name", "component_instances.group_instance_id", "group_overrides", "app_ssh_keys.name", "app_ssh_keys.content"], :timeout=>false} irb(main):005:0> app_query = {"group_instances.gears.0" => {"$exists" => true}} => {"group_instances.gears.0"=>{"$exists"=>true}} irb(main):006:0> OpenShift::DataStore.find(:applications, app_query, app_selection) do |app| irb(main):007:1* apps << app irb(main):008:1> end => nil irb(main):009:0> puts apps.size 2 => nil irb(main):010:0> puts Time.now - start_time 48.302894661 Marking it as verified again. Will reopen if its still a problem in PROD. Commit pushed to master at https://github.com/openshift/origin-server https://github.com/openshift/origin-server/commit/d68e54680165a75b14c60dbf1852d2ec9082c1d2 Fix for bug 985496 This bug is verified on devenv-stage_439 |