-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added analysis data, automated the whole process of running benchmark…
… with bash script
- Loading branch information
1 parent
a81c773
commit 4accc28
Showing
7 changed files
with
84 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.DS_STORE | ||
temp/* |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
|
||
# Arguments: server number - $0 | ||
|
||
# Clean up coordinator and daemons' data | ||
tempDir="./../temp" | ||
rm -rf $tempDir/HyperDex_Da*/* | ||
|
||
# Run coordinator | ||
hyperdex coordinator -l 127.0.0.1 -p 1982 -D $tempDir/Hyperdex_Data & | ||
coordinatorPID=$! | ||
echo "PID of the coordinator: $coordinatorPID" | ||
|
||
# Run daemons | ||
for i in $(seq 1 $1) | ||
do | ||
echo "Starting a daemon #$i in $tempDir/HyperDex_Daemon/$i" | ||
mkdir -p $tempDir/HyperDex_Daemon/$i | ||
hyperdex daemon --listen=127.0.0.1 --listen-port=201$i --coordinator=127.0.0.1 --coordinator-port=1982 --data=$tempDir/HyperDex_Daemon/$i & | ||
done | ||
|
||
# Setup spaces | ||
python setup_spaces.py | ||
|
||
# Run benchmarking | ||
pushd .. | ||
java -classpath '.:/usr/local/share/java/org.hyperdex.client-1.8.1.jar' -Djava.library.path=/usr/local/lib Main | ||
popd | ||
|
||
# SIGTERM background HyperDex coordinator, daemons terminate themselfes after coordinator is down | ||
kill -15 $coordinatorPID | ||
|
||
test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
#!/usr/bin/python | ||
import sys | ||
sys.path.append('/usr/local/lib/python2.7/site-packages') # Link the right library on Mac OS | ||
|
||
import hyperdex.admin | ||
a = hyperdex.admin.Admin('127.0.0.1', 1982) | ||
|
||
a.add_space(''' | ||
space chunked | ||
key time | ||
attributes data | ||
tolerate 2 failures | ||
''') | ||
a.add_space(''' | ||
space compressed_c | ||
key time | ||
attributes data | ||
tolerate 2 failures | ||
''') | ||
a.add_space(''' | ||
space encrypted_cc | ||
key time | ||
attributes data | ||
tolerate 2 failures | ||
''') | ||
|
||
|
||
a.add_space(''' | ||
space chunked2 | ||
key time | ||
attributes data, temp_skin | ||
subspace temp_skin | ||
tolerate 2 failures | ||
''') | ||
a.add_space(''' | ||
space compressed_c2 | ||
key time | ||
attributes data, temp_skin | ||
subspace temp_skin | ||
tolerate 2 failures | ||
''') | ||
a.add_space(''' | ||
space encrypted_cc2 | ||
key time | ||
attributes data, temp_skin | ||
subspace temp_skin | ||
tolerate 2 failures | ||
''') |