|
|
|
@ -11,17 +11,17 @@ The token payment and reward mechanism of DeTEE is based on the core concepts of
|
|
|
|
|
- the guest can not access the host
|
|
|
|
|
- the host can not access the guest
|
|
|
|
|
|
|
|
|
|
One of the first conclusions after analyzing the requirements above is that designing a mechanism was that implementing payment for resource utilization is exceptionally hard. As a consequence, DeTEE currently supports only payment for resource reservation, and different models will be considered as the project grows. This means that the user will pay for the resources he reserves, not for the resources he uses. For example, if a user reserves a VM with 4 vCPUs and 5GB of memory, however the load on the VM is minimal, the user will still pay for vCPUs and 5 GBs of memory. To compensate for this, automation and orchestration tools will be offered to users.
|
|
|
|
|
One of the first conclusions after analyzing the requirements above is that designing a mechanism was that implementing payment for resource utilization is exceptionally hard. As a consequence, DeTEE currently supports only payment for resource reservation, and different models will be considered as the project grows. This means that the user will pay for the resources he reserves, not for the resources he uses. For example, if a user reserves a VM with 4 vCPUs and 5GB of memory, however the load on the VM is minimal, the user will still pay for 4 vCPUs and 5 GBs of memory. To compensate for this, automation and orchestration tools will be offered to users.
|
|
|
|
|
|
|
|
|
|
Though nodes get paid for resource reservation, during the testnet nodes will also receive a base reward of 100 test tokens per month. This means that all nodes will receive by default 100 test tokens per month in the testnet, no matter if they sell or not.
|
|
|
|
|
Though nodes get paid for resource reservation, during the testnet nodes will also receive additional bonus tokens for participating. This means that all nodes will receive by a baseline of tokens per month in the testnet, no matter if they sell or not.
|
|
|
|
|
|
|
|
|
|
## Resource calculation
|
|
|
|
|
|
|
|
|
|
Before calculating the price per month for a VM or a container, we must define the formula to calculate the multiplier for each hardware resource that is part of the contract. To simplify the formula, we will define “units”, each class of hardware warning units based on their own multiplier.
|
|
|
|
|
|
|
|
|
|
Based on our experience when using cloud services, we decided that the price of a resource will be calculated based on the number of minutes the resource is being used. As a consequence, using a resource for 10 seconds will qualify as using that resource for 1 minute, and using the resource for 70 seconds will qualify as using the resource for 2 minutes.
|
|
|
|
|
Based on our experience when using cloud services, we decided that the price of a resource will be calculated based on the number of minutes the resource is being used.
|
|
|
|
|
|
|
|
|
|
A server is also free to choose the price per unit per minute for his service. This price is defined in nanotokens. The current recommended value is 20k nanotokens per unit per minute. With the current calculation, a VM with 1 vCPU, 1 GB of memory, 20 GB of storage and one public IP will cost 24.4 tokens per month.
|
|
|
|
|
A server is also free to choose the price per unit per minute for his service. This price is defined in nanotokens (one nanotoken is 0.000000001 tokens). The current recommended value is 20k nanotokens per unit per minute. With the current calculation, a VM with 1 vCPU, 1 GB of memory, 20 GB of storage and one public IP will cost 24.4 tokens per month.
|
|
|
|
|
|
|
|
|
|
### Units
|
|
|
|
|
|
|
|
|
@ -33,7 +33,7 @@ For now, the multipliers offered for hardware are:
|
|
|
|
|
- 10 GB of Storage - offers 1 unit
|
|
|
|
|
- 1 public IPv4 IP - offers 10 units
|
|
|
|
|
|
|
|
|
|
VMs also have an overhead for the memory due to SNP requirements.
|
|
|
|
|
VMs also have an overhead of 256MB for the memory due to SNP requirements.
|
|
|
|
|
|
|
|
|
|
As such, the calculation of the total units of a VM is:
|
|
|
|
|
|
|
|
|
|