2.99 KB
Newer Older
1 2 3

=head1 NAME
Leo Gordon's avatar
pod fix  
Leo Gordon committed

6 7

Leo Gordon's avatar
pod fix  
Leo Gordon committed

9 10 11 12 13 14 15 16
  Hive based processing is a concept based on a more controlled version
  of an autonomous agent type system.  Each worker is not told what to do
  (like a centralized control system - like the current pipeline system)
  but rather queries a central database for jobs (give me jobs).

  Each worker is linked to an analysis_id, registers its self on creation
  into the Hive, creates a RunnableDB instance of the Analysis->module,
  gets relevant configuration information from the database, does its
  work, creates the next layer of job entries by interfacing to
18 19 20 21 22 23 24 25 26
  the DataflowRuleAdaptor to determine the analyses it needs to pass its
  output data to and creates jobs on the database of the next analysis.
  It repeats this cycle until it has lived its lifetime or until there are no
  more jobs left to process.
  The lifetime limit is a safety limit to prevent these from 'infecting'
  a system and sitting on a compute node for longer than is socially exceptable.
  This is primarily needed on compute resources like an LSF system where jobs
  are not preempted and run until they are done.

  The Queen's primary job is to create Workers to get the work done.
  As part of this, she is also responsible for summarizing the status of the
  analyses by querying the jobs, summarizing, and updating the
30 31 32
  analysis_stats table.  From this she is also responsible for monitoring and
  'unblocking' analyses via the analysis_ctrl_rules.
  The Queen is also responsible for freeing up jobs that were claimed by Workers
  that died unexpectedly so that other workers can take over the work.  
34 35 36 37 38

  The Beekeeper is in charge of interfacing between the Queen and a compute resource
  or 'compute farm'.  Its job is to query Queens if they need any workers and to
  send the requested number of workers to open machines via the script.
  It is also responsible for interfacing with the Queen to identify workers which died
  unexpectedly so that she can free the dead workers unfinished jobs.

=head1 LICENSE
Leo Gordon's avatar
pod fix  
Leo Gordon committed

    Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
nwillhoft's avatar
nwillhoft committed
    Copyright [2016-2021] EMBL-European Bioinformatics Institute
45 46 47

    Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

Leo Gordon's avatar
pod fix  
Leo Gordon committed

51 52 53 54 55 56
    Unless required by applicable law or agreed to in writing, software distributed under the License
    is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and limitations under the License.

=head1 CONTACT

  Please subscribe to the Hive mailing list:  to discuss Hive-related questions or to be notified of our updates
58 59 60


61 62
package Bio::EnsEMBL::Hive;

use strict;
use warnings;
65 66 67