TiDB集群弹性伸缩特性不能正常使用(k8s部署)

TiDB版本:v4.0.1
Operator版本:v1.1.1

问题描述:
按照官网文档配置弹性扩容特性,使用sysbench进行oltp_point_select测试,在CPU使用远超过requests的情况下并未进行正常的弹性扩容。

TiDB Cluster和监控的配置文件:

弹性伸缩的配置文件:

部署语句:
kubectl apply -f tidb-cluster.yaml -n tidb-test
kubectl apply -f tidb-monitor.yaml -n tidb-test
kubectl apply -f autoscaler.yaml -n tidb-test

测试语句:
sysbench --config-file=sysbench.config oltp_point_select --tables=1 --table-size=20000 prepare
sysbench --config-file=sysbench.config oltp_point_select --tables=1 --table-size=20000 run

查看tidb-controller日志:
kubectl logs -f -n tidb-admin tidb-controller-manager-xxx,持续报metric configuration invalid的错误,具体见下图:

The indent in the autoscaler.yaml is not correct.
image

感谢,我的问题解决了:+1:

:+1::handshake:

此话题已在最后回复的 1 分钟后被自动关闭。不再允许新回复。