Skip to content

the farm weight calculation #968

@A-Harby

Description

@A-Harby

Describe the bug

Is the farm weight calculated correctly?

For example, I'll calculate the weight for farm 1 in QAnet:

Farm 1 in QAnet has only 2 nodes, and both are up and have the same resource as shown below.
image

To calculate the CU and SU for the node, I will use the equation mentioned here.

image
Node resources is

  • HRU: 8383.559944153
  • SRU: 476.939781189
  • CRU: 24
  • MRU: 188.875312805

CU = min( max(MRU/4, CRU/2), max(MRU/8, CRU), max(MRU/2, CRU/4) )
CU = min(max(188.875312805/4, 24/2), max(188.875312805/8, 24), max(188.875312805/2, 24/4))
CU = min(max(47.21882820125, 12), max(23.609414100625, 24), max(94.4376564025, 6))
CU = min (47.21882820125, 24, 94.4376564025)
CU = 24

SU = HRU/1200 + SRU/200
SU = 8383.559944153/1200 + 476.939781189/200
SU = 6.986299953461 + 2.384698905945
SU = 9.370998859406

The equation for the weight of a farm is: 2 * (sum of CU of all nodes) + (sum of SU of all nodes).
since both nodes have exactly the same resources,
Weight = 2 * (sum of CU of all nodes) + (sum of SU of all nodes)
Weight = 2 * (24+24) + (9.370998859406+9.370998859406)
Weight = 2 * 48 + 18.741997719
Weight = 114.741997719

So the weight for Farm 1 should be 114, but in the chain it's shown as 88.
image
So is the wrong calculation from me, the equation am I using, or the chain?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions