Skip to content

Commit

Permalink
Add a kubernetes job yaml for performing sql load generation
Browse files Browse the repository at this point in the history
------------------------------------------------------------
- The sql-loadgen.yaml is a batch job that generates R/W load
  on mysql database server through insert and select queries

- Duration of load and IP of database application pod are passed
  as arguments to a mysql-client container
  • Loading branch information
ksatchit committed Jul 27, 2017
1 parent c2ed021 commit ddcf5e9
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions k8s/demo/percona/sql-loadgen.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
apiVersion: batch/v1
kind: Job
metadata:
name: sql-loadgen
spec:
template:
metadata:
name: sql-loadgen
spec:
restartPolicy: Never
containers:
- name: sql-loadgen
image: openebs/tests-mysql-client
command: ["/bin/bash"]
args: ["-c", "timelimit -t 300 sh MySQLLoadGenerate.sh 10.36.0.3 > /dev/null 2>&1; exit 0"]
tty: true

0 comments on commit ddcf5e9

Please sign in to comment.