#include <TritonService.h>
Classes | |
struct | FallbackOpts |
struct | Model |
struct | Module |
struct | Server |
Public Member Functions | |
void | addModel (const std::string &modelName, const std::string &path) |
void | notifyCallStatus (bool status) const |
const std::string & | pid () const |
Server | serverInfo (const std::string &model, const std::string &preferred="") const |
TritonService (const edm::ParameterSet &pset, edm::ActivityRegistry &areg) | |
~TritonService ()=default | |
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
Private Member Functions | |
void | postEndJob () |
void | postModuleConstruction (edm::ModuleDescription const &) |
void | preallocate (edm::service::SystemBounds const &) |
void | preBeginJob (edm::PathsAndConsumesOfModulesBase const &, edm::ProcessContext const &) |
void | preModuleConstruction (edm::ModuleDescription const &) |
void | preModuleDestruction (edm::ModuleDescription const &) |
template<typename LOG > | |
void | printFallbackServerLog () const |
Private Attributes | |
bool | allowAddModel_ |
std::atomic< int > | callFails_ |
unsigned | currentModuleId_ |
FallbackOpts | fallbackOpts_ |
std::unordered_map< std::string, Model > | models_ |
std::unordered_map< unsigned, Module > | modules_ |
int | numberOfThreads_ |
std::string | pid_ |
std::unordered_map< std::string, Server > | servers_ |
bool | startedFallback_ |
std::unordered_map< std::string, Model > | unservedModels_ |
bool | verbose_ |
Definition at line 31 of file TritonService.h.
TritonService::TritonService | ( | const edm::ParameterSet & | pset, |
edm::ActivityRegistry & | areg | ||
) |
Definition at line 75 of file TritonService.cc.
References HLTObjectMonitor_Client_cff::client, submitPVResolutionJobs::err, Exception, edm::getEnvironmentVariable(), hltEcalBarrelClusterFastTimer_cfi::modelName, models_, mps_check::msg, postEndJob(), postModuleConstruction(), preallocate(), preBeginJob(), preModuleConstruction(), preModuleDestruction(), muonDTDigis_cfi::pset, Remote, servers_, TritonService::Server::siteconfName, AlCaHLTBitMon_QueryRunRegistry::string, TRITON_THROW_IF_ERROR, tier0::unique(), verbose_, edm::ActivityRegistry::watchPostEndJob(), edm::ActivityRegistry::watchPostModuleConstruction(), edm::ActivityRegistry::watchPreallocate(), edm::ActivityRegistry::watchPreBeginJob(), edm::ActivityRegistry::watchPreModuleConstruction(), and edm::ActivityRegistry::watchPreModuleDestruction().
|
default |
void TritonService::addModel | ( | const std::string & | modelName, |
const std::string & | path | ||
) |
Definition at line 186 of file TritonService.cc.
References allowAddModel_, currentModuleId_, Exception, hltEcalBarrelClusterFastTimer_cfi::modelName, models_, modules_, castor_dqm_sourceclient_file_cfg::path, and unservedModels_.
Referenced by TritonEDFilterT< G, Capabilities >::initializeGlobalCache(), TritonEDProducerT< G, Capabilities >::initializeGlobalCache(), and TritonOneEDAnalyzer< Capabilities >::TritonOneEDAnalyzer().
|
static |
Definition at line 419 of file TritonService.cc.
References edm::ParameterSetDescription::addUntracked(), edm::ConfigurationDescriptions::addWithDefaultLabel(), submitPVResolutionJobs::desc, edm::ParameterSetDescription::ifValue(), and AlCaHLTBitMon_QueryRunRegistry::string.
void TritonService::notifyCallStatus | ( | bool | status | ) | const |
Definition at line 360 of file TritonService.cc.
References callFails_, and mps_update::status.
Referenced by TritonClient::evaluate(), and TritonException::TritonException().
|
inline |
Definition at line 116 of file TritonService.h.
References pid_.
Referenced by TritonClient::TritonClient().
|
private |
Definition at line 367 of file TritonService.cc.
References callFails_, mps_check::command, TritonService::FallbackOpts::command, Exception, fallbackOpts_, dqm-mbProfile::format, or, convertSQLitetoXML_cfg::output, startedFallback_, AlCaHLTBitMon_QueryRunRegistry::string, and verbose_.
Referenced by TritonService().
|
private |
Definition at line 201 of file TritonService.cc.
References allowAddModel_.
Referenced by TritonService().
|
private |
Definition at line 177 of file TritonService.cc.
References numberOfThreads_.
Referenced by TritonService().
|
private |
Definition at line 246 of file TritonService.cc.
References mps_check::command, TritonService::FallbackOpts::command, TritonService::FallbackOpts::container, edm::createGlobalIdentifier(), TritonService::FallbackOpts::debug, TritonService::FallbackOpts::device, TritonService::FallbackOpts::enable, Exception, edm::errors::ExternalFailure, TritonService::Server::fallbackAddress, TritonService::Server::fallbackName, fallbackOpts_, ALPAKA_ACCELERATOR_NAMESPACE::caPixelDoublets::if(), TritonService::FallbackOpts::imageName, TritonService::FallbackOpts::instanceName, LocalCPU, LocalGPU, ReggeGribovPartonMC_EposLHC_2760GeV_PbPb_cfi::model, hltEcalBarrelClusterFastTimer_cfi::modelName, models_, mps_check::msg, numberOfThreads_, or, convertSQLitetoXML_cfg::output, pid_, TritonService::FallbackOpts::retries, TritonService::FallbackOpts::sandboxName, contentValuesFiles::server, servers_, startedFallback_, AlCaHLTBitMon_QueryRunRegistry::string, TritonService::FallbackOpts::tempDir, to_string(), HcalDetIdTransform::transform(), unservedModels_, TritonService::FallbackOpts::verbose, verbose_, and TritonService::FallbackOpts::wait.
Referenced by TritonService().
|
private |
Definition at line 181 of file TritonService.cc.
References allowAddModel_, currentModuleId_, and submitPVResolutionJobs::desc.
Referenced by TritonService().
|
private |
Definition at line 203 of file TritonService.cc.
References submitPVResolutionJobs::desc, modules_, and unservedModels_.
Referenced by TritonService().
|
private |
Definition at line 400 of file TritonService.cc.
References fallbackOpts_, timingPdfMaker::infile, TritonService::FallbackOpts::instanceName, LOG, heppy_check::logName, and TritonService::FallbackOpts::tempDir.
TritonService::Server TritonService::serverInfo | ( | const std::string & | model, |
const std::string & | preferred = "" |
||
) | const |
Definition at line 224 of file TritonService.cc.
References ReggeGribovPartonMC_EposLHC_2760GeV_PbPb_cfi::model, models_, contentValuesFiles::server, and servers_.
Referenced by TritonClient::TritonClient().
|
private |
Definition at line 136 of file TritonService.h.
Referenced by addModel(), postModuleConstruction(), and preModuleConstruction().
|
mutableprivate |
Definition at line 138 of file TritonService.h.
Referenced by notifyCallStatus(), and postEndJob().
|
private |
Definition at line 135 of file TritonService.h.
Referenced by addModel(), and preModuleConstruction().
|
private |
Definition at line 134 of file TritonService.h.
Referenced by postEndJob(), preBeginJob(), and printFallbackServerLog().
|
private |
Definition at line 143 of file TritonService.h.
Referenced by addModel(), preBeginJob(), serverInfo(), and TritonService().
|
private |
Definition at line 144 of file TritonService.h.
Referenced by addModel(), and preModuleDestruction().
|
private |
Definition at line 145 of file TritonService.h.
Referenced by preallocate(), and preBeginJob().
|
private |
Definition at line 139 of file TritonService.h.
Referenced by pid(), and preBeginJob().
|
private |
Definition at line 142 of file TritonService.h.
Referenced by preBeginJob(), serverInfo(), and TritonService().
|
private |
Definition at line 137 of file TritonService.h.
Referenced by postEndJob(), and preBeginJob().
|
private |
Definition at line 140 of file TritonService.h.
Referenced by addModel(), preBeginJob(), and preModuleDestruction().
|
private |
Definition at line 133 of file TritonService.h.
Referenced by postEndJob(), preBeginJob(), and TritonService().