File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -26,8 +26,7 @@ func ensureUniformNodeWeightsPerRole(allNodes flow.IdentityList) {
2626 }
2727}
2828
29- // Checks constraints about the number of partner and internal nodes.
30- // - Internal nodes must comprise >1/3 of each collector cluster: checked in ConstructClusterAssignment.
29+ // Checks constraints about the weights of partner and internal nodes.
3130// - for all roles R:
3231// all node with role R must have the same weight
3332func checkConstraints (partnerNodes , internalNodes []model.NodeInfo ) {
@@ -38,9 +37,9 @@ func checkConstraints(partnerNodes, internalNodes []model.NodeInfo) {
3837 ensureUniformNodeWeightsPerRole (all )
3938}
4039
41- // Check about the number of internal/partner nodes in each cluster. The identites
40+ // Check the ratio of internal/partner nodes in each cluster. The identities
4241// in each cluster do not matter for this check.
43- // Each cluster must have >1/3 internal nodes .
42+ // Internal nodes must comprise >1/3 of each collector cluster .
4443func checkClusterConstraint (clusters flow.ClusterList , partnersInfo []model.NodeInfo , internalsInfo []model.NodeInfo ) bool {
4544 partners := model .ToIdentityList (partnersInfo )
4645 internals := model .ToIdentityList (internalsInfo )
You can’t perform that action at this time.
0 commit comments