Coder Social home page Coder Social logo

archiver's Introduction

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

archiver's People

Contributors

johnnyluo586 avatar xtaci avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.