#include <Vulture.h>
Public Member Functions | |
int | hasStarted () |
int | hasStopped () |
pid_t | kill () |
pid_t | makeProcess () |
void | retrieve_corefile (char *, char *, uint64_t) |
int | start (std::string, int=0) |
int | stop () |
Vulture (bool) | |
virtual | ~Vulture () |
Private Member Functions | |
void | analyze () |
bool | control (toolbox::task::WorkLoop *) |
bool | prowling (toolbox::task::WorkLoop *) |
void | startProwling () |
Private Attributes | |
toolbox::task::ActionSignature * | asCtrl_ |
toolbox::task::ActionSignature * | asProwl_ |
std::vector< std::string > | currentCoreList_ |
bool | handicapped_ |
std::string | iDieUrl_ |
time_t | lastUpdate_ |
MasterQueue * | mq_ |
unsigned int | newCores_ |
CurlPoster * | poster_ |
bool | prowling_ |
bool | running_ |
SlaveQueue * | sq_ |
int | started_ |
int | stopped_ |
DIR * | tmp_ |
bool | updateMode_ |
pid_t | vulturePid_ |
toolbox::task::WorkLoop * | wlCtrl_ |
toolbox::task::WorkLoop * | wlProwl_ |
Static Private Attributes | |
static const std::string | FS ="/tmp" |
static const int | vulture_queue_offset = 400 |
evf::Vulture::Vulture | ( | bool | push | ) |
Definition at line 117 of file Vulture.cc.
|
virtual |
|
private |
Definition at line 398 of file Vulture.cc.
References edmPickEvents::command, gather_cfg::cout, currentCoreList_, FS, i, newCores_, AlCaHLTBitMon_ParallelJobs::p, evf::utils::pid, poster_, evf::CurlPoster::postString(), alignCSCRings::s, evf::CurlPoster::stack, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by prowling().
|
private |
Definition at line 295 of file Vulture.cc.
References evf::CurlPoster::check(), gather_cfg::cout, alignCSCRings::e, lumiQueryAPI::msg, MSQM_MESSAGE_TYPE_NOP, MSQM_VULTURE_TYPE_STA, MSQM_VULTURE_TYPE_STP, MSQS_VULTURE_TYPE_ACK, evf::SlaveQueue::post(), poster_, prowling_, evf::SlaveQueue::rcv(), evf::vulture_start_message::run_, sq_, startProwling(), and evf::vulture_start_message::url_.
Referenced by makeProcess().
int evf::Vulture::hasStarted | ( | ) |
Definition at line 215 of file Vulture.cc.
References alignCSCRings::e, MAX_MSG_SIZE, mq_, MSQS_VULTURE_TYPE_ACK, evf::MasterQueue::rcvNonBlocking(), and started_.
Referenced by evf::FUEventProcessor::updater().
int evf::Vulture::hasStopped | ( | ) |
Definition at line 228 of file Vulture.cc.
References alignCSCRings::e, MAX_MSG_SIZE, mq_, MSQS_VULTURE_TYPE_ACK, evf::MasterQueue::rcvNonBlocking(), and stopped_.
pid_t evf::Vulture::kill | ( | ) |
pid_t evf::Vulture::makeProcess | ( | ) |
Definition at line 154 of file Vulture.cc.
References asCtrl_, control(), gather_cfg::cout, alignCSCRings::e, edm::hlt::Exception, FS, handicapped_, sq_, summarizeEdmComparisonLogfiles::success, tmp_, vulture_queue_offset, vulturePid_, and wlCtrl_.
Referenced by evf::FUEventProcessor::configuring().
|
private |
Definition at line 343 of file Vulture.cc.
References analyze(), gather_cfg::cout, currentCoreList_, alignCSCRings::e, lastUpdate_, newCores_, cmsPerfSuiteHarvest::now, poster_, evf::CurlPoster::postString(), prowling_, stor::utils::sleep(), evf::CurlPoster::stack, and tmp_.
Referenced by startProwling().
void evf::Vulture::retrieve_corefile | ( | char * | , |
char * | , | ||
uint64_t | |||
) |
pid_t evf::Vulture::start | ( | std::string | url, |
int | run = 0 |
||
) |
Definition at line 241 of file Vulture.cc.
References mq_, MSQM_VULTURE_TYPE_STA, evf::MasterQueue::post(), DTTTrigCorrFirst::run, evf::vulture_start_message::run_, stopped_, evf::vulture_start_message::url_, and vulturePid_.
Referenced by progressbar.ProgressBar::__next__(), Types.LuminosityBlockRange::cppID(), Types.EventRange::cppID(), and evf::FUEventProcessor::enabling().
|
private |
Definition at line 272 of file Vulture.cc.
References asProwl_, alignCSCRings::e, edm::hlt::Exception, lastUpdate_, lumiQueryAPI::msg, cmsPerfSuiteHarvest::now, prowling(), prowling_, AlCaHLTBitMon_QueryRunRegistry::string, and wlProwl_.
Referenced by control().
pid_t evf::Vulture::stop | ( | ) |
Definition at line 254 of file Vulture.cc.
References mq_, MSQM_VULTURE_TYPE_STP, NUMERIC_MESSAGE_SIZE, evf::MasterQueue::post(), started_, and vulturePid_.
Referenced by evf::FUEventProcessor::stopping().
|
private |
Definition at line 61 of file Vulture.h.
Referenced by makeProcess().
|
private |
Definition at line 64 of file Vulture.h.
Referenced by startProwling().
|
private |
Definition at line 70 of file Vulture.h.
Referenced by analyze(), and prowling().
|
staticprivate |
Definition at line 59 of file Vulture.h.
Referenced by analyze(), and makeProcess().
|
private |
Definition at line 78 of file Vulture.h.
Referenced by makeProcess().
|
private |
Definition at line 71 of file Vulture.h.
Referenced by prowling(), and startProwling().
|
private |
Definition at line 74 of file Vulture.h.
Referenced by hasStarted(), hasStopped(), start(), stop(), and ~Vulture().
|
private |
Definition at line 72 of file Vulture.h.
Referenced by analyze(), and prowling().
|
private |
Definition at line 73 of file Vulture.h.
Referenced by analyze(), control(), prowling(), and ~Vulture().
|
private |
Definition at line 65 of file Vulture.h.
Referenced by control(), prowling(), and startProwling().
|
private |
Definition at line 75 of file Vulture.h.
Referenced by control(), makeProcess(), and ~Vulture().
|
private |
Definition at line 76 of file Vulture.h.
Referenced by hasStarted(), and stop().
|
private |
Definition at line 77 of file Vulture.h.
Referenced by hasStopped(), and start().
|
private |
Definition at line 69 of file Vulture.h.
Referenced by makeProcess(), and prowling().
|
staticprivate |
Definition at line 53 of file Vulture.h.
Referenced by makeProcess().
|
private |
|
private |
Definition at line 60 of file Vulture.h.
Referenced by makeProcess().
|
private |
Definition at line 63 of file Vulture.h.
Referenced by startProwling().