Yong Tang
aa7818e1d3
Update to avoid pseudo-random number ( #5225 )
...
* Update to avoid pseudo-random number
This PR update the usage of rand so that non-global seed is used.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com >
* Add concurrency-safe random source
See https://stackoverflow.com/questions/48958886/how-to-create-a-thread-safe-rand-source
Signed-off-by: Yong Tang <yong.tang.github@outlook.com >
2022-03-16 12:24:58 -04:00
Chris O'Haver
54fb2112ac
plugin/forward/grpc: Revert forward/grpc policy dedup ( #3919 )
...
* revert de-dup
Signed-off-by: Chris O'Haver <cohaver@infoblox.com >
* unit test
Signed-off-by: Chris O'Haver <cohaver@infoblox.com >
* use roundrobin policy in test
Signed-off-by: Chris O'Haver <cohaver@infoblox.com >
2020-05-29 18:30:26 +02:00
Zou Nengren
5e04c27238
Dedup policy implement between grpc and proxy plugin ( #3537 )
...
Signed-off-by: zouyee <zounengren@cmss.chinamobile.com >
2019-12-17 08:15:31 +00:00
John Belamaric
bf479f9ac2
gofmt some stuff ( #1769 )
2018-05-04 22:45:58 +02:00
Scott Donovan
19a1ef48f2
adding sequential policy to forward plugin ( #1704 )
...
* adding sequential policy to forward plugin
* making sequential an alias to first in proxy plugin
2018-04-20 07:07:58 +01:00
Miek Gieben
5b844b5017
plugin/forward: add it ( #1447 )
...
* plugin/forward: add it
This moves coredns/forward into CoreDNS. Fixes as a few bugs, adds a
policy option and more tests to the plugin.
Update the documentation, test IPv6 address and add persistent tests.
* Always use random policy when spraying
* include scrub fix here as well
* use correct var name
* Code review
* go vet
* Move logging to metrcs
* Small readme updates
* Fix readme
2018-02-05 22:00:47 +00:00