10 #ifndef WRENCH_HTCONDOR_H
11 #define WRENCH_HTCONDOR_H
13 #include "wrench/services/compute/ComputeServiceMessage.h"
14 #include "wrench/services/compute/ComputeService.h"
15 #include "wrench/services/compute/htcondor/HTCondorCentralManagerService.h"
16 #include "wrench/services/compute/htcondor/HTCondorComputeServiceProperty.h"
17 #include "wrench/services/compute/htcondor/HTCondorComputeServiceMessagePayload.h"
18 #include "wrench/job/PilotJob.h"
19 #include "wrench/job/StandardJob.h"
29 WRENCH_PROPERTY_COLLECTION_TYPE default_property_values = {
37 WRENCH_MESSAGE_PAYLOADCOLLECTION_TYPE default_messagepayload_values = {
55 std::set<std::shared_ptr<ComputeService>> compute_services,
56 WRENCH_PROPERTY_COLLECTION_TYPE property_list = {},
57 WRENCH_MESSAGE_PAYLOADCOLLECTION_TYPE messagepayload_list = {});
67 void validateJobsUseOfScratch(std::map<std::string, std::string> &service_specific_args)
override;
69 void validateServiceSpecificArguments(std::shared_ptr<CompoundJob> compound_job,
70 std::map<std::string, std::string> &service_specific_args)
override;
72 void addComputeService(std::shared_ptr<ComputeService> compute_service);
77 void submitCompoundJob(std::shared_ptr<CompoundJob> job,
78 const std::map<std::string, std::string> &service_specific_arguments)
override;
83 std::shared_ptr<StorageService> getLocalStorageService()
const;
85 void setLocalStorageService(std::shared_ptr<StorageService> local_storage_service);
100 void terminateCompoundJob(std::shared_ptr<CompoundJob> job)
override {};
113 bool processNextMessage();
115 void processSubmitCompoundJob(simgrid::s4u::Mailbox *answer_mailbox, std::shared_ptr<CompoundJob>job,
116 const std::map<std::string, std::string> &service_specific_args);
125 void processIsThereAtLeastOneHostWithAvailableResources(simgrid::s4u::Mailbox *answer_mailbox,
unsigned long num_cores,
double ram);
129 std::string pool_name;
130 std::shared_ptr<StorageService> local_storage_service;
131 std::shared_ptr<HTCondorCentralManagerService> central_manager;
135 #endif //WRENCH_HTCONDOR_H
static const std::string IS_THERE_AT_LEAST_ONE_HOST_WITH_AVAILABLE_RESOURCES_ANSWER_MESSAGE_PAYLOAD
The number of bytes in the control message sent to the daemon to ask is one host has some resources a...
Definition: ComputeServiceMessagePayload.h:78
static const std::string SUBMIT_COMPOUND_JOB_ANSWER_MESSAGE_PAYLOAD
The number of bytes in the control message sent by the daemon to acknowledge a compound job submissio...
Definition: ComputeServiceMessagePayload.h:43
static const std::string NON_GRID_POST_EXECUTION_DELAY
Overhead (in seconds) between condor and a bare-metal compute for the completion of execution of non-...
Definition: HTCondorComputeServiceProperty.h:42
static const std::string SUBMIT_STANDARD_JOB_REQUEST_MESSAGE_PAYLOAD
The number of bytes in the control message sent to the daemon to submit a standard job.
Definition: ComputeServiceMessagePayload.h:27
virtual bool supportsCompoundJobs() override
Returns true if the service supports compound jobs.
Definition: HTCondorComputeService.cpp:467
A workload management framework compute service.
Definition: HTCondorComputeService.h:27
static const std::string DAEMON_STOPPED_MESSAGE_PAYLOAD
The number of bytes in the control message sent by the daemon to confirm it has terminated.
Definition: ServiceMessagePayload.h:37
static const std::string RESOURCE_DESCRIPTION_REQUEST_MESSAGE_PAYLOAD
The number of bytes in the control message sent to the daemon to request information on its resources...
Definition: ComputeServiceMessagePayload.h:74
static const std::string IS_THERE_AT_LEAST_ONE_HOST_WITH_AVAILABLE_RESOURCES_REQUEST_MESSAGE_PAYLOAD
The number of bytes in the control message by the the daemon to state whether one host has some resou...
Definition: ComputeServiceMessagePayload.h:80
The compute service base class.
Definition: ComputeService.h:34
static const std::string NEGOTIATOR_OVERHEAD
Overhead, in seconds, of the HTCondor Negotiator, which is invoked each time a new job is submitted o...
Definition: HTCondorComputeServiceProperty.h:26
Definition: Action.cpp:28
static const std::string SUBMIT_PILOT_JOB_ANSWER_MESSAGE_PAYLOAD
The number of bytes in the control message sent from the daemon to acknowledge a pilot job submission...
Definition: ComputeServiceMessagePayload.h:56
virtual bool supportsPilotJobs() override
Returns true if the service supports pilot jobs.
Definition: HTCondorComputeService.cpp:475
static const std::string NON_GRID_PRE_EXECUTION_DELAY
Overhead (in seconds) between condor and a bare-metal compute service for the start of execution of n...
Definition: HTCondorComputeServiceProperty.h:38
static const std::string GRID_POST_EXECUTION_DELAY
Overhead (in seconds) between condor and a batch_standard_and_pilot_jobs compute service for the comp...
Definition: HTCondorComputeServiceProperty.h:34
static const std::string RESOURCE_DESCRIPTION_ANSWER_MESSAGE_PAYLOAD
The number of bytes in the control message sent by the daemon to state information on its resources.
Definition: ComputeServiceMessagePayload.h:76
static const std::string STOP_DAEMON_MESSAGE_PAYLOAD
The number of bytes in the control message sent to the daemon to terminate it.
Definition: ServiceMessagePayload.h:35
static const std::string PILOT_JOB_STARTED_MESSAGE_PAYLOAD
The number of bytes in the control message sent by the daemon to state that a pilot job has started.
Definition: ComputeServiceMessagePayload.h:58
static const std::string SUBMIT_STANDARD_JOB_ANSWER_MESSAGE_PAYLOAD
The number of bytes in the control message sent by the daemon to acknowledge a standard job submissio...
Definition: ComputeServiceMessagePayload.h:29
virtual bool supportsStandardJobs() override
Returns true if the service supports standard jobs.
Definition: HTCondorComputeService.cpp:459
HTCondorComputeService(const std::string &hostname, std::set< std::shared_ptr< ComputeService >> compute_services, WRENCH_PROPERTY_COLLECTION_TYPE property_list={}, WRENCH_MESSAGE_PAYLOADCOLLECTION_TYPE messagepayload_list={})
Constructor.
Definition: HTCondorComputeService.cpp:42
static const std::string SUBMIT_PILOT_JOB_REQUEST_MESSAGE_PAYLOAD
The number of bytes in the control message sent to the daemon to submit a pilot job.
Definition: ComputeServiceMessagePayload.h:54
static const std::string SUBMIT_COMPOUND_JOB_REQUEST_MESSAGE_PAYLOAD
The number of bytes in the control message sent to the daemon to submit a pilot job.
Definition: ComputeServiceMessagePayload.h:41
static const std::string GRID_PRE_EXECUTION_DELAY
Overhead (in seconds) between condor and a batch_standard_and_pilot_jobs compute service for the star...
Definition: HTCondorComputeServiceProperty.h:30