From 788f5128d02b6add8c5592f473c1b551c345026f Mon Sep 17 00:00:00 2001 From: ysicing Date: Wed, 11 Sep 2024 11:05:48 +0800 Subject: [PATCH] + [feat]: add tuned balanced optimal --- hack/manifests/scripts/tuned.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 hack/manifests/scripts/tuned.sh diff --git a/hack/manifests/scripts/tuned.sh b/hack/manifests/scripts/tuned.sh new file mode 100755 index 00000000..2b1629ec --- /dev/null +++ b/hack/manifests/scripts/tuned.sh @@ -0,0 +1,27 @@ +#!/bin/sh + +apt update -qq +apt install -y -qq tuned + +# 系统优化参数 + +# 查看当前操作系统的tuned策略 +tuned-adm list + +mkdir /etc/tuned/balanced-tidb-optimal + +# Current active profile: balanced 表示当前操作系统的 tuned 策略使用 balanced,建议在当前策略的基础上添加操作系统优化配置 +# 在现有的 balanced 策略基础上添加操作系统优化配置。 +cat > /etc/tuned/balanced-quickon-optimal/tuned.conf <