Skip to content

Commit 6775fc4

Browse files
committed
Scripts
1 parent 1e16cf5 commit 6775fc4

File tree

4 files changed

+19
-0
lines changed

4 files changed

+19
-0
lines changed

.generate_ring.sh.swp

12 KB
Binary file not shown.

apps/mfmn/src/mfmn_cache.erl

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
% These are all wrappers for calls to the server
1010

1111
start() ->
12+
io:format('Starting cache process'),
1213
gen_server:start_link({local, ?MODULE}, ?MODULE, [], []).
1314

1415
put(Key, Value) ->

generate_ring.sh

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/bash
2+
3+
if [ "$#" = 1 ]
4+
then
5+
SERVER=$1
6+
else
7+
8+
fi
9+
10+
rm -r ./dev/*
11+
make devrel
12+
for d in dev/dev*; do $d/bin/mfmn start; done
13+
for d in dev/dev{2,3}; do $d/bin/mfmn-admin join $SERVER; done
14+
./dev/dev1/bin/mfmn-admin member_status
15+
./dev/dev2/bin/mfmn attach

stop_ring.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
for d in dev/dev*; do $d/bin/mfmn stop; done

0 commit comments

Comments
 (0)