7931: Trash excess replicas when a server has more than one.
authorTom Clegg <tclegg@veritasgenetics.com>
Mon, 19 Mar 2018 17:19:41 +0000 (13:19 -0400)
committerTom Clegg <tclegg@veritasgenetics.com>
Wed, 21 Mar 2018 14:13:34 +0000 (10:13 -0400)
commit61f4a861fb993f68240d884c3e9cc1e750d0753b
tree69ebe066d09d710c9d0c0c080e6168f238b68f48
parent388c54e21fafcfbf01e0fe6775a6b62134605990
7931: Trash excess replicas when a server has more than one.

Previously a given server was classified only as "having" or "not
having" a replica, regardless of how many it reported. With this
change, once there are already enough distinct replicas on other
servers, excess replicas will be trashed -- even if they are on the
same server as a replica that is being retained.

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tclegg@veritasgenetics.com>
services/keep-balance/balance.go
services/keep-balance/balance_test.go