command
module
Version:
v0.0.0-...-8b055d9
Opens a new window with list of versions in this module.
Published: Aug 2, 2016
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
arch(归档)
设计思路
对游戏中通过nsq-redo包发送过来的变动数据,纪录游戏中所有的变动,每隔一段时间,会产生一个带有时间标记的新的RDO文件, 格式为: REDO-2006-01-02T15:04:05.RDO,暂定的归档文件轮替时间为24小时
使用
创建好镜像后:
$ docker create -v /data --name redologs archiver /bin/true
$ docker run --volumes-from redologs --name archiver -d archiver /go/bin/archiver
$ docker run --rm --name replay --volumes-from redologs -it archiver /go/bin/replay
REPLAY 工具
注意,被archiver打开的归档日志不能被replay打开
安装
参考Dockerfile
环境变量
NSQD_HOST: eg : http://172.17.42.1:4151
NSQLOOKUPD_HOST: eg: http://127.0.0.1:4161
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.