Skip to content

Commit

Permalink
add e to ntt
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcook1186 committed Sep 10, 2023
1 parent 17b3852 commit 169435e
Showing 1 changed file with 73 additions and 57 deletions.
130 changes: 73 additions & 57 deletions impls/ntt-data-on-premise.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,14 @@ tags:
category: on-premise
initialize:
models:
- name: switch # a model that returns an embodied value given the sci embodied attribution equation.
- name: switch # returns e in kwh based on a switch model.
kind: plugin
path: ''
verbose: false
- name: pue # multiplies e by a coefficient (here 1.5)
kind: builtin
path: ''
verbose: false
- name: sci-m # a model that calculates m from te, tir, el, rr and rtor
kind: builtin
verbose: false
Expand All @@ -17,11 +22,7 @@ initialize:
kind: builtin
verbose: false
path: ''
- name: teads-cpu # a model that returns energy based on the generalised teads power curve and tdp
kind: builtin
verbose: false
path: ''
- name: server # average power -> energy in kwh
- name: server # returns e in kwh based on a server model
kind: plugin
path: ''
- name: sci # sums sci-o and sci-m
Expand All @@ -33,19 +34,21 @@ graph:
pipeline:
- switch
- pue
- teads-cpu
- sci-m
- sci-o
- sci
config:
switch:
p_baseline: 92.5 # W Baseline power based on full port 100% traffic for Cisco Catalyst 9300
n_ports: 24
duplex: 2
n-hour: 1
link speed: 1000000000
pue:
pue: 1.5
sci-m:
te: 0.251 # kgCO2eq
tir: duration # get from the duration field
tir: 3600 # 1 hour in s
el: 126144000 # 4 years in seconds
rr: 1
tor: 1
Expand All @@ -57,26 +60,28 @@ graph:
observations:
series:
- timestamp: 2023-07-06T00:00
duration: 1
duration: 3600
five-min-input-rate: 100
five-min-output-rate: 100
layer-2-switch:
pipeline:
- switch
- pue
- teads-cpu # tdp & cpu -> energy
- switch # gives e
- pue # multiplies e by coefficient
- sci-m # duration & config -> embodied
- sci-o # energy & grid-carbon-intensity & embodied -> carbon
- sci
config:
switch:
p_baseline: 22.8 # W Baseline power based on full port 100% traffic for Cisco Catalyst 9300
n_ports: 24
duplex: 2
n-hour: 1
link speed: 1000000000
pue:
pue: 1.5
sci-m:
te: 0.251 # kgCO2eq
tir: duration # get from the duration field
tir: 3600 # get from the duration field
el: 126144000 # 4 years in seconds
rr: 1
tor: 1
Expand All @@ -91,42 +96,37 @@ graph:
series:
- timestamp: 2023-07-06T00:00
duration: 1
five-min-input-rate: 100
five-min-output-rate: 100
mapping:
units: hours
e: 5.41e-4 #kwh
switch-2:
observations:
series:
- timestamp: 2023-07-06T00:00
duration: 1
five-min-input-rate: 100
five-min-output-rate: 100
mapping:
units: hours
e: 0 # no traffic at all
switch-3:
observations:
series:
- timestamp: 2023-07-06T00:00
duration: 1
five-min-input-rate: 100
five-min-output-rate: 100
mapping:
units: hours
e: 6.37e-4 #kwh
switch-4:
observations:
series:
- timestamp: 2023-07-06T00:00
duration: 1
five-min-input-rate: 100
five-min-output-rate: 100
e: 7.60e-9 #kwh
db-servers:
pipeline:
- server # average power -> energy in kwh
- server # average power -> energy in kwh (actually provides e directly)
- pue # multiplies e by coefficient
- sci-m # duration & config -> embodied
- sci-o # energy & grid-carbon-intensity & embodied -> carbon
- sci
config:
server:
n-hour: 1
pue:
pue: 1.5
sci-m:
te: 6270 # kgCO2eq
tir: duration # get from the duration field
Expand All @@ -138,22 +138,30 @@ graph:
sci:
time: hour
factor: 38032740 # divide SCI (per hour) by this value to get SCI per web interaction
observations:
series:
- timestamp: 2023-07-06T00:00
duration: 1
instantaneous-power: 176
min_in_sample: 1
max_in_sample: 6560
mean_over_sample: 113
sampling_period: 0.0000001 #seconds
children:
db-server1:
observations:
series:
- timestamp: 2023-07-06T00:00
e: 0.258
duration: 1 #s
db-server2:
observations:
series:
- timestamp: 2023-07-06T00:00
e: 0.193
duration: 1 #s
app-servers:
pipeline:
- server # average power -> energy in kwh
- server # average power -> energy in kwh (actually provides e directly)
- sci-m # duration & config -> embodied
- sci-o # energy & grid-carbon-intensity & embodied -> carbon
- sci
config:
server:
n-hour: 1
pue:
pue: 1.5
sci-m:
te: 6270 # kgCO2eq
tir: duration # get from the duration field
Expand All @@ -165,18 +173,22 @@ graph:
sci:
time: hour
factor: 38032740 # divide SCI (per hour) by this value to get SCI per web interaction
observations:
series:
- timestamp: 2023-07-06T00:00
duration: 1
instantaneous-power: 176
min_in_sample: 1
max_in_sample: 6560
mean_over_sample: 113
sampling_period: 0.0000001 #seconds
children:
app-server1:
observations:
series:
- timestamp: 2023-07-06T00:00
duration: 1
e: 0.149
app-server2:
observations:
series:
- timestamp: 2023-07-06T00:00
duration: 1
e: 0.147
web-servers:
pipeline:
- server # average power -> energy in kwh
- server # average power -> energy in kwh (actually provides e directly)
- sci-m # duration & config -> embodied
- sci-o # energy & grid-carbon-intensity & embodied -> carbon
- sci
Expand All @@ -192,12 +204,16 @@ graph:
sci:
time: hour
factor: 38032740 # divide SCI (per hour) by this value to get SCI per web interaction
observations:
series:
- timestamp: 2023-07-06T00:00
duration: 1
instantaneous-power: 176
min_in_sample: 1
max_in_sample: 6560
mean_over_sample: 113
sampling_period: 0.0000001 #seconds
children:
web-server1:
observations:
series:
- timestamp: 2023-07-06T00:00
duration: 1
e: 0.139
web-server2:
observations:
series:
- timestamp: 2023-07-06T00:00
duration: 1
e: 0.116

0 comments on commit 169435e

Please sign in to comment.