From 144bd1461aeda466f4f0ee4027cd654f31691b2e Mon Sep 17 00:00:00 2001 From: jiaominchao Date: Wed, 19 Jul 2023 16:19:00 +0800 Subject: [PATCH] feat: Added sysbench_keentune alinux3 dockerfile Signed-off-by: jiaominchao --- sysbench_keentune/v1.0/alinux3/Dockerfile | 14 +++++++++ sysbench_keentune/v1.0/alinux3/ci.yaml | 30 +++++++++++++++++++ .../v1.0/alinux3/mysql_noupdate.sh | 11 +++++++ sysbench_keentune/v1.0/alinux3/mysql_read.sh | 10 +++++++ sysbench_keentune/v1.0/alinux3/mysql_rw.sh | 9 ++++++ sysbench_keentune/v1.0/alinux3/mysql_write.sh | 9 ++++++ sysbench_keentune/versions.yaml | 10 +++++++ 7 files changed, 93 insertions(+) create mode 100644 sysbench_keentune/v1.0/alinux3/Dockerfile create mode 100644 sysbench_keentune/v1.0/alinux3/ci.yaml create mode 100644 sysbench_keentune/v1.0/alinux3/mysql_noupdate.sh create mode 100644 sysbench_keentune/v1.0/alinux3/mysql_read.sh create mode 100644 sysbench_keentune/v1.0/alinux3/mysql_rw.sh create mode 100644 sysbench_keentune/v1.0/alinux3/mysql_write.sh create mode 100644 sysbench_keentune/versions.yaml diff --git a/sysbench_keentune/v1.0/alinux3/Dockerfile b/sysbench_keentune/v1.0/alinux3/Dockerfile new file mode 100644 index 0000000..48a51ef --- /dev/null +++ b/sysbench_keentune/v1.0/alinux3/Dockerfile @@ -0,0 +1,14 @@ +FROM alibaba-cloud-linux-3-registry.cn-hangzhou.cr.aliyuncs.com/alinux3/alinux3:latest + +LABEL \ + org.opencontainers.image.title="sysbench_keentune" \ + org.opencontainers.image.version="latest" \ + maintainer="OpenAnolis KeenTune SIG" + +COPY mysql_read.sh mysql_read.sh +COPY mysql_write.sh mysql_write.sh +COPY mysql_rw.sh mysql_rw.sh +COPY mysql_noupdate.sh mysql_noupdate.sh + +RUN yum install sysbench -y + diff --git a/sysbench_keentune/v1.0/alinux3/ci.yaml b/sysbench_keentune/v1.0/alinux3/ci.yaml new file mode 100644 index 0000000..887495c --- /dev/null +++ b/sysbench_keentune/v1.0/alinux3/ci.yaml @@ -0,0 +1,30 @@ +repo: + git_url: https://gitee.com/anolis/docker-images + trigger_mode: pr +test: + docker_build: + test_type: docker + docker_app_test: + tone_test: app_test + app_test: + tone_workspace: container_ci_test + tone_project: default_container_ci_test + tone_test_suite: image-ci-test + tone_test_conf: group=application_container_func_test + server_config: + x86_64: anolis-container-test-x86 + aarch64: anolis-container-test-arm64 + keentune_app_test: + tone_test: keentune_test + keentune_test: + tone_workspace: container_ci_test + tone_project: default_container_ci_test + tone_test_suite: image-ci-test + tone_test_conf: group=keentune_application_container_func_test + server_config: + x86_64: anolis-container-test-x86 + aarch64: anolis-container-test-arm64 + parallel: + - docker_build + - docker_app_test, keentune_app_test + diff --git a/sysbench_keentune/v1.0/alinux3/mysql_noupdate.sh b/sysbench_keentune/v1.0/alinux3/mysql_noupdate.sh new file mode 100644 index 0000000..0c49a40 --- /dev/null +++ b/sysbench_keentune/v1.0/alinux3/mysql_noupdate.sh @@ -0,0 +1,11 @@ +#!/bin/bash +TABLES=${2:-100} +TABLE_SIZE=${3:-4000} +TIME=${4:-30} +THREADS=${5:-16} + +sysbench oltp_update_non_index --db-ps-mode=auto --mysql-host=$1 --mysql-port=3001 --mysql-user=sysbench --mysql-password=password --mysql-db=sysdb --tables=$TABLES --table_size=$TABLE_SIZE --time=$TIME --report-interval=1 --threads=$THREADS prepare +sysbench oltp_update_non_index --db-ps-mode=auto --mysql-host=$1 --mysql-port=3001 --mysql-user=sysbench --mysql-password=password --mysql-db=sysdb --tables=$TABLES --table_size=$TABLE_SIZE --time=$TIME --report-interval=1 --threads=$THREADS run +sysbench oltp_update_non_index --db-ps-mode=auto --mysql-host=$1 --mysql-port=3001 --mysql-user=sysbench --mysql-password=password --mysql-db=sysdb --tables=$TABLES --table_size=$TABLE_SIZE --time=$TIME --report-interval=1 --threads=$THREADS cleanup + + diff --git a/sysbench_keentune/v1.0/alinux3/mysql_read.sh b/sysbench_keentune/v1.0/alinux3/mysql_read.sh new file mode 100644 index 0000000..9bc97eb --- /dev/null +++ b/sysbench_keentune/v1.0/alinux3/mysql_read.sh @@ -0,0 +1,10 @@ +#!/bin/bash +TABLES=${2:-100} +TABLE_SIZE=${3:-4000} +TIME=${4:-30} +THREADS=${5:-16} + +sysbench oltp_read_only --db-ps-mode=auto --mysql-host=$1 --mysql-port=3001 --mysql-user=sysbench --mysql-password=password --mysql-db=sysdb --tables=$TABLES --table_size=$TABLE_SIZE --time=$TIME --report-interval=1 --threads=$THREADS prepare +sysbench oltp_read_only --db-ps-mode=auto --mysql-host=$1 --mysql-port=3001 --mysql-user=sysbench --mysql-password=password --mysql-db=sysdb --tables=$TABLES --table_size=$TABLE_SIZE --time=$TIME --report-interval=1 --threads=$THREADS run +sysbench oltp_read_only --db-ps-mode=auto --mysql-host=$1 --mysql-port=3001 --mysql-user=sysbench --mysql-password=password --mysql-db=sysdb --tables=$TABLES --table_size=$TABLE_SIZE --time=$TIME --report-interval=1 --threads=$THREADS cleanup + diff --git a/sysbench_keentune/v1.0/alinux3/mysql_rw.sh b/sysbench_keentune/v1.0/alinux3/mysql_rw.sh new file mode 100644 index 0000000..593da2e --- /dev/null +++ b/sysbench_keentune/v1.0/alinux3/mysql_rw.sh @@ -0,0 +1,9 @@ +#!/bin/bash +TABLES=${2:-100} +TABLE_SIZE=${3:-4000} +TIME=${4:-30} +THREADS=${5:-16} + +sysbench oltp_read_write --db-ps-mode=auto --mysql-host=$1 --mysql-port=3001 --mysql-user=sysbench --mysql-password=password --mysql-db=sysdb --tables=$TABLES --table_size=$TABLE_SIZE --time=$TIME --report-interval=1 --threads=$THREADS prepare +sysbench oltp_read_write --db-ps-mode=auto --mysql-host=$1 --mysql-port=3001 --mysql-user=sysbench --mysql-password=password --mysql-db=sysdb --tables=$TABLES --table_size=$TABLE_SIZE --time=$TIME --report-interval=1 --threads=$THREADS run +sysbench oltp_read_write --db-ps-mode=auto --mysql-host=$1 --mysql-port=3001 --mysql-user=sysbench --mysql-password=password --mysql-db=sysdb --tables=$TABLES --table_size=$TABLE_SIZE --time=$TIME --report-interval=1 --threads=$THREADS cleanup diff --git a/sysbench_keentune/v1.0/alinux3/mysql_write.sh b/sysbench_keentune/v1.0/alinux3/mysql_write.sh new file mode 100644 index 0000000..835f539 --- /dev/null +++ b/sysbench_keentune/v1.0/alinux3/mysql_write.sh @@ -0,0 +1,9 @@ +#!/bin/bash +TABLES=${2:-100} +TABLE_SIZE=${3:-4000} +TIME=${4:-30} +THREADS=${5:-16} + +sysbench oltp_write_only --db-ps-mode=auto --mysql-host=$1 --mysql-port=3001 --mysql-user=sysbench --mysql-password=password --mysql-db=sysdb --tables=$TABLES --table_size=$TABLE_SIZE --time=$TIME --report-interval=1 --threads=$THREADS prepare +sysbench oltp_write_only --db-ps-mode=auto --mysql-host=$1 --mysql-port=3001 --mysql-user=sysbench --mysql-password=password --mysql-db=sysdb --tables=$TABLES --table_size=$TABLE_SIZE --time=$TIME --report-interval=1 --threads=$THREADS run +sysbench oltp_write_only --db-ps-mode=auto --mysql-host=$1 --mysql-port=3001 --mysql-user=sysbench --mysql-password=password --mysql-db=sysdb --tables=$TABLES --table_size=$TABLE_SIZE --time=$TIME --report-interval=1 --threads=$THREADS cleanup diff --git a/sysbench_keentune/versions.yaml b/sysbench_keentune/versions.yaml new file mode 100644 index 0000000..e9c432b --- /dev/null +++ b/sysbench_keentune/versions.yaml @@ -0,0 +1,10 @@ +sysbench_keentune: + v1.0: + alinux: + registries: + - alinux + images: + - dockerfile: sysbench_keentune/v1.0/alinux3/Dockerfile + builds: + - tags: + - latest -- Gitee