Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
ensembl-hive
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
7
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ensembl-gh-mirror
ensembl-hive
Commits
bc93c473
Commit
bc93c473
authored
14 years ago
by
Leo Gordon
Browse files
Options
Downloads
Patches
Plain Diff
separating hive_output_dir from worker_output_dir
parent
e83a48f1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
modules/Bio/EnsEMBL/Hive/Queen.pm
+11
-6
11 additions, 6 deletions
modules/Bio/EnsEMBL/Hive/Queen.pm
scripts/beekeeper.pl
+1
-1
1 addition, 1 deletion
scripts/beekeeper.pl
scripts/runWorker.pl
+30
-30
30 additions, 30 deletions
scripts/runWorker.pl
with
42 additions
and
37 deletions
modules/Bio/EnsEMBL/Hive/Queen.pm
+
11
−
6
View file @
bc93c473
...
...
@@ -662,11 +662,14 @@ sub get_num_needed_workers {
return
0
unless
(
@all_analyses
);
my
$available_load
=
1.0
-
$self
->
get_hive_current_load
();
return
0
if
(
$available_load
<=
0.0
);
my
$total_workers
=
0
;
my
%rc2workers
=
();
# FIXME: I have a feeling sometimes this method returns an incorrect value. Please doublecheck.
foreach
my
$analysis_stats
(
@all_analyses
)
{
next
if
(
defined
$filter_analysis
&&
$filter_analysis
->
dbID
!=
$analysis_stats
->
analysis_id
);
...
...
@@ -742,12 +745,14 @@ sub get_remaining_jobs_show_hive_progress {
return
$remaining
;
}
sub
print_hive_status
{
my
(
$self
,
$filter_analysis
)
=
@_
;
$self
->
print_analysis_status
(
$filter_analysis
);
$self
->
print_running_worker_status
;
}
## Can't see where this method is used.
#
#sub print_hive_status {
# my ($self, $filter_analysis) = @_;
#
# $self->print_analysis_status($filter_analysis);
# $self->print_running_worker_status;
#}
sub
print_analysis_status
{
...
...
This diff is collapsed.
Click to expand it.
scripts/beekeeper.pl
+
1
−
1
View file @
bc93c473
...
...
@@ -291,7 +291,7 @@ sub show_given_workers {
$worker
->
process_id
,
$worker
->
host
,
$worker
->
last_check_in
);
printf
("
%s
\n
",
$worker
->
output_dir
)
if
(
$verbose_stats
);
printf
("
%s
\n
",
$worker
->
worker_
output_dir
)
if
(
$verbose_stats
);
}
}
...
...
This diff is collapsed.
Click to expand it.
scripts/runWorker.pl
+
30
−
30
View file @
bc93c473
...
...
@@ -34,7 +34,7 @@ $self->{'analysis_id'} = undef; # less specific specialization
$self
->
{'
logic_name
'}
=
undef
;
# (---------,,---------------)
$self
->
{'
rc_id
'}
=
undef
;
# least specific specialization
$self
->
{'
output_dir
'}
=
undef
;
$self
->
{'
hive_
output_dir
'}
=
undef
;
$self
->
{'
beekeeper
'}
=
undef
;
$self
->
{'
process_id
'}
=
undef
;
$self
->
{'
debug
'}
=
undef
;
...
...
@@ -67,7 +67,7 @@ GetOptions(
'
batch_size=i
'
=>
\
$self
->
{'
batch_size
'},
'
limit=i
'
=>
\
$self
->
{'
job_limit
'},
'
lifespan=i
'
=>
\
$self
->
{'
lifespan
'},
'
output_dir|outdir=s
'
=>
\
$self
->
{'
output_dir
'},
# keep compatibility with the old name
'
hive_
output_dir|outdir=s
'
=>
\
$self
->
{'
hive_
output_dir
'},
# keep compatibility with the old name
'
bk=s
'
=>
\
$self
->
{'
beekeeper
'},
# deprecated and ignored
'
pid=s
'
=>
\
$self
->
{'
process_id
'},
'
input_id=s
'
=>
\
$self
->
{'
input_id
'},
...
...
@@ -145,7 +145,7 @@ if($self->{'analysis_id'} and $self->{'input_id'}) {
print
("
creating job outside database
\n
");
$self
->
{'
analysis_job
'}
->
print_job
;
$self
->
{'
debug
'}
=
1
unless
(
defined
(
$self
->
{'
debug
'}));
$self
->
{'
output_dir
'}
=
''
unless
(
defined
(
$self
->
{'
output_dir
'}));
$self
->
{'
hive_
output_dir
'}
=
''
unless
(
defined
(
$self
->
{'
hive_
output_dir
'}));
# make it defined but empty/false
}
if
(
$self
->
{'
job_id
'})
{
...
...
@@ -170,13 +170,13 @@ unless($worker) {
$worker
->
debug
(
$self
->
{'
debug
'})
if
(
$self
->
{'
debug
'});
unless
(
defined
(
$self
->
{'
output_dir
'}))
{
unless
(
defined
(
$self
->
{'
hive_
output_dir
'}))
{
my
$arrRef
=
$DBA
->
get_MetaContainer
->
list_value_by_key
(
'
hive_output_dir
'
);
if
(
@$arrRef
)
{
$self
->
{'
output_dir
'}
=
destringify
(
$arrRef
->
[
0
]);
$self
->
{'
hive_
output_dir
'}
=
destringify
(
$arrRef
->
[
0
]);
}
}
$worker
->
output_dir
(
$self
->
{'
output_dir
'});
$worker
->
hive_
output_dir
(
$self
->
{'
hive_
output_dir
'});
if
(
$self
->
{'
batch_size
'})
{
$worker
->
set_worker_batch_size
(
$self
->
{'
batch_size
'});
...
...
@@ -294,36 +294,36 @@ __DATA__
=head2 Connection parameters
-conf <path> : config file describing db connection
-regfile <path> : path to a Registry configuration file
-regname <string> : species/alias name for the Hive DBAdaptor
-url <url string> : url defining where database is located
-host <machine> : mysql database host <machine>
-port <port#> : mysql port number
-user <name> : mysql connection user <name>
-password <pass> : mysql connection password
[-database] <name> : mysql database <name>
-conf <path>
: config file describing db connection
-regfile <path>
: path to a Registry configuration file
-regname <string>
: species/alias name for the Hive DBAdaptor
-url <url string>
: url defining where database is located
-host <machine>
: mysql database host <machine>
-port <port#>
: mysql port number
-user <name>
: mysql connection user <name>
-password <pass>
: mysql connection password
[-database] <name>
: mysql database <name>
=head2 Job/Analysis control parameters:
-analysis_id <id> : analysis_id in db
-logic_name <string> : logic_name of analysis to make this worker
-batch_size <num> : #jobs to claim at a time
-limit <num> : #jobs to run before worker can die naturally
-lifespan <num> : number of minutes this worker is allowed to run
-output_dir <path>
: directory where stdout/stderr is redirected
-bk <string> : beekeeper identifier (deprecated and ignored)
-pid <string> : externally set process_id descriptor (e.g. lsf job_id, array_id)
-input_id <string> : test input_id on specified analysis (analysis_id or logic_name)
-job_id <id> : run specific job defined by analysis_job_id
-analysis_stats : show status of each analysis in hive
-no_cleanup : don't perform global_cleanup when worker exits
-no_write : don't write_output or auto_dataflow input_job
-analysis_id <id>
: analysis_id in db
-logic_name <string>
: logic_name of analysis to make this worker
-batch_size <num>
: #jobs to claim at a time
-limit <num>
: #jobs to run before worker can die naturally
-lifespan <num>
: number of minutes this worker is allowed to run
-
hive_
output_dir <path> : directory where stdout/stderr
of the hive
is redirected
-bk <string>
: beekeeper identifier (deprecated and ignored)
-pid <string>
: externally set process_id descriptor (e.g. lsf job_id, array_id)
-input_id <string>
: test input_id on specified analysis (analysis_id or logic_name)
-job_id <id>
: run specific job defined by analysis_job_id
-analysis_stats
: show status of each analysis in hive
-no_cleanup
: don't perform global_cleanup when worker exits
-no_write
: don't write_output or auto_dataflow input_job
=head2 Other options:
-help : print this help
-debug <level> : turn on debug messages at <level>
-help
: print this help
-debug <level>
: turn on debug messages at <level>
=head1 CONTACT
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment