[tahoe-dev] Newbie problems

Randall Mason clashthebunny at gmail.com
Fri Feb 8 19:50:57 UTC 2013


To setup a test cluster, you do not need VMs.  You can run multiple nodes
on the same computer.  Here is the process on any computer with bash and
Tahoe-LAFS already installed:

cd $directoryWithSpace
tahoe create-introducer test-introducer
tahoe start test-introducer
export introducerFURL=$(cat test-introducer/introducer.furl)
for testNode in $(seq 0 9);
do
  tahoe create-node testNode${testNode}
  sed -i -e 's#^introducer.furl.*#introducer.furl = '$introducerFURL'#g' -e
's#web.port = tcp:3456:interface=127.0.0.1#web.port =
tcp:345'${testNode}':interface=127.0.0.1#g'   testNode${testNode}/tahoe.cfg
  tahoe start testNode${testNode}
done;
tahoe -d testNode0/ webopen

Running the 11 nodes takes a bit of memory, but only ~65 MB a piece.  It's
quick and responsive on my 4 year old laptop with 3GB of RAM.  It uploaded
a 20MB file in a second and you can even see the files that it creates:
find . -type f| grep
shares

./testNode9/storage/shares/k7/k7x2n3enhzrqbg2nwjccz6g7ae/1
./testNode8/storage/shares/k7/k7x2n3enhzrqbg2nwjccz6g7ae/2
./testNode6/storage/shares/k7/k7x2n3enhzrqbg2nwjccz6g7ae/9
./testNode7/storage/shares/k7/k7x2n3enhzrqbg2nwjccz6g7ae/0
./testNode1/storage/shares/k7/k7x2n3enhzrqbg2nwjccz6g7ae/7
./testNode5/storage/shares/k7/k7x2n3enhzrqbg2nwjccz6g7ae/3
./testNode4/storage/shares/k7/k7x2n3enhzrqbg2nwjccz6g7ae/4
./testNode3/storage/shares/k7/k7x2n3enhzrqbg2nwjccz6g7ae/6
./testNode2/storage/shares/k7/k7x2n3enhzrqbg2nwjccz6g7ae/5
./testNode0/storage/shares/k7/k7x2n3enhzrqbg2nwjccz6g7ae/8

xxd ./testNode7/storage/shares/k7/k7x2n3enhzrqbg2nwjccz6g7ae/0 | head
0000000: 0000 0001 006d 7428 0000 0001 0000 0001  .....mt(........
0000010: 0000 aaab 006c afce 0000 0024 006c aff2  .....l.....$.l..
0000020: 006c efd2 006d 2fb2 006d 6f92 006d 703c  .l...m/..mo..mp<
0000030: 6898 cc73 63a2 4466 f2e8 b797 b53e aafd  h..sc.Df.....>..
0000040: 8420 c211 37ec 1e5c d4ea 20c9 e2f6 63a2  . ..7..\.. ...c.
0000050: cdaf e031 7e1b ff59 1590 e438 320a a2df  ...1~..Y...82...
0000060: 0524 1bdb c3e3 11ec eccc 7720 8c58 59c4  .$........w .XY.
0000070: 783e 7464 e32f 0a85 0c8d 975d 8b8b fa4e  x>td./.....]...N
0000080: 9271 6cc7 656e 4570 ad8a fa24 b41b 1532  .ql.enEp...$...2
0000090: 7526 3068 3dab 8974 4928 b1a4 8ad6 a1ee  u&0h=..tI(......
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tahoe-lafs.org/pipermail/tahoe-dev/attachments/20130208/ce9c60a7/attachment.html>


More information about the tahoe-dev mailing list