We are docker
This commit is contained in:
parent
ba0d4fd1b7
commit
3878049f50
2 changed files with 15 additions and 2 deletions
|
@ -44,3 +44,11 @@ sudo docker run -t -i \
|
||||||
```
|
```
|
||||||
sudo ./scripts/xp1 1000 100 100
|
sudo ./scripts/xp1 1000 100 100
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Run instances in parallel
|
||||||
|
|
||||||
|
```
|
||||||
|
parallel -j 30 bash -c "./scripts/xp1 1000 100 100" -- `seq 1 1000`
|
||||||
|
parallel -j 10 bash -c "./xp1 6000 100 100" -- `seq 1 100`
|
||||||
|
```
|
||||||
|
|
||||||
|
|
|
@ -6,8 +6,12 @@ mkdir -p $XP_FOLDER
|
||||||
cd $XP_FOLDER
|
cd $XP_FOLDER
|
||||||
|
|
||||||
# Create folders
|
# Create folders
|
||||||
mkdir -p ./{shared,log,res}
|
docker run \
|
||||||
chown -R 1000 ./{shared,log,res}
|
--rm \
|
||||||
|
-ti \
|
||||||
|
-v `pwd`:/mnt \
|
||||||
|
ubuntu \
|
||||||
|
bash -c "cd /mnt; mkdir -p ./{shared,log,res}; chown -R 1000 ./{shared,log,res}"
|
||||||
|
|
||||||
# Run server
|
# Run server
|
||||||
docker run \
|
docker run \
|
||||||
|
@ -32,3 +36,4 @@ docker run \
|
||||||
|
|
||||||
# Kill server
|
# Kill server
|
||||||
kill %1
|
kill %1
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue