forked from MSO4SC/cloudify-hpc-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugin.yaml
191 lines (184 loc) · 8.67 KB
/
plugin.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
plugins:
hpc:
# Could be 'central_deployment_agent' or 'host_agent'.
# If 'central_deployment_agent', this plugin will be executed on the
# deployment dedicated agent, other wise it will be executed on the host agent.
executor: central_deployment_agent
# URL to archive containing the plugin or name of directory containing
# the plugin if it is included in the the blueprint directory under the
# "plugins" directory.
# source: https://github.com/MSO4SC/cloudify-hpc-plugin/archive/master.zip # @TODO: comment out if merge into upstream repo
source: https://github.com/SGo-Go/cloudify-hpc-plugin/archive/master.zip # @TODO: comment if merge into upstream repo
package_name: cloudify-hpc-plugin
package_version: '1.0'
workflows:
run_jobs:
mapping: hpc.hpc_plugin.workflows.run_jobs
node_types:
hpc.nodes.Compute:
derived_from: cloudify.nodes.Compute
properties:
config:
description: credentials, timezone and workload manager
external_monitor_entrypoint:
description: Monitor entrypoint, port and orchestrator port
default: ""
type: string
external_monitor_port:
description: Monitor entrypoint, port and orchestrator port
default: ":9090"
type: string
external_monitor_type:
description: Monitor type, e.g PROMETHEUS
default: "PROMETHEUS"
type: string
external_monitor_orchestrator_port:
description: Monitor entrypoint, port and orchestrator port
default: ":8079"
type: string
job_prefix:
description: Job name prefix for this HPC
default: "cfyhpc"
type: string
base_dir:
description: Root directory of all executions
default: "$HOME"
type: string
workdir_prefix:
description: Prefix of the working directory instead of blueprint name
default: ""
type: string
simulate:
description: Set to true to simulate job without sending it
type: boolean
default: False
skip_cleanup:
description: True to not clean all files at deployment removal
type: boolean
default: False
agent_config:
default:
install_method: none
interfaces:
cloudify.interfaces.lifecycle:
start:
implementation: hpc.hpc_plugin.tasks.prepare_hpc
inputs:
config:
default: { get_property: [SELF, config] }
base_dir:
default: { get_property: [SELF, base_dir] }
workdir_prefix:
default: { get_property: [SELF, workdir_prefix] }
simulate:
default: { get_property: [SELF, simulate] }
stop:
implementation: hpc.hpc_plugin.tasks.cleanup_hpc
inputs:
config:
default: { get_property: [SELF, config] }
skip:
default: { get_property: [SELF, skip_cleanup] }
simulate:
default: { get_property: [SELF, simulate] }
cloudify.interfaces.monitoring:
start:
implementation: hpc.hpc_plugin.tasks.start_monitoring_hpc
inputs:
config:
default: { get_property: [SELF, config] }
external_monitor_entrypoint:
default: { get_property: [SELF, external_monitor_entrypoint] }
external_monitor_port:
default: { get_property: [SELF, external_monitor_port] }
external_monitor_orchestrator_port:
default: { get_property: [SELF, external_monitor_orchestrator_port] }
simulate:
default: { get_property: [SELF, simulate] }
stop:
implementation: hpc.hpc_plugin.tasks.stop_monitoring_hpc
inputs:
config:
default: { get_property: [SELF, config] }
external_monitor_entrypoint:
default: { get_property: [SELF, external_monitor_entrypoint] }
external_monitor_port:
default: { get_property: [SELF, external_monitor_port] }
external_monitor_orchestrator_port:
default: { get_property: [SELF, external_monitor_orchestrator_port] }
simulate:
default: { get_property: [SELF, simulate] }
hpc.nodes.job:
derived_from: cloudify.nodes.Root
properties:
deployment:
description: Deployment script and inputs
default: {}
job_options:
description: Job main command and options
skip_cleanup:
description: True to not clean after execution (debug purposes)
type: boolean
default: False
interfaces:
cloudify.interfaces.lifecycle:
start: # needs to be start to have the hpc credentials
implementation: hpc.hpc_plugin.tasks.bootstrap_job
inputs:
deployment:
description: Deployment scripts and inputs
default: { get_property: [SELF, deployment] }
skip_cleanup:
default: { get_property: [SELF, skip_cleanup] }
stop:
implementation: hpc.hpc_plugin.tasks.revert_job
inputs:
deployment:
description: Undeployment script and inputs
default: { get_property: [SELF, deployment] }
skip_cleanup:
default: { get_property: [SELF, skip_cleanup] }
hpc.interfaces.lifecycle:
queue:
implementation: hpc.hpc_plugin.tasks.send_job
inputs:
job_options:
default: { get_property: [SELF, job_options] }
cleanup:
implementation: hpc.hpc_plugin.tasks.cleanup_job
inputs:
job_options:
default: { get_property: [SELF, job_options] }
skip:
default: { get_property: [SELF, skip_cleanup] }
cancel:
implementation: hpc.hpc_plugin.tasks.stop_job
inputs:
job_options:
default: { get_property: [SELF, job_options] }
hpc.nodes.singularity_job:
derived_from: hpc.nodes.job
relationships:
job_contained_in_hpc:
derived_from: cloudify.relationships.contained_in
source_interfaces:
cloudify.interfaces.relationship_lifecycle:
preconfigure:
implementation: hpc.hpc_plugin.tasks.preconfigure_job
inputs:
config:
default: { get_property: [TARGET, config] }
external_monitor_entrypoint:
default: { get_property: [TARGET, external_monitor_entrypoint] }
external_monitor_port:
default: { get_property: [TARGET, external_monitor_port] }
external_monitor_type:
default: { get_property: [TARGET, external_monitor_type] }
external_monitor_orchestrator_port:
default: { get_property: [TARGET, external_monitor_orchestrator_port] }
job_prefix:
default: { get_property: [TARGET, job_prefix] }
simulate:
default: { get_property: [TARGET, simulate] }
job_depends_on:
derived_from: cloudify.relationships.depends_on