diff --git a/collections/tfgridsimulation/.collection b/collections/tfgridsimulation/.collection new file mode 100644 index 0000000..e69de29 diff --git a/collections/tfgridsimulation/img/.done b/collections/tfgridsimulation/img/.done new file mode 100644 index 0000000..bbdf148 --- /dev/null +++ b/collections/tfgridsimulation/img/.done @@ -0,0 +1 @@ +cloud.png diff --git a/collections/tfgridsimulation/img/cloud.png b/collections/tfgridsimulation/img/cloud.png new file mode 100644 index 0000000..10d1282 Binary files /dev/null and b/collections/tfgridsimulation/img/cloud.png differ diff --git a/collections/tfgridsimulation/intro.md b/collections/tfgridsimulation/intro.md new file mode 100644 index 0000000..804070e --- /dev/null +++ b/collections/tfgridsimulation/intro.md @@ -0,0 +1,3 @@ +![](img/cloud.png) + +## Simulator for TFGrid 4.x diff --git a/collections/tfgridsimulation/node_stats/ai_stats.md b/collections/tfgridsimulation/node_stats/ai_stats.md new file mode 100644 index 0000000..fde818a --- /dev/null +++ b/collections/tfgridsimulation/node_stats/ai_stats.md @@ -0,0 +1,44 @@ +# Simulation for Nodes of Type ai + + +!!sheet.graph_line_row sheetname:'tfgridsim_run1' + rowname:'ai_new_per_month' + period_type:quarter + +Nr of nodes sold per month. + +!!sheet.graph_line_row sheetname:'tfgridsim_run1' + rowname:'ai_nr_active' + period_type:quarter + +Nr of nodes active at end of quarter. + +## Financials + +!!sheet.graph_line_row sheetname:'tfgridsim_run1' + rowname:'ai_utilization' + period_type:quarter + +Utilization + +!!sheet.graph_bar_row sheetname:'tfgridsim_run1' + rowname:'ai_rev_month' + period_type:quarter + +Revenue as can be made per node (after discount and at utilization) + +!!sheet.graph_line_row sheetname:'tfgridsim_run1' + rowname:'ai_rev_total' + period_type:quarter + +Revenue per month for all nodes of this type. + +## Overview + +!!sheet.sheet_wiki sheetname:'tfgridsim_run1' includefilter:'nodetype:ai' + +
+ +## Details Month + +!!sheet.sheet_wiki sheetname:'tfgridsim_run1' period_type:month includefilter:'nodetype:ai' \ No newline at end of file diff --git a/collections/tfgridsimulation/node_stats/node_stats.md b/collections/tfgridsimulation/node_stats/node_stats.md new file mode 100644 index 0000000..d957f6f --- /dev/null +++ b/collections/tfgridsimulation/node_stats/node_stats.md @@ -0,0 +1,30 @@ +# Node Stats + + + +!!sheet.graph_line_row sheetname:'tfgridsim_run1' + period_type:quarter + includefilter:'nrnodes_new' + +Nr of nodes sold per month. + +
+
+ +!!sheet.graph_line_row sheetname:'tfgridsim_run1' + period_type:quarter + includefilter:'utilization' + +Utilization of the nodes over time. + +## Financials + +!!sheet.graph_line_row sheetname:'tfgridsim_run1' + rowname:'noderev' + period_type:quarter + +Revenue per month for all nodes of this type. + +## Overview Stats for all Type of Nodes + +!!sheet.sheet_wiki sheetname:'tfgridsim_run1' includefilter:'nodestats_total' diff --git a/collections/tfgridsimulation/node_stats/platinum_stats.md b/collections/tfgridsimulation/node_stats/platinum_stats.md new file mode 100644 index 0000000..9c2833c --- /dev/null +++ b/collections/tfgridsimulation/node_stats/platinum_stats.md @@ -0,0 +1,44 @@ +# Simulation for Nodes of Type platinum + + +!!sheet.graph_line_row sheetname:'tfgridsim_run1' + rowname:'platinum_new_per_month' + period_type:quarter + +Nr of nodes sold per month. + +!!sheet.graph_line_row sheetname:'tfgridsim_run1' + rowname:'platinum_nr_active' + period_type:quarter + +Nr of nodes active at end of quarter. + +## Financials + +!!sheet.graph_line_row sheetname:'tfgridsim_run1' + rowname:'platinum_utilization' + period_type:quarter + +Utilization + +!!sheet.graph_bar_row sheetname:'tfgridsim_run1' + rowname:'platinum_rev_month' + period_type:quarter + +Revenue as can be made per node (after discount and at utilization) + +!!sheet.graph_line_row sheetname:'tfgridsim_run1' + rowname:'platinum_rev_total' + period_type:quarter + +Revenue per month for all nodes of this type. + +## Overview + +!!sheet.sheet_wiki sheetname:'tfgridsim_run1' includefilter:'nodetype:platinum' + +
+ +## Details Month + +!!sheet.sheet_wiki sheetname:'tfgridsim_run1' period_type:month includefilter:'nodetype:platinum' \ No newline at end of file diff --git a/collections/tfgridsimulation/node_stats/silver_stats.md b/collections/tfgridsimulation/node_stats/silver_stats.md new file mode 100644 index 0000000..7bd2a19 --- /dev/null +++ b/collections/tfgridsimulation/node_stats/silver_stats.md @@ -0,0 +1,44 @@ +# Simulation for Nodes of Type Silver + + +!!sheet.graph_line_row sheetname:'tfgridsim_run1' + rowname:'silver_new_per_month' + period_type:quarter + +Nr of nodes sold per month. + +!!sheet.graph_line_row sheetname:'tfgridsim_run1' + rowname:'silver_nr_active' + period_type:quarter + +Nr of nodes active at end of quarter. + +## Financials + +!!sheet.graph_line_row sheetname:'tfgridsim_run1' + rowname:'silver_utilization' + period_type:quarter + +Utilization + +!!sheet.graph_bar_row sheetname:'tfgridsim_run1' + rowname:'silver_rev_month' + period_type:quarter + +Revenue as can be made per node (after discount and at utilization) + +!!sheet.graph_line_row sheetname:'tfgridsim_run1' + rowname:'silver_rev_total' + period_type:quarter + +Revenue per month for all nodes of this type. + +## Overview + +!!sheet.sheet_wiki sheetname:'tfgridsim_run1' includefilter:'nodetype:silver' + +
+ +## Details Month + +!!sheet.sheet_wiki sheetname:'tfgridsim_run1' period_type:month includefilter:'nodetype:silver' \ No newline at end of file diff --git a/collections/tfgridsimulation/specs/specs_nodes.md b/collections/tfgridsimulation/specs/specs_nodes.md new file mode 100644 index 0000000..b1caadf --- /dev/null +++ b/collections/tfgridsimulation/specs/specs_nodes.md @@ -0,0 +1,123 @@ +# Specs for nodes + +## PLATINUM + +```js +!!tfgrid4_node.define + name:'platinum' + cpu_brand:'amd' + cpu_version:'9600' + deliverytime:'2024-8-20' + description:'very powerfull compute machine with lots of memory and CPU cores.' + hdd:'1x 10 TB' + image:'platinum.png' + inca_reward:1000 + mem:'64 GB' + cost:1999 + ssd:'2x 1000 TB' + url:'https://threefold.info/projectinca/projectinca/inca_node_platinum.html' + vendor:'mazraa' + grant_month_usd:'1:60,24:60,25:0' + grant_month_inca:'1:0,24:0' + grant_max_nrnodes:1000 //max nr of nodes which will get this grant + + +// Define the CloudBox +!!tfgrid4_node.cloudbox_define + node:'platinum' + amount:15 + description:'' + mem_gb:4 + passmark:6000 + price_range:'4,10' + price_simulation:5 + storage_gb:500 + vcores:2 + +// Define the StorageBox +!!tfgrid4_node.storagebox_define + node:'platinum' + amount:100 + description:'' + price_range:'0.5,3.0' + price_simulation:0.6 +``` + +## AI + +```js +!!tfgrid4_node.define + name:'ai' + cpu_brand:'amd' + cpu_version:'9600' + deliverytime:'2024-8-20' + description:'A powerfull AI node with 64 GB of mem and Nvidia 4900 GPU' + hdd:'1x 10 TB' + image:'silver.png' + inca_reward:2000 + mem:'64 GB' + cost:3999 + ssd:'2x 1000 TB' + url:'https://threefold.info/projectinca/projectinca/inca_node_ai.html' + vendor:'mazraa' + grant_month_usd:'1:200,24:200,25:0' + grant_month_inca:'1:0,24:0' + grant_max_nrnodes:1000 //max nr of nodes which will get this grant + + +!!tfgrid4_node.aibox_define + node:'ai' + amount:1 + gpu_brand:'Nvidia GeForce' + gpu_version:'RTX4090' + mem_gb:60 + mem_gb_gpu:24 + passmark:24000 + price_range:'200,800' + price_simulation:400 + ssd_nr:2 + storage_gb:1800 + vcores:24 + +!!tfgrid4_node.storagebox_define + node:'ai' + amount:100 + description:'' + price_range:'0.5,3.0' + price_simulation:0.6 +``` + +## SILVER + +```js +!!tfgrid4_node.define + name:'silver' + cpu_brand:'intel' + cpu_version:'N96 12e gen' + deliverytime:'2024-8-20' + description:'Allround model, easy to extend with Battery & Wireless Access Point' + hdd:'None' + image:'silver.png' + inca_reward:250 + mem:'16 GB' + passmark:6000 + cost:499 + ssd:'1x 1000 TB' + url:'https://threefold.info/projectinca/projectinca/inca_node_silver.html' + vendor:'mazraa' + grant_month_usd:'1:20,24:20,25:0' + grant_month_inca:'1:0,24:0' + grant_max_nrnodes:5000 //max nr of nodes which will get this grant + + +!!tfgrid4_node.cloudbox_define + node:'silver' + amount:4 + description:'' + mem_gb:3.6 + passmark:5000 + price_range:'4,10' + price_simulation:6 + storage_gb:300 + vcores:2 +``` \ No newline at end of file diff --git a/collections/tfgridsimulation/specs/specs_rewards.md b/collections/tfgridsimulation/specs/specs_rewards.md new file mode 100644 index 0000000..144f501 --- /dev/null +++ b/collections/tfgridsimulation/specs/specs_rewards.md @@ -0,0 +1,14 @@ +# INCA Rewards + +not used yet. + +```js +// !!tfgrid4_simulator.rewards_define +// inca_grant_new_user_usd:'1:20,12:0' +// inca_grant_new_user_inca:'1:20,12:0' +// inca_grant_month_usd:'1:20,12:0' +// inca_grant_month_inca:'1:20,12:0' + + + +``` \ No newline at end of file diff --git a/collections/tfgridsimulation/specs/specs_simulator.md b/collections/tfgridsimulation/specs/specs_simulator.md new file mode 100644 index 0000000..a28c1a5 --- /dev/null +++ b/collections/tfgridsimulation/specs/specs_simulator.md @@ -0,0 +1,34 @@ +## growth simulation + +```js +!!tfgrid4_simulator.node_growth_define + node_name:'silver' + new_month:'0:20,30:5000' + churn:2 //in percent 0..100 + utilization:'0:0,20:70' //in percent 0..100 + discount:'0:0,60:30' //in percent 0..100 + +!!tfgrid4_simulator.node_growth_define + node_name:'platinum' + new_month:'0:20,50:200' + churn:2 //in percent 0..100 + utilization:'0:0,20:70' //in percent 0..100 + discount:'0:0,60:30' //in percent 0..100 + +!!tfgrid4_simulator.node_growth_define + node_name:'ai' + new_month:'0:20,30:100' + churn:2 //in percent 0..100 + utilization:'0:0,20:70' //in percent 0..100 + discount:'0:0,60:30' //in percent 0..100 + + +!!tfgrid4_simulator.incaprice_define + incaprice_usd:'0:0.05,12:0.3,24:0.5,60:2' + + +!!tfgrid4_simulator.run name:run1 + + + +``` \ No newline at end of file diff --git a/heroscript/tfgridsimulation/SUMMARY.md b/heroscript/tfgridsimulation/SUMMARY.md new file mode 100644 index 0000000..b277554 --- /dev/null +++ b/heroscript/tfgridsimulation/SUMMARY.md @@ -0,0 +1,8 @@ +- [Introduction](simulation/intro.md) +- [Specifications](simulation/specs_simulator.md) + - [Nodes](simulation/specs_nodes.md) + - [Rewards](simulation/specs_rewards.md) +- [Node Stats](simulation/node_stats.md) + - [Silver Nodes](simulation/silver_stats.md) + - [Platinum Nodes](simulation/platinum_stats.md) + - [AI Nodes](simulation/platinum_stats.md) diff --git a/heroscript/tfgridsimulation/run.md b/heroscript/tfgridsimulation/run.md new file mode 100644 index 0000000..654349f --- /dev/null +++ b/heroscript/tfgridsimulation/run.md @@ -0,0 +1,14 @@ + + +```js + +!!book.generate name:'tfgrid4simulator' title:'TFGrid Simulator 4.0' + url:'https://git.ourworld.tf/tfgrid/incacockpit/src/branch/main/simulator/simulations/tfgrid4_1/book' + + +!!doctree.add + url:'https://git.ourworld.tf/tfgrid/incacockpit/src/branch/main/simulator/simulations/tfgrid4_1/collections' + + +``` + diff --git a/heroscript/tfgridsimulation/run.sh b/heroscript/tfgridsimulation/run.sh new file mode 100755 index 0000000..fa80d94 --- /dev/null +++ b/heroscript/tfgridsimulation/run.sh @@ -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/incacockpit/src/branch/main/simulator/simulations/tfgrid4_1/book -o + + +#result will be in /root/hero/var/mdbuild/tfgrid4simulator +#~/hero/www/info/tfgrid4simulator/ + +#https://threefold.info/tfgrid4simulator/ \ No newline at end of file diff --git a/heroscript/tfgridsimulation/sync_production.sh b/heroscript/tfgridsimulation/sync_production.sh new file mode 100755 index 0000000..d84332e --- /dev/null +++ b/heroscript/tfgridsimulation/sync_production.sh @@ -0,0 +1,3 @@ +#!/bin/bash +#hero mdbook -u https://git.ourworld.tf/tfgrid/info_tfgrid/src/branch/main/heroscript/tech +rsync -rv ~/hero/www/info/tfgrid4simulator/ root@info.ourworld.tf:/root/hero/www/info/tfgrid4simulator/