archiver

command module
v0.0.0-...-8b055d9 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2016 License: MIT Imports: 10 Imported by: 0

README

arch(归档)

Build Status

设计思路

对游戏中通过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打开 replay

安装

参考Dockerfile

环境变量

NSQD_HOST: eg : http://172.17.42.1:4151
NSQLOOKUPD_HOST: eg: http://127.0.0.1:4161

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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