https://github.com/imneov/ssdb-port
Siphon mock SSDB slave server, sync data between ssdb master and redis (or pika) server.
https://github.com/imneov/ssdb-port
pika redis ssdb sync
Last synced: 5 months ago
JSON representation
Siphon mock SSDB slave server, sync data between ssdb master and redis (or pika) server.
- Host: GitHub
- URL: https://github.com/imneov/ssdb-port
- Owner: imneov
- License: mit
- Created: 2017-10-03T14:27:28.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-05-22T06:59:57.000Z (about 6 years ago)
- Last Synced: 2023-07-10T19:40:27.528Z (almost 3 years ago)
- Topics: pika, redis, ssdb, sync
- Language: Go
- Homepage:
- Size: 18.6 KB
- Stars: 9
- Watchers: 2
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Siphon
===========
Siphon is a hot data sync tools.
Mock slave server, sync data between ssdb master and other server.
Siphon now supports [ssdb](https://github.com/ideawu/ssdb) to [redis](https://github.com/antirez/redis)/[pika](https://github.com/Qihoo360/pika).
* **SYNC** data from master to slave
```sh
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
```