sharding

package
v2.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2022 License: Apache-2.0 Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClusterFilter

func GetClusterFilter(replicas int, shard int) func(c *v1alpha1.Cluster) bool

func GetShardByID

func GetShardByID(id string, replicas int) int

GetShardByID calculates cluster shard as `clusterSecret.UID % replicas count`

func InferShard

func InferShard() (int, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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