threefoldtech / tfchain

Threefold Chain.
Apache License 2.0
15 stars 11 forks source link

CU/SU calculation on chain need to be in sync with wiki #190

Closed LeeSmet closed 2 years ago

LeeSmet commented 2 years ago

Specifically the following link: https://library.threefold.me/info/threefold#/tfgrid/threefold__cloudunits

LeeSmet commented 2 years ago

After some discussion, CU will remain mostly the same as the used values, though the MIN will change into a MAX. This won't matter for workloads which use the optimal 1 core / 2 GB memory, but it will charge users for imbalanced workloads instead of letting it have them for free. For SU, the SSD size needs to be adjusted from 300 to 200 as described in the wiki

TL;DR: CU = MAX(cru / 2, mru / 4) SU = hru / 1200 + sru * 0.8 / 200 (=hru / 1200 + sru / 250)

LeeSmet commented 2 years ago

change in CU calculation:

cu1 = MAX(cru/2, mru/4)
cu2 = MAX(cru, mru/8)
cu3 = MAX(cru/4, mru/2)

CU = MIN(cu1, cu2, cu3)
LeeSmet commented 2 years ago

Yes, just needs to be deployed now