Skip to content

Commit

Permalink
Update README and deploy-run.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
yaledb committed Mar 25, 2015
1 parent c3c80cd commit e682f3d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
14 changes: 7 additions & 7 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,15 @@ Installation
the root directory:
$ bin/deployment/cluster -c deploy-run.conf -p src/deployment/portfile -d bin/deployment/db m 0

Note that: Since all experiments we did before were ran on 8 cores machines, current codebase only can run on 8 cores machines, we will make it more general before public release.
And there are some import parameters you need to edit :
- src/deployment/main.cc, #define HOT ***: Set amount of Hot records for micorbenchmark, it is used to vary contention index (100 means contention index = 0.01);
- src/sequencer/sequencer.h: #define MAX_BATCH_SIZE *** : Set batch size per 10 ms epoch , set it a little bigger than the actually throughput(100 means every second the sequencer creates 10K transactions)
If you only run it on one machine, just run the command from the root directory:
$ bin/deployment/db 0 m 0

Note that you must be sure that your LD_LIBRARY_PATH includes the object
files noted in the dependencies above. And you need to edit deploy-run.conf to include the machines which Calvin run on.
Note that: Since all experiments we did before were ran on 8 cores machines, current codebase only can be running on 8 cores machines, we will make it more general in the future. If you want to run it on multiple machines, you should make sure each machine has the same user name and each machine is able to ssh the other machines without password, like "ssh 128.26.232.18". Also you need to make sure each machine has the exactly same code, and you should build the same code on each machine.

Currently available binaries' source code can be found in src/bin, include cluster and db.
And there are some import parameters you need to edit :
- src/deployment/main.cc, #define HOT ***: Set amount of Hot records for micorbenchmark, it is used to vary contention index (100 means contention index = 0.01);
- src/sequencer/sequencer.h: #define MAX_BATCH_SIZE *** : Set batch size per 10 ms epoch , set it a little bigger than the actually throughput(200 means every second the sequencer creates 20K transactions)

You should make sure that your LD_LIBRARY_PATH includes the object files noted in the dependencies above. And you need to edit deploy-run.conf to include the machines which Calvin run on(The port should be same with the port in the src/deployment/portfile).


16 changes: 8 additions & 8 deletions deploy-run.conf
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Node<id>=<replica>:<partition>:<cores>:<host>:<port>
node0=0:0:12:128.36.232.18:51262
node1=0:1:12:128.36.232.12:51262
node2=0:2:12:128.36.232.15:51262
node3=0:3:12:128.36.232.20:51262
node4=0:4:12:128.36.232.19:51262
node5=0:5:12:128.36.232.34:51262
node6=0:6:12:128.36.232.14:51262
node7=0:7:12:128.36.232.16:51262
node0=0:0:8:128.36.232.18:54564
node1=0:1:8:128.36.232.12:54564
node2=0:2:8:128.36.232.15:54564
node3=0:3:8:128.36.232.20:54564
node4=0:4:8:128.36.232.19:54564
node5=0:5:8:128.36.232.34:54564
node6=0:6:8:128.36.232.14:54564
node7=0:7:8:128.36.232.16:54564

0 comments on commit e682f3d

Please sign in to comment.