Skip to content

syhlion/gusher.cluster

Repository files navigation

Gusher.Cluster

Build Status Release Status Stars

gusher plus version ,support cluster

Changelog

CHANGELOG

Requirements

  • redis

Usage

Docker example use doc

docker pull syhlion/gusher.cluster
docker run --name docker-redis -d redis
docker run --env-file env.example --link docker-redis --name gusher-master -p 7999:8888 -d syhlion/gusher.cluster master //master mode
docker run --env-file env.example --link docker-redis --link gusher-master --name gusher-slave -p 8000:8888 -d syhlion/gusher.cluster slave //slave mode
//note env & link hostname

docker-compose use doc

Build from source:

Package Management use govendor

$ go get github.com/syhlion/gusher.cluster && cd $GOPATH/github.com/syhlion/gusher.cluster
$ make build/linux

Download:

release

And Set ENV like example

Than Use

master mode:

$ ./gusher.cluster master or ./gusher.cluster master --env-file env.example

slave mode:

$ ./gusher.cluster slave or ./gusher.cluster slave --env-file env.example

Third party lib

client js:

gusher-js

backend php:

gusher-php

Api

Api Doc

Internal Protocal

Protocal Doc

Thanks