Difference between revisions of "Consensus aware (deprecated)"
Jump to navigation
Jump to search
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {{lc}} [[consensus_aware]] | + | {{lc}} [[consensus_aware]] making it act as a [[load balancer]]. |
+ | |||
+ | // If Consensus Aware is Set and Routing [[RoutingStrategy]] is populated fail | ||
+ | if b.ConsensusAware && b.RoutingStrategy != "" { | ||
+ | log.Warn("consensus_aware is now deprecated, please use [[routing_strategy]] = consensus_aware") | ||
+ | log.Crit("Exiting consensus_aware and routing strategy are mutually exclusive, they cannot both be defined") | ||
+ | } | ||
+ | |||
+ | // If Consensus Aware is Set set RoutingStrategy to consensus_aware | ||
+ | if b.ConsensusAware { | ||
+ | b.RoutingStrategy = ConsensusAwareRoutingStrategy | ||
+ | log.Info("consensus_aware is now deprecated, please use routing_strategy = consenus_aware in the future") | ||
+ | } | ||
* https://github.com/ethereum-optimism/infra/tree/main/proxyd#consensus-awareness | * https://github.com/ethereum-optimism/infra/tree/main/proxyd#consensus-awareness | ||
− | {{proxyd}} | + | == Related == |
+ | * [[INFO Empty routing strategy provided for backend group, using fallback strategy]] | ||
+ | |||
+ | == See also == | ||
+ | * {{proxyd}} | ||
+ | |||
+ | [[Category:Optimism]] |
Latest revision as of 16:50, 14 October 2024
consensus_aware making it act as a load balancer.
// If Consensus Aware is Set and Routing RoutingStrategy is populated fail if b.ConsensusAware && b.RoutingStrategy != "" { log.Warn("consensus_aware is now deprecated, please use routing_strategy = consensus_aware") log.Crit("Exiting consensus_aware and routing strategy are mutually exclusive, they cannot both be defined") } // If Consensus Aware is Set set RoutingStrategy to consensus_aware if b.ConsensusAware { b.RoutingStrategy = ConsensusAwareRoutingStrategy log.Info("consensus_aware is now deprecated, please use routing_strategy = consenus_aware in the future") }
Related[edit]
See also[edit]
Advertising: