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
f15d24a4
Commit
f15d24a4
authored
16 years ago
by
Javier Herrero
Browse files
Options
Downloads
Patches
Plain Diff
Better queries for setting up the batch jobs
parent
a2b75d4a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/Setup.txt
+16
-5
16 additions, 5 deletions
docs/Setup.txt
with
16 additions
and
5 deletions
docs/Setup.txt
+
16
−
5
View file @
f15d24a4
...
...
@@ -81,16 +81,27 @@ in bash
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a) Create one analysis for the SystemCmd module
mysql -h HOST -u USER -pSECRET hive_test1 \
-e "INSERT INTO analysis(logic_name, module) VALUES ('SysmtemCmd', 'Bio::EnsEMBL::Hive::RunnableDB::SystemCmd')"
mysql -h HOST -u USER -pSECRET hive_test1
mysql> INSERT INTO analysis(logic_name, module)
VALUES ('SysmtemCmd', 'Bio::EnsEMBL::Hive::RunnableDB::SystemCmd');
b) Add as many jobs as needed
mysql -h HOST -u USER -pSECRET hive_test1 \
-e "INSERT INTO analysis_job (analysis_id, input_id) VALUES ('1', 'echo 1')"
mysql> INSERT INTO analysis_job (analysis_id, input_id)
SELECT analysis_id, 'echo 6' FROM analysis WHERE logic_name = 'SystemCmd';
mysql> quit
c) Synchronise the eHive database
beekeeper.pl -url mysql://USER:SECRET@HOST/hive_test1 --sync
d) Change the number of concurrent workers
mysql -h HOST -u USER -pSECRET hive_test1
mysql> UPDATE analysis, analysis_stats SET hive_capacity = 100
WHERE analysis.analysis_id = analysis_stats.analysis_id AND logic_name = 'SystemCmd';
mysql> quit
5) Run hive (queen and workers) through a beekeeper
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
eg: lsf_
beekeeper.pl -url mysql://USER:SECRET@HOST/hive_test1 -loop
beekeeper.pl -url mysql://USER:SECRET@HOST/hive_test1 -loop
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