-
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.
- Loading branch information
Showing
7 changed files
with
84 additions
and
21 deletions.
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
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
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
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
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,35 @@ | ||
#!/bin/bash | ||
# ${1} : VSR | ||
# ${2} : TICKETS | ||
# ${3} : ITERATION | ||
# ${4} : WAITTIME | ||
# ${5} : LEASETIME | ||
|
||
declare -a waittimes=(100 300) | ||
declare -a leasetimes=(50 100) | ||
|
||
for waittime in "${waittimes[@]}"; do | ||
for leasetime in "${leasetimes[@]}"; do | ||
|
||
echo "Run with VSR:${1} TICKETS:${2} ITERATION:${3} WAITTIME:${waittime} LEASETIME: ${leasetime}" | ||
|
||
VSR=${1} | ||
TICKETS=${2} | ||
ITERATION=${3} | ||
LOCKTYPE="d-lock" | ||
WAITTIME=${waittime} | ||
LEASETIME=${leasetime} | ||
|
||
export VSR | ||
export TICKETS | ||
export ITERATION | ||
export LOCKTYPE | ||
export WAITTIME | ||
export LEASETIME | ||
|
||
docker compose -f docker-compose.stress-k6-only.yml up | ||
|
||
sleep 1 | ||
sh ./cleanup.sh | ||
done | ||
done |
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
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 |
---|---|---|
|
@@ -17,3 +17,5 @@ export LOCKTYPE | |
|
||
docker compose -f docker-compose.stress-k6-only.yml up | ||
|
||
sleep 1 | ||
sh ./cleanup.sh |