Skip to content

Modes 5-8 output default strategy name #156

@injust

Description

@injust

The new strategy names need to be added to the switch statement:

strategyName := "Round-Robin"
switch c.cfg.ResolverBalancingStrategy {
case 0:
strategyName = "Round-Robin Default"
case 1:
strategyName = "Random"
case 2:
strategyName = "Round-Robin"
case 3:
strategyName = "Least Loss"
case 4:
strategyName = "Lowest Latency"
}
c.log.Infof("⚖ <cyan>Resolver Balancing, Strategy:</cyan> <yellow>%s (%d)</yellow>", strategyName, c.cfg.ResolverBalancingStrategy)

# Resolver balancing strategy.
# Allowed values:
# 1 = Random
# 2 = Round Robin
# 3 = Least Loss
# 4 = Lowest Latency
# 5 = Hybrid Score (loss-first + latency-aware)
# 6 = Loss Then Latency (loss shortlist, then latency, then rotate among near-top)
# 7 = Least Loss Top Random (random choice inside the best 10% loss tier)
# 8 = Least Loss Top Round Robin (round-robin inside the best 10% loss tier)
# Modes 3, 4, 5, 6, 7, and 8 use runtime feedback from sends/successes.
RESOLVER_BALANCING_STRATEGY = 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions