siphon

module
v0.0.0-...-dabfc80 Latest Latest
Warning

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

Go to latest
Published: May 22, 2020 License: MIT

README

Siphon

===========

Siphon is a hot data sync tools.

Mock slave server, sync data between ssdb master and other server.

Siphon now supports ssdb to redis/pika.

  • SYNC data from master to slave
siphon sync [--pprof=0.0.0.0:6060] [--ncpu=N]  --f=MASTER    --t=TARGET  [-F masterpassword] [-T targetpassword]

Usage: siphon sync [--ncpu=N] [--parallel=M] --from=MASTER --target=TARGET [--frompassword=MASTERPASSWORD] [--targetpassword=SLAVEPASSWORD]

Options: --pprof Set pprof addr and port,like 0.0.0.0:6060 .

Options

  • -n N, --ncpu=N

set runtime.GOMAXPROCS to N

  • -p P, --parallel=P

set redis/pika maximum number of connections to P, default is runtime.GOMAXPROCS

  • --pprof=ip:port

binding pprof on ip:port

Builder

go build github.com/imneov/siphon/siphon

Example

siphon sync  -n 4 -p 4 -f 127.0.0.1:8888 -t 127.0.0.1:9221 -T Stip1234 --pprof=0.0.0.0:6060

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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