#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 58 of file TritonService.cc.
References HLTObjectMonitor_Client_cff::client, TritonService::FallbackOpts::enable, Exception, TritonService::Server::fallbackAddress, TritonService::Server::fallbackName, fallbackOpts_, LocalCPU, LocalGPU, ecalBarrelClusterFastTimer_cfi::modelName, models_, mps_check::msg, postEndJob(), postModuleConstruction(), preallocate(), preBeginJob(), preModuleConstruction(), preModuleDestruction(), muonDTDigis_cfi::pset, Remote, contentValuesFiles::server, servers_, AlCaHLTBitMon_QueryRunRegistry::string, TRITON_THROW_IF_ERROR, tier0::unique(), TritonService::FallbackOpts::useGPU, 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 155 of file TritonService.cc.
References allowAddModel_, currentModuleId_, Exception, ecalBarrelClusterFastTimer_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 362 of file TritonService.cc.
References edm::ParameterSetDescription::addUntracked(), edm::ConfigurationDescriptions::addWithDefaultLabel(), submitPVResolutionJobs::desc, and AlCaHLTBitMon_QueryRunRegistry::string.
void TritonService::notifyCallStatus | ( | bool | status | ) | const |
Definition at line 303 of file TritonService.cc.
References callFails_, and mps_update::status.
Referenced by TritonClient::evaluate(), and TritonException::TritonException().
|
inline |
Definition at line 115 of file TritonService.h.
References pid_.
Referenced by TritonClient::TritonClient().
|
private |
Definition at line 310 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 170 of file TritonService.cc.
References allowAddModel_.
Referenced by TritonService().
|
private |
Definition at line 146 of file TritonService.cc.
References numberOfThreads_.
Referenced by TritonService().
|
private |
Definition at line 215 of file TritonService.cc.
References mps_check::command, TritonService::FallbackOpts::command, edm::createGlobalIdentifier(), TritonService::FallbackOpts::debug, TritonService::FallbackOpts::enable, Exception, TritonService::Server::fallbackName, fallbackOpts_, ALPAKA_ACCELERATOR_NAMESPACE::caPixelDoublets::if(), TritonService::FallbackOpts::imageName, TritonService::FallbackOpts::instanceName, ReggeGribovPartonMC_EposLHC_2760GeV_PbPb_cfi::model, ecalBarrelClusterFastTimer_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(), unservedModels_, TritonService::FallbackOpts::useDocker, TritonService::FallbackOpts::useGPU, TritonService::FallbackOpts::verbose, verbose_, and TritonService::FallbackOpts::wait.
Referenced by TritonService().
|
private |
Definition at line 150 of file TritonService.cc.
References allowAddModel_, currentModuleId_, and submitPVResolutionJobs::desc.
Referenced by TritonService().
|
private |
Definition at line 172 of file TritonService.cc.
References submitPVResolutionJobs::desc, modules_, and unservedModels_.
Referenced by TritonService().
|
private |
Definition at line 343 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 193 of file TritonService.cc.
References ReggeGribovPartonMC_EposLHC_2760GeV_PbPb_cfi::model, models_, contentValuesFiles::server, and servers_.
Referenced by TritonClient::TritonClient().
|
private |
Definition at line 135 of file TritonService.h.
Referenced by addModel(), postModuleConstruction(), and preModuleConstruction().
|
mutableprivate |
Definition at line 137 of file TritonService.h.
Referenced by notifyCallStatus(), and postEndJob().
|
private |
Definition at line 134 of file TritonService.h.
Referenced by addModel(), and preModuleConstruction().
|
private |
Definition at line 133 of file TritonService.h.
Referenced by postEndJob(), preBeginJob(), printFallbackServerLog(), and TritonService().
|
private |
Definition at line 142 of file TritonService.h.
Referenced by addModel(), preBeginJob(), serverInfo(), and TritonService().
|
private |
Definition at line 143 of file TritonService.h.
Referenced by addModel(), and preModuleDestruction().
|
private |
Definition at line 144 of file TritonService.h.
Referenced by preallocate(), and preBeginJob().
|
private |
Definition at line 138 of file TritonService.h.
Referenced by pid(), and preBeginJob().
|
private |
Definition at line 141 of file TritonService.h.
Referenced by preBeginJob(), serverInfo(), and TritonService().
|
private |
Definition at line 136 of file TritonService.h.
Referenced by postEndJob(), and preBeginJob().
|
private |
Definition at line 139 of file TritonService.h.
Referenced by addModel(), preBeginJob(), and preModuleDestruction().
|
private |
Definition at line 132 of file TritonService.h.
Referenced by postEndJob(), preBeginJob(), and TritonService().