• R/O
  • SSH
  • HTTPS

okuyama: 提交


Commit MetaInfo

修訂952 (tree)
時間2012-03-12 20:36:54
作者okuyamaoo

Log Message

(empty log message)

Change Summary

差異

--- trunk/document/Usage okuyama.txt (revision 951)
+++ trunk/document/Usage okuyama.txt (revision 952)
@@ -18,26 +18,29 @@
1818 6.Download okuyama
1919 URL (http://sourceforge.jp/projects/okuyama/releases/)
2020
21- 7.Please okuyama-0.8.2.zip and extract it to a suitable place
21+ 7.Please okuyama-0.9.3.zip and extract it to a suitable place
2222
23- 8.After thawing, okuyama-0.8.2 directory, please go to
23+ 8.After thawing, okuyama-0.9.3 directory, please go to
2424
2525 9.ant command argument "compile" Please run
2626 Example
27- C:\okuyama-0.8.2>ant compile
27+ C:\okuyama-0.9.3>ant compile
2828
2929
3030
3131 [How to Start okuyama]
32- 1.Please okuyama-0.8.2 directory
32+ 1.Please okuyama-0.9.3 directory
3333
34- 2.ant command argument "serverrun" Please run
34+ 2.ant command argument "serverrun" or "fullserverrun" Please run
3535 Example
36- C:\okuyama-0.8.2>ant serverrun
36+ C:\okuyama-0.9.3>ant serverrun
3737
3838 3.Starts below
39+ run "serverrun"
3940 MasterNode
4041 DataNode
42+
43+ run "fullserverrun"
4144 SlaveDataNode
4245 ThirdDataNode
4346
@@ -46,11 +49,11 @@
4649
4750 1.The following command can be registered
4851 Example
49- C:\okuyama-0.8.2>ant set -Dkey=ExampleKey -Dvalue=ExampleValue
52+ C:\okuyama-0.9.3>ant set -Dkey=ExampleKey -Dvalue=ExampleValue
5053
5154 The output is as follows
5255
53- C:\okuyama-0.8.2>ant set -Dkey=ExampleKey -Dvalue=ExampleValue
56+ C:\okuyama-0.9.3>ant set -Dkey=ExampleKey -Dvalue=ExampleValue
5457 Buildfile: build.xml
5558
5659 set:
@@ -63,11 +66,11 @@
6366
6467 2.You can get registered with the following command
6568 Example
66- C:\okuyama-0.8.2>ant get -Dkey=ExampleKey
69+ C:\okuyama-0.9.3>ant get -Dkey=ExampleKey
6770
6871 The output is as follows
6972
70- C:\okuyama-0.8.2>ant get -Dkey=ExampleKey
73+ C:\okuyama-0.9.3>ant get -Dkey=ExampleKey
7174 Buildfile: build.xml
7275
7376 get:
@@ -81,7 +84,7 @@
8184
8285 3.You can automatically register the value of 1000 with the following command
8386 Example
84- C:\okuyama-0.8.2>ant testset
87+ C:\okuyama-0.9.3>ant testset
8588 Buildfile: build.xml
8689
8790 testset:
@@ -93,7 +96,7 @@
9396
9497 4.Gets the value of 1,000 previously registered with the following command
9598 Example
96- C:\okuyama-0.8.2>ant testget
99+ C:\okuyama-0.9.3>ant testget
97100
98101
99102 5.The tag set
@@ -102,56 +105,24 @@
102105 Key=okuyama
103106 Value=javakvs
104107 Tag={"oss","kvs"}
105- C:\okuyama-0.8.2>java -cp ./;./classes;./lib/javamail-1.4.1.jar TestSock 3.1 127.0.0.1 8888 okuyama "oss kvs" javakvs
108+ C:\okuyama-0.9.3>java -cp ./;./classes;./lib/javamail-1.4.1.jar TestSock 3.1 127.0.0.1 8888 okuyama "oss kvs" javakvs
106109
107110 Key=httpd
108111 Value=AtypicalWebServer
109112 Tag={"oss","webserver"}
110- C:\okuyama-0.8.2>java -cp ./;./classes;./lib/javamail-1.4.1.jar TestSock 3.1 127.0.0.1 8888 httpd "oss webserver" AtypicalWebServer
113+ C:\okuyama-0.9.3>java -cp ./;./classes;./lib/javamail-1.4.1.jar TestSock 3.1 127.0.0.1 8888 httpd "oss webserver" AtypicalWebServer
111114
112115
113116 6.Get the key and value from the tag
114117 Example
115- C:\okuyama-0.8.2>java -cp ./;./classes;./lib/javamail-1.4.1.jar TestSock 4 127.0.0.1 8888 1 oss
118+ C:\okuyama-0.9.3>java -cp ./;./classes;./lib/javamail-1.4.1.jar TestSock 4 127.0.0.1 8888 1 oss
116119
117120
118- 7.The total of 100,000 for the value of the five threads with the following command
119- Example
120- C:\okuyama-0.8.2>java -cp ./;./classes;./lib/javamail-1.4.1.jar test.TestSock 4 127.0.0.1:8888 5
121- The output is as follows
122- ------- Start -------
123- 0
124- 0
125- 0
126- 0
127- 0
128- 549
129- 534
130- 549
131- 535
132- 539
133- *
134- *
135- *
136- -------- End --------
137121
138- ThreadNo.1 = 20000?
139- ThreadNo.2 = 20000?
140- ThreadNo.3 = 20000?
141- ThreadNo.4 = 20000?
142- ThreadNo.5 = 20000?
143122
144- Total = 100000?
145-
146- 8.I try to get the process done many times in one minute 10 concurrent threads
147- Example
148- C:\okuyama-0.8.2>java -cp ./;./classes;./lib/javamail-1.4.1.jar test.TestSock get 127.0.0.1:8888 10 100000
149-
150-
151-
152123 [Configuration file]
153124 (Slave Third)DataNode Configuration file
154- Location : okuyama-0.8.2\classes\DataNode.properties or SlaveDataNode.properties ThirdDataNode.properties
125+ Location : okuyama-0.9.3\classes\DataNode.properties or SlaveDataNode.properties ThirdDataNode.properties
155126
156127 (Attention)
157128 To start making a single configuration file with two data nodes
@@ -158,46 +129,56 @@
158129
159130 ------------------------------- DataNode.properties -----------------------------------------
160131 Line number
161- 19 KeyManagerJob1.Init=5553 <=Start Port Number
162- 26 KeyManagerJob2.Init=5554 <=Start Port Number
132+ 18 KeyManagerJob1.Init=5553 <=Start port number
133+ 25 KeyManagerJob2.Init=5554 <=Start port number
163134
164- 80 KeyManagerJob1.memoryMode=false <=Configuration data persistence(true=Non-persistent, false=Persistence)
165- 81 KeyManagerJob1.dataMemory=true <=location to store the value(true=Memory, false=File)
135+ 19 KeyManagerJob1.Option=./keymapfile/1.key,./keymapfile/1.work.key <=Data file
136+ 26 KeyManagerJob2.Option=./keymapfile/2.key,./keymapfile/2.work.key <=Data file
166137
167- 85 KeyManagerJob2.memoryMode=false <=Configuration data persistence(true=Non-persistent, false=Persistence)
168- 86 KeyManagerJob2.dataMemory=true <=location to store the value(true=Memory, false=File)
138+ 58 ServerControllerHelper.Init=15554 <= Controll server port number
169139
140+ 130 KeyManagerJob1.memoryMode=false <=Configuration data persistence(true=Non-persistent, false=Persistence)
141+ 131 KeyManagerJob1.dataMemory=true <=location to store the value(true=Memory, false=File)
142+ 132 KeyManagerJob1.keyMemory=true <=location to store the key(true=Memory, false=File)
143+
144+ 140 KeyManagerJob2.memoryMode=false <=Configuration data persistence(true=Non-persistent, false=Persistence)
145+ 141 KeyManagerJob2.dataMemory=true <=location to store the value(true=Memory, false=File)
146+ 142 KeyManagerJob2.keyMemory=true <=location to store the key(true=Memory, false=File)
147+
148+ 172 DataSaveMapType= <=Compression memory storage setting (Setting example =serialize)
149+ 173 SerializerClassName= <=Compression java class setting (Setting example =okuyama.imdst.util.serializemap.ObjectStreamSerializer)
150+
170151 -----------------------------------------------------------------------------------------------
171152
172153
173154 MasterNode Configuration file
174- Location : okuyama-0.8.2\classes\MasterNode.properties
155+ Location : okuyama-0.9.3\classes\MasterNode.properties
175156
176157 ------------------------------- MasterNode.properties -----------------------------------------
177158 Line number
178159 17 MasterManagerJob.Init=8888 <=Start Port Number
179160
180- 103 DistributionAlgorithm=mod <=Data distribution algorithm(mod, consistenthash)
161+ 131 DistributionAlgorithm=mod <=Data distribution algorithm(mod, consistenthash)
181162
182- 111 DataConsistencyMode=0 <=Level of consistenc(0, 1, 2)
163+ 139 DataConsistencyMode=0 <=Level of consistenc(0, 1, 2)
183164
184- 126 MyNodeInfo=127.0.0.1:8888 <=Represent itself in all the information MasterNode
165+ 169 MyNodeInfo=127.0.0.1:8888 <=Represent itself in all the information MasterNode
185166
186- 133 MainMasterNodeInfo=127.0.0.1:8888 <=MainMasterNode information
167+ 176 MainMasterNodeInfo=127.0.0.1:8888 <=MainMasterNode information
187168
188- 142 AllMasterNodeInfo=127.0.0.1:8888,127.0.0.1:8889 <=All information MasterNode
169+ 185 AllMasterNodeInfo=127.0.0.1:8888,127.0.0.1:8889 <=All information MasterNode
189170
190- 172 KeyMapNodesRule=2 <=If you start the mod DataNode number of algorithms
171+ 215 KeyMapNodesRule=2 <=If you start the mod DataNode number of algorithms(When a "consistenthash" algorithm is chosen, it is not necessary to set up)
191172
192- 175 KeyMapNodesInfo=127.0.0.1:5553,127.0.0.1:5554 <=DataNode information
173+ 218 KeyMapNodesInfo=127.0.0.1:5553,127.0.0.1:5554 <=DataNode information
193174
194- 185 SubKeyMapNodesInfo=127.0.0.1:6553,127.0.0.1:6554 <=SlaveDataNode information
175+ 228 SubKeyMapNodesInfo=127.0.0.1:6553,127.0.0.1:6554 <=SlaveDataNode information
195176
196- 188 ThirdKeyMapNodesInfo=127.0.0.1:7553,127.0.0.1:7554 <=SlaveDataNode information
177+ 232 ThirdKeyMapNodesInfo=127.0.0.1:7553,127.0.0.1:7554 <=SlaveDataNode information
197178
198- 220 LoadBalanceMode=true <=Load balancing settings(true=on, false=off)
179+ 264 LoadBalanceMode=true <=Load balancing settings(true=on, false=off)
199180
200- 221 BalanceRatio=7:3 <=Allocation ratio
181+ 265 BalanceRatio=7:3 <=Allocation ratio
201182 ---------------------------------------------------------------------------------------------------
202183
203184
Show on old repository browser