Skip to content

Commit

Permalink
feat(manifets): init updated sci embodied samples
Browse files Browse the repository at this point in the history
  • Loading branch information
narekhovhannisyan committed Aug 28, 2024
1 parent c43c5eb commit b2c4f22
Show file tree
Hide file tree
Showing 5 changed files with 75 additions and 47 deletions.

This file was deleted.

This file was deleted.

27 changes: 27 additions & 0 deletions manifests/examples/builtins/sci-embodied/scenario-1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: embodied-carbon demo
description:
tags:
aggregation:
metrics:
- embodied-carbon
type: "both"
initialize:
plugins:
embodied-carbon:
method: SciEmbodied
path: builtin
global-config:
output-parameter: "embodied-carbon"
tree:
children:
child:
pipeline:
compute:
- embodied-carbon
inputs:
- timestamp: 2023-08-06T00:00
duration: 3600
hdd: 2
- timestamp: 2023-08-06T10:00
duration: 3600
hdd: 2
37 changes: 37 additions & 0 deletions manifests/examples/builtins/sci-embodied/scenario-2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: embodied-carbon demo
description:
tags:
initialize:
plugins:
embodied-carbon:
method: SciEmbodied
path: builtin
global-config:
baseline-vcpus: 1
baseline-memory: 16
lifespan: 157680000
baseline-emissions: 2000000
vcpu-emissions-constant: 100000
memory-emissions-constant: 1172
ssd-emissions-constant: 50000
hdd-emissions-constant: 100000
gpu-emissions-constant: 150000
output-parameter: "embodied-carbon"
tree:
children:
child:
pipeline:
compute:
- embodied-carbon
defaults:
vCPUs: 4
memory: 32
ssd: 1
hdd: 1
gpu: 1
total-vcpus: 16
inputs:
- timestamp: 2023-08-06T00:00
duration: 3600
- timestamp: 2023-08-06T10:00
duration: 3600
12 changes: 11 additions & 1 deletion manifests/examples/builtins/sci-embodied/success.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,24 @@ description: successful path
tags:
initialize:
plugins:
"sci-embodied": # a model that calculates m from te, tir, el, rr and rtor
"csv-lookup":
path: builtin
method: CSVLookup
config:
filepath: >-
https://raw.githubusercontent.com/Green-Software-Foundation/if-data/main/cloud-metdata-azure-instances.csv
query:
instance-class: cloud/instance-type
output: ["cpu-cores-utilized", "vcpus-allocated"]
"sci-embodied-new": # a model that calculates m from te, tir, el, rr and rtor
method: SciEmbodied
path: "builtin"
tree:
children:
child:
pipeline:
compute:
- csv-lookup
- sci-embodied # duration & config -> embodied
defaults:
device/emissions-embodied: 1533.120 # gCO2eq
Expand Down

0 comments on commit b2c4f22

Please sign in to comment.