Bug 841032 - rhc-admin-migrate: We need a cli param to override MAX_THREADS
Summary: rhc-admin-migrate: We need a cli param to override MAX_THREADS
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Pod
Version: 2.x
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Dan McPherson
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-07-17 22:56 UTC by Thomas Wiest
Modified: 2015-05-15 02:00 UTC (History)
1 user (show)

Fixed In Version: devenv_1902
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-07 20:43:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.