安装TiKV报错,提示sequential write latency of tikv_data_dir disk is too low

为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。

  • 【TiDB 版本】:3.0.9
  • 【问题描述】:使用Ansible安装时报以下错误:

[TiKV7-1]: Ansible FAILED! => playbook: bootstrap.yml; TASK: machine_benchmark : Preflight check - Does fio mixed randread and sequential write latency of tikv_data_dir disk meet requirement - sequential write; message: {“changed”: false, “msg”: “fio mixed randread and sequential write test: sequential write latency of tikv_data_dir disk is too low: 41554 ns > 30000 ns, it is strongly recommended to use SSD disks for TiKV and PD, or there might be performance issues.”}

[TiKV8-1]: Ansible FAILED! => playbook: bootstrap.yml; TASK: machine_benchmark : Preflight check - Does fio mixed randread and sequential write latency of tikv_data_dir disk meet requirement - sequential write; message: {“changed”: false, “msg”: “fio mixed randread and sequential write test: sequential write latency of tikv_data_dir disk is too low: 34291 ns > 30000 ns, it is strongly recommended to use SSD disks for TiKV and PD, or there might be performance issues.”}

磁盘 fio 检测不同过,磁盘的 latency 延迟太高。建议按照官方文档的硬件标准来选购设备。

同样的配置,另外7台都通过了,就这两台没通过

应该不是配置问题,是磁盘的性能问题。如果同一批次的机器,确认磁盘型号和磁盘的批次是否一致,可能个别磁盘存在性能或者质量问题。

这是我们自己用fio测的,貌似没有问题

https://github.com/pingcap/tidb-ansible/tree/v3.0.9/roles/machine_benchmark/tasks

这是我们使用的 fio 的测试命令

https://github.com/pingcap/tidb-ansible/blob/v3.0.9/roles/machine_benchmark/defaults/main.yml

这是测试阀值

生产和性能测试环境,建议磁盘使用满足要求的,不然后面性能出现问题,排查比较麻烦。

您好: 1. 请问这同一批次的服务器是物理机,还是云主机? 2. 如果是云主机挑选出一台通过的和未通过的使用你的fio测试得到的性能值是否一致? 另外也可以在不同时间段测试一下未通过的两台机器性能值是否会有波动。 3. 如果是云主机也可以对比一下未通过的和通过的主机是不是不在一个AZ或者不是一个region导致的,对比一下. 多谢.

已经挑选没有报错的机器作为KV服务器,此问题暂时忽略了。

:handshake:

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