deploy

package
v0.0.0-...-d7cb029 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StandaloneScript = "deploy_standalone.sh"
	ClusterScript    = "deploy_cluster.sh"

	RedisShake             = "redis-shake.linux"
	RedisShakeConf         = "redis-shake.conf"
	RedisFullCheck         = "redis-full-check"
	RedisFullCheckDiffFile = "redis-full-check.diff"
	RedisFullCheckLog      = "redis-full-check.log"

	CmdStart = "start"
	CmdStop  = "stop"
)

Variables

This section is empty.

Functions

func Deploy

func Deploy(tp string, port int, cmd string, node int) error

* tp: standalone, cluster * port: redis-server port * cmd: start/stop * node: node number, only used in cluster

func RunFullCheck

func RunFullCheck(runDir string, conf map[string]interface{}) (bool, error)

func StartShake

func StartShake(shakeDir, runDir string, conf map[string]interface{}, mode string) error

start redis-shake with given configuration, mode means sync/rump/dump/restore/decode

func StopShake

func StopShake(conf map[string]interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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