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.
Files changed (5) hide show
  1. data/ChangeLog +4 -0
  2. data/README +50 -0
  3. data/TODO +3 -1
  4. data/ttcluster.gemspec +1 -1
  5. metadata +2 -2
data/ChangeLog CHANGED
@@ -1,4 +1,8 @@
1
+ 2008-10-13 (0.1.4)
2
+ * Add install and tutorial to README
3
+
1
4
  2008-09-10 (0.1.3)
5
+ * Add MIT-LICENSE
2
6
  * Switch group as well as user
3
7
  * Add monitrc.sample
4
8
 
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
@@ -1,2 +1,4 @@
1
- * README
2
1
  * exit code
2
+ * backup casket.tch with timestamp.rts
3
+ * show sync status
4
+ * test
data/ttcluster.gemspec CHANGED
@@ -7,7 +7,7 @@
7
7
  # Constants
8
8
  #
9
9
  GEM_NAME = "ttcluster"
10
- PKG_VERSION = "0.1.3"
10
+ PKG_VERSION = "0.1.4"
11
11
  SUMMARY = "Tokyo Tyrant cluster administration tool"
12
12
  DESCRIPTION = SUMMARY
13
13
  AUTHOR = "kazutanaka"
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.3
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-08-13 00:00:00 -07:00
12
+ date: 2008-10-09 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15