Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Persistence for Doozer

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin
Octocat-spinner-32 lib
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 Readme.md
Readme.md

Gorg

Persistence for Doozer.

Overview

Gorg provides persistence for Doozer, the in-memory distributed data store. Gorg can write snapshots of a Doozer cluster to a file, stream Doozer cluster state to an append-only file, and restore a Doozer cluster from such files.

Gorg may be useful for Doozer cluster backup and restore, for cluster transfer, and for facilitating full cluster restarts.

Usage

Capture a snapshot of a Doozer process, kill the process, restore from the snapshot into a new process, and query the new process to verify a successful restore:

$ doozerd
$ echo "save me" | doozer add /data
$ bin/gorg dump > doozer.dat
$ killall doozerd
$ doozerd
$ bin/gorg load < doozer.dat
$ doozer get /data

Stream state from a Doozer process into an append-only file:

$ doozerd
$ echo "first" | doozer add /one
$ bin/gorg sink > doozer.dat
$ tail -f doozer.dat
$ echo "second" | doozer add /two
$ echo "third" | doozer add /three

Installation

$ git clone git://github.com/mmcgrana/gorg.git
$ cd gorg
$ bundle install

Notes

  • Saves but does not not load data under the /ctl prefix, which is used internally by Doozer.
  • Saves but does not load revs.
  • Saves dels in sink and applies on load.
  • Gorg works against doozerd 0.5.
Something went wrong with that request. Please try again.