Skip to content

Instantly share code, notes, and snippets.

@marcelo-ochoa
Created August 10, 2020 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcelo-ochoa/add70212318606714ebd750fb1a53324 to your computer and use it in GitHub Desktop.
Save marcelo-ochoa/add70212318606714ebd750fb1a53324 to your computer and use it in GitHub Desktop.
Docker swarm stack Oracle Cloud version
version: "3.6"
services:
oesetup:
image: swingbench:2.6.0
command: /opt/swingbench/bin/oewizard -cf /opt/Wallet_test2.zip -dba "admin" -dbap ${ADMIN_PWD} -cs test2_high -create -scale 0.8 -v -cl -ts DATA -u soe -p ${SOE_PWD} -async_off
volumes:
- /gluster-storage/Wallet_test1.zip:/opt/Wallet_test1.zip
- /gluster-storage/Wallet_test2.zip:/opt/Wallet_test2.zip
deploy:
mode: replicated
replicas: 0
restart_policy:
condition: none
tpcdsetup:
image: swingbench:2.6.0
command: /opt/swingbench/bin/tpcdswizard -cf /opt/Wallet_test2.zip -dba "admin" -dbap ${ADMIN_PWD} -cs test2_high -create -scale 0.8 -v -cl -ts DATA -u tpcdslike -p ${TPC_PWD} -async_off
volumes:
- /gluster-storage/Wallet_test1.zip:/opt/Wallet_test1.zip
- /gluster-storage/Wallet_test2.zip:/opt/Wallet_test2.zip
deploy:
mode: replicated
replicas: 0
restart_policy:
condition: none
soecs:
image: swingbench:2.6.0
command: /opt/swingbench/bin/charbench -cf /opt/Wallet_test2.zip -cs test2_high -c /opt/swingbench/configs/SOE_Client_Side.xml -u soe -p ${SOE_PWD} -uc 8 -a -v users,tpm,tps,cpu,disk -mt 20000 -mr
volumes:
- /gluster-storage/Wallet_test1.zip:/opt/Wallet_test1.zip
- /gluster-storage/Wallet_test2.zip:/opt/Wallet_test2.zip
deploy:
mode: replicated
replicas: 0
restart_policy:
condition: none
configs:
- source: launcher.xml
target: /opt/swingbench/launcher/launcher.xml
uid: '0'
gid: '0'
mode: 0644
soess:
image: swingbench:2.6.0
command: /opt/swingbench/bin/charbench -cf /opt/Wallet_test1.zip -cs test1_tpurgent -c /opt/swingbench/configs/SOE_Server_Side_V2.xml -u soe -p ${SOE_PWD} -uc 16 -a -v users,tpm,tps,cpu,disk -mt 40000 -mr
volumes:
- /gluster-storage/Wallet_test1.zip:/opt/Wallet_test1.zip
- /gluster-storage/Wallet_test2.zip:/opt/Wallet_test2.zip
deploy:
mode: replicated
replicas: 0
restart_policy:
condition: none
configs:
- source: launcher.xml
target: /opt/swingbench/launcher/launcher.xml
uid: '0'
gid: '0'
mode: 0644
tpcds:
image: swingbench:2.6.0
command: /opt/swingbench/bin/charbench -cf /opt/Wallet_test2.zip -cs test2_high -c /opt/swingbench/configs/TPCDS_Transactions.xml -u tpcdslike -p ${TPC_PWD} -uc 8 -a -v users,tpm,tps,cpu,disk -mt 20000 -mr
volumes:
- /gluster-storage/Wallet_test1.zip:/opt/Wallet_test1.zip
- /gluster-storage/Wallet_test2.zip:/opt/Wallet_test2.zip
deploy:
mode: replicated
replicas: 0
restart_policy:
condition: none
configs:
- source: launcher.xml
target: /opt/swingbench/launcher/launcher.xml
uid: '0'
gid: '0'
mode: 0644
stresst:
image: swingbench:2.6.0
hostname: stresst{{.Task.Slot}}
command: bash -c "/opt/swingbench/bin/charbench -cf /opt/Wallet_test2.zip -cs test2_high -c /opt/swingbench/configs/Stress_Test.xml -u $$(cat /etc/hostname) -p ${SOE_PWD} -uc 4 -a -v users,tpm,tps,cpu,disk -mt 100000 -mr"
volumes:
- /gluster-storage/Wallet_test1.zip:/opt/Wallet_test1.zip
- /gluster-storage/Wallet_test2.zip:/opt/Wallet_test2.zip
deploy:
mode: replicated
replicas: 0
restart_policy:
condition: none
configs:
- source: launcher.xml
target: /opt/swingbench/launcher/launcher.xml
uid: '0'
gid: '0'
mode: 0644
configs:
launcher.xml:
external: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment