This commit is contained in:
2024-07-29 10:27:54 +02:00
parent 86827c23db
commit 393985d305
17 changed files with 172 additions and 12 deletions

View File

@@ -0,0 +1,3 @@
![](img/cloud.png)
## Simulator for TFGrid 4.x

View File

@@ -0,0 +1,4 @@
!!tfgridsimulation_farming.node_wiki name:...

View File

@@ -0,0 +1,12 @@
## parameters for the simulation
```js
!!tfgridsimulation_farming.simulator_params_define
wiki_path: '/tmp/simulatorwiki'
```

View File

@@ -0,0 +1,15 @@
## cultivation parameters for the simulation
```js
!!tfgridsimulation_farming.cultivation_params_define
//how much in percentage are nodes used (0-100)
utilization_nodes: '1:0,24:70'
revenue_per_cu_usd: '1:5,60:4'
revenue_per_su_usd: '1:5,60:3'
revenue_per_nu_usd: '1:0.01,60:0.005'
cost_per_cu_usd: '1:0'
cost_per_su_usd: '1:0'
cost_per_nu_usd: '1:0.005,60:0.0025'
```

View File

@@ -0,0 +1,21 @@
## parameters for the simulation
```js
!!tfgridsimulation_farming.environment_params_define
//power cost per khw
power_cost: '1:0.06,60:0.15'
//rackspace cost per U in USD
rackspace_cost: '1:10,60:5'
!!tfgridsimulation_farming.farming_params_define
//nr of months lockup after adding node
farming_lockup: 24
farming_min_utilizaton: 30
//how much will node hardware cost more (here less) over time, 2 means double, 0.5 means half
price_increase_nodecost: '1:1,60:0.3'
//price in USD for support cost per node per month
support_cost_node: '1:10'
```

View File

@@ -0,0 +1,17 @@
## Growth
### Regional internet ZNZ
```js
!!tfgridsimulation_farming.regional_internet_add name:znz
Add the nodes following our template 1U to our regional internet.
!!tfgridsimulation_farming.regional_internet_nodes_add
name:znz
template:1U
//nodes added per month from the template
growth:'3:0,4:50,12:200,24:1000,60:3000'
```

View File

@@ -0,0 +1,42 @@
## generic node, name 1U
This is a normalized node for our simulator
Following defines the Bill of Material and composition of such a noce
```js
!!tfgridsimulation_farming.component_define name:AMD32
description: 'powerful amd cpu'
cost:250.0
//in watt
power:70
cru:32
!!tfgridsimulation_farming.component_define name:CASE1U
description: '1U rack mountable case'
cost:150.0
rackspace:1
power:20
!!tfgridsimulation_farming.component_define name:MEM32
description: 'memory 32 GB'
cost:90.0
power:20
mru:32
!!tfgridsimulation_farming.component_define name:SSD1TB
description: 'SSD of 2 GT'
cost:120.0
power:5
sru:1000
!!tfgridsimulation_farming.node_template_define name:'1U'
!!tfgridsimulation_farming.node_template_component_add name:'1U' nr:1 component:AMD32
!!tfgridsimulation_farming.node_template_component_add name:'1U' nr:1 component:CASE1U
!!tfgridsimulation_farming.node_template_component_add name:'1U' nr:4 component:MEM32
!!tfgridsimulation_farming.node_template_component_add name:'1U' nr:2 component:SSD1TB
```

View File

@@ -0,0 +1,16 @@
## token params
```js
!!tfgridsimulation_farming.token_params_define
// in usd per chi token
chi_price_usd: '1:0.1,12:0.2,24:0.5,36:3,60:2'
// chi_price_usd: '1:0.1'
chi_total_tokens_million: 1000
```