storj/satellite/nodeselection/common.go
Egon Elbre 08692aef90 satellite/nodeselection: node selection with proper bias
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
2020-05-18 18:09:15 +00:00

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")
)