-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathREADME
More file actions
55 lines (42 loc) · 1.91 KB
/
Copy pathREADME
File metadata and controls
55 lines (42 loc) · 1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
*************************************
STATUS: Maintaining
Repository: repnet module on Node.js, with codes for experimental evaluation
Dependencies: Node.js version 0.11.13-release (Built from Source)
*************************************
Node.js Git Repository (the right version to support this module)
https://github.com/joyent/node/tree/v0.11.13-release
*************************************
USAGE
*************************************
"net=require('./repnet');" in the place of "net=require('net');" in your code
Most Net module APIs are supported for now.
NOTE: if file "repnet.net" is in the same directory of "server.js" and "client.js"
*************************************
Example Code Usage
*************************************
Run without changing directory
The files whose filenames start with numbers are for cluster evalution.
To do this, you will need two more files named IPLIST. Each one is for a rack (now 2 racks A and B are demanded).
Also, file 1_connectserver.sh command requires clusterssh, a useful tool to enable simultanous ssh commands in a cluster.
Download Link: https://github.com/duncs/clusterssh
//Sample IPLIST FILE: serverlistA.list
//First Row: the number of servers in rackA
//Rest of the file : NAT port numbers, (one per row), because our cluster is behind a NAT.
//To Change this to IP addresses, you should
5
30101
30102
30103
30104
30105
30106
//End of file of serverlistA.list
*************************************
IMPORTANT NOTES
*************************************
Though evaluation among cluster servers has a bunch of prerequisites, our sample code is still available to run on localhost.
Please read the usage headers of <client.js, repclient.js, repsynclient.js>, just with "node server.js" running on localhost!
UPDATE LOGS:
18, June, 2014 Sample code submitted! Expect more comments in the repnet.js module!!!!!
22, June, 2014 More comments in repnet.js
26, June, 2014 More comments