From ddcf5e920928be3156812767db992cb4cc9ae5d4 Mon Sep 17 00:00:00 2001 From: ksatchit Date: Thu, 27 Jul 2017 12:24:09 +0530 Subject: [PATCH] Add a kubernetes job yaml for performing sql load generation ------------------------------------------------------------ - 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 --- k8s/demo/percona/sql-loadgen.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 k8s/demo/percona/sql-loadgen.yaml diff --git a/k8s/demo/percona/sql-loadgen.yaml b/k8s/demo/percona/sql-loadgen.yaml new file mode 100644 index 0000000000..b8908fe400 --- /dev/null +++ b/k8s/demo/percona/sql-loadgen.yaml @@ -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 +