cli

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddNewShardPrimary

func AddNewShardPrimary(conf config.RedisOpts, destNodeAddr string) error

AddNewShardPrimary introduces this Redis node (the node that this instance of `attache-control` is acting as a sidecar to) to an existing Redis Cluster as a new shard primary then rebalances the existing cluster shard slots.

func AddNewShardReplica

func AddNewShardReplica(conf config.RedisOpts, destNodeAddr string) error

AddNewShardReplica introduces this Redis node (the node that this instance of `attache-control` is acting as a sidecar to) to an existing Redis Cluster as a replica to the shard primary with the least number of replicas.

func CreateCluster

func CreateCluster(conf config.RedisOpts, nodes []string, replicasPerShard int) error

CreateCluster uses the redis-cli to create a new Redis cluster.

Types

This section is empty.

Jump to

Keyboard shortcuts

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