Repository navigation
Expand file tree
/
Copy pathnode-types.yaml
More file actions
255 lines (248 loc) · 8.05 KB
/
Copy pathnode-types.yaml
File metadata and controls
255 lines (248 loc) · 8.05 KB
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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
tosca_definitions_version: tosca_simple_yaml_1_3
metadata:
template_name: MYRTUS Cloud-Fog-Edge Node Types
template_author: MYRTUS Project Contributors
template_version: 2.0.0
description: >
MYRTUS node types for modeling compute resources, edge devices, network
links, hardware accelerators, and containerized software components across
the cloud-fog-edge continuum.
node_types:
eu.myrtus.MyrtusCompute:
description: >
A compute node at any continuum layer, with explicit tier and
sustainability properties.
derived_from: tosca.nodes.Compute
properties:
edge_zone:
type: string
description: Continuum tier occupied by this compute node.
required: true
constraints:
- valid_values: [ edge, fog, cloud ]
location:
type: string
description: Physical or logical location identifier.
required: false
docker_runtime:
type: string
description: Container runtime available on this node.
required: false
monitoring_enabled:
type: boolean
description: Whether a monitoring agent is enabled on this node.
required: false
tdp_watts:
type: float
description: Vendor-rated peak power draw under full load, in watts.
required: false
constraints:
- greater_or_equal: 0
renewable_energy_ratio:
type: float
description: Fraction of the node's energy supply from renewables.
required: false
constraints:
- in_range: [ 0.0, 1.0 ]
cooling_pue:
type: float
description: >
Power Usage Effectiveness: total facility power divided by IT
equipment power.
required: false
constraints:
- greater_or_equal: 1.0
eu.myrtus.MyrtusEdgeDevice:
description: >
A physical endpoint such as a sensor, camera, or VR headset that
produces or consumes data but is not a compute hosting target.
derived_from: tosca.nodes.Root
properties:
protocol:
type: string
description: Communication protocol used by the device.
required: false
constraints:
- valid_values: [ MQTT, CoAP, HTTP, LoRaWAN, custom ]
data_rate_mbps:
type: float
description: Peak data rate in megabits per second.
required: false
constraints:
- greater_or_equal: 0
mobility:
type: string
description: Whether the device is stationary or mobile.
required: false
constraints:
- valid_values: [ static, mobile ]
power_source:
type: string
description: Primary source of the device's power.
required: false
constraints:
- valid_values: [ battery, solar, grid, harvested ]
max_power_w:
type: float
description: Peak device power consumption in watts.
required: false
constraints:
- greater_or_equal: 0
idle_power_w:
type: float
description: Device power consumption while idle, in watts.
required: false
constraints:
- greater_or_equal: 0
duty_cycle:
type: float
description: Fraction of time the device is active.
required: false
constraints:
- in_range: [ 0.0, 1.0 ]
sleep_latency_ms:
type: integer
description: Time for the device to wake from deep sleep, in milliseconds.
required: false
constraints:
- greater_or_equal: 0
eu.myrtus.MyrtusNetwork:
description: >
A network link between continuum tiers, exposing its capacity, latency,
energy use, and carbon intensity.
derived_from: tosca.nodes.network.Network
properties:
bandwidth_mbps:
type: float
description: Link capacity in megabits per second.
required: false
constraints:
- greater_or_equal: 0
latency_ms:
type: float
description: One-way propagation latency in milliseconds.
required: false
constraints:
- greater_or_equal: 0
tier_src:
type: string
description: Source tier connected by this link.
required: false
constraints:
- valid_values: [ device, edge, fog, cloud ]
tier_dst:
type: string
description: Destination tier connected by this link.
required: false
constraints:
- valid_values: [ device, edge, fog, cloud ]
link_type:
type: string
description: Physical or logical link technology.
required: false
constraints:
- valid_values: [ fiber, 5G, WiFi6, LoRaWAN, ethernet ]
energy_per_gb_kwh:
type: float
description: Energy required to transfer one gigabyte over this link.
required: false
constraints:
- greater_or_equal: 0
carbon_intensity_gco2_kwh:
type: float
description: Link infrastructure carbon intensity in gCO2 per kWh.
required: false
constraints:
- greater_or_equal: 0
eu.myrtus.MyrtusAccelerator:
description: >
A dedicated hardware accelerator hosted by a MYRTUS compute node.
derived_from: tosca.nodes.Abstract.Compute
properties:
accelerator_type:
type: string
description: Accelerator architecture or processor type.
required: false
constraints:
- valid_values: [ GPU, FPGA, CGRA, NPU, RISC-V ]
compute_units:
type: integer
description: Number of accelerator compute units.
required: false
constraints:
- greater_or_equal: 0
memory_gb:
type: float
description: Accelerator memory capacity in gigabytes.
required: false
constraints:
- greater_or_equal: 0
tdp_watts:
type: float
description: Peak power draw under full load, in watts.
required: false
constraints:
- greater_or_equal: 0
gflops_per_watt:
type: float
description: Floating-point throughput per watt.
required: false
constraints:
- greater_or_equal: 0
idle_power_ratio:
type: float
description: Idle power as a fraction of peak power.
required: false
constraints:
- in_range: [ 0.0, 1.0 ]
reconfigurable:
type: boolean
description: Whether the accelerator can be reconfigured at runtime.
required: false
requirements:
- host:
capability: tosca.capabilities.Compute
node: eu.myrtus.MyrtusCompute
relationship: tosca.relationships.HostedOn
occurrences: [ 1, 1 ]
eu.myrtus.MyrtusSWComponent:
description: >
A containerized microservice deployable across cloud, fog, and edge
compute nodes.
derived_from: tosca.nodes.SoftwareComponent
properties:
docker_image:
type: string
description: Required OCI container image reference.
required: true
resource_limits:
type: map
description: CPU and memory bounds for the component.
required: false
entry_schema:
type: string
health_check_endpoint:
type: string
description: HTTP path used to check component health.
required: false
auto_restart:
type: boolean
description: Whether to restart the component after a failure.
required: false
energy_profile:
type: string
description: Energy footprint class and adaptation behavior.
required: false
constraints:
- valid_values: [ high, medium, low, adaptive ]
requirements:
- host:
capability: tosca.capabilities.Compute
node: eu.myrtus.MyrtusCompute
relationship: tosca.relationships.HostedOn
occurrences: [ 1, 1 ]
- accelerator:
capability: tosca.capabilities.Compute
node: eu.myrtus.MyrtusAccelerator
relationship: tosca.relationships.DependsOn
occurrences: [ 0, UNBOUNDED ]