08692aef90
Currently node selection cache is biased towards the same subnet. This implements static node selection for distinct such that it selects with equal probability subnets rather than id-s. This is mostly a copy paste + modifications from previous node selection state. Change-Id: Ia5c0aaf68e7feca78fbbd7352ad369fcb77c3a05
17 lines
353 B
Go
17 lines
353 B
Go
// Copyright (C) 2020 Storj Labs, Incache.
|
|
// See LICENSE for copying information.
|
|
|
|
// Package nodeselection implements node selection logic.
|
|
package nodeselection
|
|
|
|
import (
|
|
"github.com/spacemonkeygo/monkit/v3"
|
|
"github.com/zeebo/errs"
|
|
)
|
|
|
|
var (
|
|
mon = monkit.Package()
|
|
// Error represents an nodeselection error
|
|
Error = errs.Class("nodeselection")
|
|
)
|