change ReputationAuditOmega (et al.) to AuditReputationWeight (#2232)

This commit is contained in:
Natalie Villasana 2019-06-18 14:17:25 -04:00 committed by GitHub
parent 119a8fd3cc
commit b30c35d306
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 72 additions and 72 deletions

View File

@ -458,18 +458,18 @@ func (planet *Planet) newSatellites(count int) ([]*satellite.Peer, error) {
OnlineWindow: time.Hour,
DistinctIP: false,
ReputationAuditRepairWeight: 1,
ReputationAuditUplinkWeight: 1,
ReputationAuditAlpha0: 1,
ReputationAuditBeta0: 0,
ReputationAuditLambda: 1,
ReputationAuditOmega: 1,
ReputationUptimeRepairWeight: 1,
ReputationUptimeUplinkWeight: 1,
ReputationUptimeAlpha0: 1,
ReputationUptimeBeta0: 0,
ReputationUptimeLambda: 1,
ReputationUptimeOmega: 1,
AuditReputationRepairWeight: 1,
AuditReputationUplinkWeight: 1,
AuditReputationAlpha0: 1,
AuditReputationBeta0: 0,
AuditReputationLambda: 1,
AuditReputationWeight: 1,
UptimeReputationRepairWeight: 1,
UptimeReputationUplinkWeight: 1,
UptimeReputationAlpha0: 1,
UptimeReputationBeta0: 0,
UptimeReputationLambda: 1,
UptimeReputationWeight: 1,
},
},
Discovery: discovery.Config{

View File

@ -45,18 +45,18 @@ func testNodeSelectionConfig(auditCount int64, newNodePercentage float64, distin
OnlineWindow: time.Hour,
DistinctIP: distinctIP,
ReputationAuditRepairWeight: 1,
ReputationAuditUplinkWeight: 1,
ReputationAuditAlpha0: 1,
ReputationAuditBeta0: 0,
ReputationAuditLambda: 1,
ReputationAuditOmega: 1,
ReputationUptimeRepairWeight: 1,
ReputationUptimeUplinkWeight: 1,
ReputationUptimeAlpha0: 1,
ReputationUptimeBeta0: 0,
ReputationUptimeLambda: 1,
ReputationUptimeOmega: 1,
AuditReputationRepairWeight: 1,
AuditReputationUplinkWeight: 1,
AuditReputationAlpha0: 1,
AuditReputationBeta0: 0,
AuditReputationLambda: 1,
AuditReputationWeight: 1,
UptimeReputationRepairWeight: 1,
UptimeReputationUplinkWeight: 1,
UptimeReputationAlpha0: 1,
UptimeReputationBeta0: 0,
UptimeReputationLambda: 1,
UptimeReputationWeight: 1,
}
}

View File

@ -34,16 +34,16 @@ type NodeSelectionConfig struct {
OnlineWindow time.Duration `help:"the amount of time without seeing a node before its considered offline" default:"1h"`
DistinctIP bool `help:"require distinct IPs when choosing nodes for upload" releaseDefault:"true" devDefault:"false"`
ReputationAuditRepairWeight float64 `help:"weight to apply to audit reputation for total repair reputation calculation" default:"1.0"`
ReputationAuditUplinkWeight float64 `help:"weight to apply to audit reputation for total uplink reputation calculation" default:"1.0"`
ReputationAuditAlpha0 float64 `help:"the initial shape 'alpha' used to calculate audit SNs reputation" default:"1.0"`
ReputationAuditBeta0 float64 `help:"the initial shape 'beta' value used to calculate audit SNs reputation" default:"0.0"`
ReputationAuditLambda float64 `help:"the forgetting factor used to calculate the audit SNs reputation" default:"1.0"`
ReputationAuditOmega float64 `help:"the normalization weight used to calculate the audit SNs reputation" default:"1.0"`
ReputationUptimeRepairWeight float64 `help:"weight to apply to uptime reputation for total repair reputation calculation" default:"1.0"`
ReputationUptimeUplinkWeight float64 `help:"weight to apply to uptime reputation for total uplink reputation calculation" default:"1.0"`
ReputationUptimeAlpha0 float64 `help:"the initial shape 'alpha' used to calculate uptime SNs reputation" default:"1.0"`
ReputationUptimeBeta0 float64 `help:"the initial shape 'beta' value used to calculate uptime SNs reputation" default:"0.0"`
ReputationUptimeLambda float64 `help:"the forgetting factor used to calculate the uptime SNs reputation" default:"1.0"`
ReputationUptimeOmega float64 `help:"the normalization weight used to calculate the uptime SNs reputation" default:"1.0"`
AuditReputationRepairWeight float64 `help:"weight to apply to audit reputation for total repair reputation calculation" default:"1.0"`
AuditReputationUplinkWeight float64 `help:"weight to apply to audit reputation for total uplink reputation calculation" default:"1.0"`
AuditReputationAlpha0 float64 `help:"the initial shape 'alpha' used to calculate audit SNs reputation" default:"1.0"`
AuditReputationBeta0 float64 `help:"the initial shape 'beta' value used to calculate audit SNs reputation" default:"0.0"`
AuditReputationLambda float64 `help:"the forgetting factor used to calculate the audit SNs reputation" default:"1.0"`
AuditReputationWeight float64 `help:"the normalization weight used to calculate the audit SNs reputation" default:"1.0"`
UptimeReputationRepairWeight float64 `help:"weight to apply to uptime reputation for total repair reputation calculation" default:"1.0"`
UptimeReputationUplinkWeight float64 `help:"weight to apply to uptime reputation for total uplink reputation calculation" default:"1.0"`
UptimeReputationAlpha0 float64 `help:"the initial shape 'alpha' used to calculate uptime SNs reputation" default:"1.0"`
UptimeReputationBeta0 float64 `help:"the initial shape 'beta' value used to calculate uptime SNs reputation" default:"0.0"`
UptimeReputationLambda float64 `help:"the forgetting factor used to calculate the uptime SNs reputation" default:"1.0"`
UptimeReputationWeight float64 `help:"the normalization weight used to calculate the uptime SNs reputation" default:"1.0"`
}

