dnservice

package
v0.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DnStoreCapacity = 32
)

Variables

This section is empty.

Functions

func Check

func Check(
	idAlloc util.IDAllocator,
	cfg hakeeper.Config,
	cluster pb.ClusterInfo,
	dnState pb.DNState,
	user pb.TaskTableUser,
	currTick uint64,
) []*operator.Operator

Check checks dn state and generate operator for expired dn store. The less shard ID, the higher priority. NB: the returned order should be deterministic.

Types

type ShardMapper added in v0.6.0

type ShardMapper interface {
	// contains filtered or unexported methods
}

ShardMapper used to get log shard ID for dn shard

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL