1. ansible-playbook bootstrap.yml 执行问题

问题:fio: randread iops of tikv_data_dir disk is too low: 4948 < 40000, it is strongly recommended to use SSD disks for TiKV and PD, or there might be performance issues

  • 解决方案:


    ansible-playbook bootstrap.yml --extra-vars "dev_mode=True"

2. TiDB 部署NTP检查操作及原因

问题:Make sure NTP service is running and ntpstat is synchronised to NTP server. See https://github.com/pingcap/docs/blob/master/op-guide/ansible-deployment.

  • 解决方案:


    ansible-playbook -i hosts.ini deploy_ntp.yml -u tidb -b

3. TiDB 部署NTP检查操作及原因

问题:The default maximum number of open file descriptors is too low 65535, should be 1000000

  • 解决方案:系统打开文件最大数目过低,看下详细错误信息,找到那台实例机器,登录对应的机器修改所存在问题机器的配置,执行命令如下:
    vi /etc/profile  
    ## 把ulimit -n 1000000 加到此配置的最后一行  
    source /etc/profile

4. You need to install jmespath prior to running json_query filter 报错

You need to install jmespath prior to running json_query filter

  • 解决方案:在中控机上通过 pip 安装 Ansible 及相关依赖的指定版本,默认会安装 jmespath,执行命令如下:

    pip show jmespath

5. 启动 Pump/Drainer 报 zk: node does not exist 错误

zk: node does not exist

  • 解决方案: 请检查 inventory.ini 里的 zookeeper_addrs 参数配置与 Kafka 集群内的配置是否相同、是否填写了命名空间。关于命名空间的配置说明如下:
    # ZooKeeper connection string (see ZooKeeper docs for details).  
    # ZooKeeper address of Kafka cluster, example:  
    # zookeeper_addrs = ",,"  
    # You can also append an optional chroot string to the URLs to specify the root directory for all Kafka znodes. Example:  
    # zookeeper_addrs = ",,"