make pwd the bin folder.

pull/69/head
Richard Liu 6 years ago
parent 7311b45859
commit 708fc46a9d
  1. 2
      benchmark.go
  2. 7
      deploy.sh
  3. 2
      run_experiment.sh

@ -33,7 +33,7 @@ func attackDetermination(attackedMode int) bool {
} }
func startProfiler(shardID string, logFolder string) { func startProfiler(shardID string, logFolder string) {
err := utils.RunCmd("./bin/profiler", "-pid", strconv.Itoa(os.Getpid()), "-shard_id", shardID, "-log_folder", logFolder) err := utils.RunCmd("./profiler", "-pid", strconv.Itoa(os.Getpid()), "-shard_id", shardID, "-log_folder", logFolder)
if err != nil { if err != nil {
log.Error("Failed to start profiler") log.Error("Failed to start profiler")
} }

@ -38,6 +38,7 @@ db_supported=$2
go build -o bin/benchmark go build -o bin/benchmark
go build -o bin/txgen client/txgen/main.go go build -o bin/txgen client/txgen/main.go
go build -o bin/profiler profiler/main.go go build -o bin/profiler profiler/main.go
cd bin
# Create a tmp folder for logs # Create a tmp folder for logs
t=`date +"%Y%m%d-%H%M%S"` t=`date +"%Y%m%d-%H%M%S"`
@ -51,9 +52,9 @@ while IFS='' read -r line || [[ -n "$line" ]]; do
#echo $ip $port $mode #echo $ip $port $mode
if [ "$mode" != "client" ]; then if [ "$mode" != "client" ]; then
if [ -z "$db_supported" ]; then if [ -z "$db_supported" ]; then
./bin/benchmark -ip $ip -port $port -config_file $config -log_folder $log_folder& ./benchmark -ip $ip -port $port -config_file $config -log_folder $log_folder&
else else
./bin/benchmark -ip $ip -port $port -config_file $config -log_folder $log_folder -db_supported& ./benchmark -ip $ip -port $port -config_file $config -log_folder $log_folder -db_supported&
fi fi
fi fi
done < $config done < $config
@ -61,5 +62,5 @@ done < $config
txgen_disabled=$3 txgen_disabled=$3
# Generate transactions # Generate transactions
if [ -z "$txgen_disabled" ]; then if [ -z "$txgen_disabled" ]; then
./bin/txgen -config_file $config -log_folder $log_folder ./txgen -config_file $config -log_folder $log_folder
fi fi

@ -3,8 +3,6 @@
go build -o bin/benchmark go build -o bin/benchmark
go build -o bin/txgen client/txgen/main.go go build -o bin/txgen client/txgen/main.go
go build -o bin/commander aws-experiment-launch/experiment/commander/main.go
go build -o bin/soldier aws-experiment-launch/experiment/soldier/main.go
go build -o bin/profiler profiler/main.go go build -o bin/profiler profiler/main.go
cd bin cd bin

Loading…
Cancel
Save