kazutanaka-ttcluster 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +4 -0
- data/README +50 -0
- data/TODO +3 -1
- data/ttcluster.gemspec +1 -1
- metadata +2 -2
data/ChangeLog
CHANGED
data/README
CHANGED
@@ -1,3 +1,53 @@
|
|
1
1
|
= Tokyo Tyrant Cluster
|
2
2
|
|
3
|
+
Tokyo Tyrant is a network interface to the Tokyo Cabinet DBM.
|
4
|
+
It provides replication by means of cmdline parameters.
|
5
|
+
You have to remember and type long command to start HA DBM servers.
|
6
|
+
|
7
|
+
This is a simple administration tool for Tokyo Tyrant clusters.
|
8
|
+
Just setup a pair of host:port and start.
|
9
|
+
You have a replicated DBM cluster running.
|
10
|
+
|
11
|
+
|
12
|
+
== How to install
|
13
|
+
|
14
|
+
Install the required packages of Tokyo Tyrant and Tokyo Cabinet.
|
15
|
+
|
16
|
+
Build a ttcluster gem package and install.
|
17
|
+
|
18
|
+
$ gem build ttcluster.gemspec
|
19
|
+
$ sudo gem install ttcluster-*.gem -l
|
20
|
+
|
21
|
+
|
22
|
+
== Tutorial
|
23
|
+
|
24
|
+
First, create a base directory.
|
25
|
+
|
26
|
+
$ mkdir ~/ttcluster # -d default value
|
27
|
+
|
28
|
+
Then, setup a pair of replicated Tokyo Tyrant servers.
|
29
|
+
|
30
|
+
$ ttcluster setup localhost:2008 localhost:2009 # server 2008, master 2009
|
31
|
+
$ ttcluster setup localhost:2009 localhost:2008 # server 2009, master 2008
|
32
|
+
|
33
|
+
Check if the configuration of pair servers is valid.
|
34
|
+
|
35
|
+
$ ttcluster config # the master of the master of a server is the original server
|
36
|
+
|
37
|
+
Start all servers and you have replicated DBM servers.
|
38
|
+
|
39
|
+
$ ttcluster start # default to 'all'
|
40
|
+
|
41
|
+
Control servers and play around.
|
42
|
+
|
43
|
+
$ ttcluster stop 2008 # down 2008
|
44
|
+
$ ttcluster status # only 2009 is alive
|
45
|
+
$ tcrmgr put -port 2009 localhost foo bar # add 'foo' key on 2009
|
46
|
+
$ ttcluster start 2008 # up 2008 and automatically replicated
|
47
|
+
$ tcrmgr get -port 2008 -pv localhost foo # see if 2008 has 'foo' key
|
48
|
+
|
49
|
+
Use help option for other commands.
|
50
|
+
|
51
|
+
$ ttcluster --help
|
52
|
+
|
3
53
|
|
data/TODO
CHANGED
data/ttcluster.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kazutanaka-ttcluster
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kazutanaka
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-
|
12
|
+
date: 2008-10-09 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|