Bug 841032

Summary: rhc-admin-migrate: We need a cli param to override MAX_THREADS
Product: OKD Reporter: Thomas Wiest <twiest>
Component: PodAssignee: Dan McPherson <dmcphers>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.xCC: jhou
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: devenv_1902 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-07 20:43:03 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 Thomas Wiest 2012-07-17 22:56:59 UTC
Description of problem:
rhc-admin-migrate: We need a cli param to override MAX_THREADS so that we don't have to edit the script to override the default.

Example:
rhc-admin-migrate --max-threads 20

Version-Release number of selected component (if applicable):
rhc-broker-0.95.22-1.el6_3.noarch

Comment 1 Jianwei Hou 2012-07-19 07:45:57 UTC
verified on devenv_1902
rhc-broker-0.96.2-1.el6_3.noarch

Steps:
1.create applications on old instance
2.yum update
3.git clone git:openshift/li.git li-source
  cd li-source/broker/scripts/
4../rhc-admin-migrate --help
5. ./rhc-admin-migrate --max-threads 20 --version 2.0.15


Results:
step 4: rhc-admin-migrate have the max-threads param
 --max-threads num                    Indicates the number of processing queues
Step 5: 
Gathering gears for user: jhou with uuid: 29f6b45fd3cc4275a967f43ebc08053e
#####################################################
Gear counts per thread:
[30]
#####################################################
............
#####################################################
Summary:
# of users: 1
# of gears: 30
# of failures: 0
Gear counts per thread: [30]
Total execution time: 577s
#####################################################

the --max-threads param is added