...
This commit is contained in:
12
collections/tfgridsimulation_farming/.run.sh
Executable file
12
collections/tfgridsimulation_farming/.run.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
set -ex
|
||||
|
||||
#~/code/github/freeflowuniverse/crystallib/cli/hero/compile_debug.sh
|
||||
|
||||
hero mdbook -u https://git.ourworld.tf/tfgrid/info_tfgrid/src/branch/development/heroscript/tfgridsimulation_farming
|
||||
|
||||
|
||||
#result will be in /root/hero/var/mdbuild/tfgrid4simulator
|
||||
#~/hero/www/info/tfgrid4simulator/
|
||||
|
||||
#https://threefold.info/tfgrid4simulator/
|
1
collections/tfgridsimulation_farming/SUMMARY.md
Symbolic link
1
collections/tfgridsimulation_farming/SUMMARY.md
Symbolic link
@@ -0,0 +1 @@
|
||||
../../heroscript/tfgridsimulation_farming/SUMMARY.md
|
1
collections/tfgridsimulation_farming/img/.done
Normal file
1
collections/tfgridsimulation_farming/img/.done
Normal file
@@ -0,0 +1 @@
|
||||
tf_intro.png
|
BIN
collections/tfgridsimulation_farming/img/tf_intro.png
Normal file
BIN
collections/tfgridsimulation_farming/img/tf_intro.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 260 KiB |
@@ -1,3 +1,11 @@
|
||||

|
||||

|
||||
|
||||
## Simulator for TFGrid 4.x
|
||||
|
||||
|
||||
This simulator has been created to allow people to experiment with the economic principles behind the TFGrid.
|
||||
|
||||
In version 4 we changed the principles to make it easier to reach millions of nodes in the field.
|
||||
|
||||
More information about threefold see: [https://www.threefold.io/host/](https://www.threefold.io/host/)
|
||||
|
||||
|
5
collections/tfgridsimulation_farming/nodes/node_1u.md
Normal file
5
collections/tfgridsimulation_farming/nodes/node_1u.md
Normal file
@@ -0,0 +1,5 @@
|
||||
|
||||
|
||||
|
||||
|
||||
!!!tfgridsimulation_farming.node_wiki name:'1u'
|
@@ -1,4 +0,0 @@
|
||||
|
||||
!!tfgridsimulation_farming.node_wiki name:...
|
||||
|
||||
|
5
collections/tfgridsimulation_farming/regionalinternet.md
Normal file
5
collections/tfgridsimulation_farming/regionalinternet.md
Normal file
@@ -0,0 +1,5 @@
|
||||
|
||||
## Regional Internets
|
||||
|
||||
|
||||
!!!tfgridsimulation_farming.regionalinternet_wiki name:'znz'
|
@@ -4,14 +4,13 @@
|
||||
|
||||
This is a normalized node for our simulator
|
||||
|
||||
Following defines the Bill of Material and composition of such a noce
|
||||
Following defines the Bill of Material and composition of such a node
|
||||
|
||||
```js
|
||||
!!tfgridsimulation_farming.component_define name:AMD32
|
||||
description: 'powerful amd cpu'
|
||||
cost:250.0
|
||||
//in watt
|
||||
power:70
|
||||
cost:250.0
|
||||
power:70 //in watt
|
||||
cru:32
|
||||
|
||||
!!tfgridsimulation_farming.component_define name:CASE1U
|
||||
@@ -33,6 +32,7 @@ Following defines the Bill of Material and composition of such a noce
|
||||
sru:1000
|
||||
|
||||
!!tfgridsimulation_farming.node_template_define name:'1U'
|
||||
image:'projectinca:inca_node_silver_2.png'
|
||||
|
||||
!!tfgridsimulation_farming.node_template_component_add name:'1U' nr:1 component:AMD32
|
||||
!!tfgridsimulation_farming.node_template_component_add name:'1U' nr:1 component:CASE1U
|
@@ -1,12 +0,0 @@
|
||||
|
||||
## parameters for the simulation
|
||||
|
||||
```js
|
||||
|
||||
!!tfgridsimulation_farming.simulator_params_define
|
||||
wiki_path: '/tmp/simulatorwiki'
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
@@ -1,15 +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'
|
||||
!!tfgridsimulation_farming.cultivation_params_define
|
||||
utilization_nodes: '1:0,24:70' //how much in percentage are nodes used (0-100)
|
||||
revenue_per_cu_usd: '1:5,60:4' //revenue per cloud units
|
||||
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_cu_usd: '1:0' //is there a cost for the units, here no
|
||||
cost_per_su_usd: '1:0'
|
||||
cost_per_nu_usd: '1:0.005,60:0.0025'
|
||||
cost_per_nu_usd: '1:0.005,60:0.0025' //for networking there is a cost
|
||||
|
||||
```
|
||||
```
|
||||
|
@@ -5,7 +5,7 @@
|
||||
```js
|
||||
!!tfgridsimulation_farming.environment_params_define
|
||||
//power cost per khw
|
||||
power_cost: '1:0.06,60:0.15'
|
||||
power_cost: '1:0.15,60:0.25'
|
||||
//rackspace cost per U in USD
|
||||
rackspace_cost: '1:10,60:5'
|
||||
|
||||
|
13
collections/tfgridsimulation_farming/specs/run.md
Normal file
13
collections/tfgridsimulation_farming/specs/run.md
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
## the runner
|
||||
|
||||
This page triggers the full simulation
|
||||
|
||||
```js
|
||||
|
||||
!!tfgridsimulation_farming.run //this one will make sure the simulator is run
|
||||
|
||||
|
||||
```
|
||||
|
||||
|
@@ -0,0 +1,7 @@
|
||||

|
||||
|
||||
# Specifications
|
||||
|
||||
In this section you can change the paramters of a simulation.
|
||||
|
||||
|
Reference in New Issue
Block a user