View File

@ -196,6 +196,24 @@ kademlia.operator.wallet: ""
# the number of times a node has been audited to not be considered a New Node
# overlay.node.audit-count: 500
# the initial shape 'alpha' used to calculate audit SNs reputation
# overlay.node.audit-reputation-alpha0: 1
# the initial shape 'beta' value used to calculate audit SNs reputation
# overlay.node.audit-reputation-beta0: 0
# the forgetting factor used to calculate the audit SNs reputation
# overlay.node.audit-reputation-lambda: 1
# weight to apply to audit reputation for total repair reputation calculation
# overlay.node.audit-reputation-repair-weight: 1
# weight to apply to audit reputation for total uplink reputation calculation
# overlay.node.audit-reputation-uplink-weight: 1
# the normalization weight used to calculate the audit SNs reputation
# overlay.node.audit-reputation-weight: 1
# a node's ratio of successful audits
# overlay.node.audit-success-ratio: 0.4
@ -211,48 +229,30 @@ kademlia.operator.wallet: ""
# the amount of time without seeing a node before its considered offline
# overlay.node.online-window: 1h0m0s
# the initial shape 'alpha' used to calculate audit SNs reputation
# overlay.node.reputation-audit-alpha0: 1
# the initial shape 'beta' value used to calculate audit SNs reputation
# overlay.node.reputation-audit-beta0: 0
# the forgetting factor used to calculate the audit SNs reputation
# overlay.node.reputation-audit-lambda: 1
# the normalization weight used to calculate the audit SNs reputation
# overlay.node.reputation-audit-omega: 1
# weight to apply to audit reputation for total repair reputation calculation
# overlay.node.reputation-audit-repair-weight: 1
# weight to apply to audit reputation for total uplink reputation calculation
# overlay.node.reputation-audit-uplink-weight: 1
# the initial shape 'alpha' used to calculate uptime SNs reputation
# overlay.node.reputation-uptime-alpha0: 1
# the initial shape 'beta' value used to calculate uptime SNs reputation
# overlay.node.reputation-uptime-beta0: 0
# the forgetting factor used to calculate the uptime SNs reputation
# overlay.node.reputation-uptime-lambda: 1
# the normalization weight used to calculate the uptime SNs reputation
# overlay.node.reputation-uptime-omega: 1
# weight to apply to uptime reputation for total repair reputation calculation
# overlay.node.reputation-uptime-repair-weight: 1
# weight to apply to uptime reputation for total uplink reputation calculation
# overlay.node.reputation-uptime-uplink-weight: 1
# the number of times a node's uptime has been checked to not be considered a New Node
# overlay.node.uptime-count: 500
# a node's ratio of being up/online vs. down/offline
# overlay.node.uptime-ratio: 0.9
# the initial shape 'alpha' used to calculate uptime SNs reputation
# overlay.node.uptime-reputation-alpha0: 1
# the initial shape 'beta' value used to calculate uptime SNs reputation
# overlay.node.uptime-reputation-beta0: 0
# the forgetting factor used to calculate the uptime SNs reputation
# overlay.node.uptime-reputation-lambda: 1
# weight to apply to uptime reputation for total repair reputation calculation
# overlay.node.uptime-reputation-repair-weight: 1
# weight to apply to uptime reputation for total uplink reputation calculation
# overlay.node.uptime-reputation-uplink-weight: 1
# the normalization weight used to calculate the uptime SNs reputation
# overlay.node.uptime-reputation-weight: 1
# how frequently repairer should try and repair more data
# repairer.interval: 1h0m0s