mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
adding sequential policy to forward plugin (#1704)
* adding sequential policy to forward plugin * making sequential an alias to first in proxy plugin
This commit is contained in:
committed by
Miek Gieben
parent
26d1432ae6
commit
19a1ef48f2
@@ -29,6 +29,9 @@ func init() {
|
||||
RegisterPolicy("least_conn", func() Policy { return &LeastConn{} })
|
||||
RegisterPolicy("round_robin", func() Policy { return &RoundRobin{} })
|
||||
RegisterPolicy("first", func() Policy { return &First{} })
|
||||
// 'sequential' is an alias to 'first' to maintain consistency with the forward plugin
|
||||
// should probably remove 'first' in a future release
|
||||
RegisterPolicy("sequential", func() Policy { return &First{} })
|
||||
}
|
||||
|
||||
// Random is a policy that selects up hosts from a pool at random.
|
||||
|
||||
Reference in New Issue
Block a user