Skip to content

Instantly share code, notes, and snippets.

@marcelo-ochoa
Created August 10, 2020 13:40
Show Gist options
  • Save marcelo-ochoa/f545872e5bf429a4ed9a9b51b8055d2a to your computer and use it in GitHub Desktop.
Save marcelo-ochoa/f545872e5bf429a4ed9a9b51b8055d2a to your computer and use it in GitHub Desktop.
Swarm stack definition for local testing
version: "3.6"
volumes:
test-19c: {}
services:
db:
image: oracle/database:19.3.0-ee
volumes:
- test-19c:/opt/oracle/oradata
environment:
ORACLE_PWD: "${ADMIN_PWD}"
ORACLE_SID: "ORCLCDB"
ports:
- 1521:1521
- 5500:5500
deploy:
mode: replicated
replicas: 1
restart_policy:
condition: on-failure
max_attempts: 3
window: 120s
healthcheck:
test: exit 0
oesetup:
image: swingbench:2.6.0
command: /opt/swingbench/bin/oewizard -cs //db:1521/orclpdb1 -dba "sys as sysdba" -dbap ${ADMIN_PWD} -create -scale 0.8 -v -cl -ts DATA -u soe -p ${SOE_PWD} -async_off
deploy:
mode: replicated
replicas: 0
restart_policy:
condition: none
tpcdsetup:
image: swingbench:2.6.0
command: /opt/swingbench/bin/tpcdswizard -cs //db:1521/orclpdb1 -dba "sys as sysdba" -dbap ${ADMIN_PWD} -create -scale 0.8 -v -cl -ts DATA -u tpcdslike -p ${TPC_PWD} -async_off
deploy:
mode: replicated
replicas: 0
restart_policy:
condition: none
soecs:
image: swingbench:2.6.0
command: /opt/swingbench/bin/charbench -cs //db:1521/orclpdb1 -c /opt/swingbench/configs/SOE_Client_Side.xml -u soe -p ${SOE_PWD} -uc 16 -a -v users,tpm,tps,cpu,disk -mt 100000 -mr
deploy:
mode: replicated
replicas: 0
restart_policy:
condition: none
soess:
image: swingbench:2.6.0
command: /opt/swingbench/bin/charbench -cs //db:1521/orclpdb1 -c /opt/swingbench/configs/SOE_Server_Side_V2.xml -u soe -p ${SOE_PWD} -uc 16 -a -v users,tpm,tps,cpu,disk -mt 100000 -mr
deploy:
mode: replicated
replicas: 0
restart_policy:
condition: none
tpcds:
image: swingbench:2.6.0
command: /opt/swingbench/bin/charbench -cs //db:1521/orclpdb1 -c /opt/swingbench/configs/TPCDS_Transactions.xml -u tpcdslike -p ${TPC_PWD} -uc 8 -a -v users,tpm,tps,cpu,disk -mt 20000 -mr
deploy:
mode: replicated
replicas: 0
restart_policy:
condition: none
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment