Centos7.1系统使用tidb-ansible v2.1.15安装tidb集群

官方要求的操作系统是centos7.4以上,由于用的是私有云,操作系统是centos7.1,在此分享一下,在centos7.1下使用tidb-ansible v2.1.15安装tidb集群碰到的问题

  1. ansible-playbook bootstrap.yml执行的时候,cpupower frequency-set --governor performance这个设置校验不过去,因此就把deploy.yml里check system environment这一段注释了,不校验,强行部署, 执行 ansible-playbook start.yml启动tidb集群,就开始报错
    [2019/08/14 10:27:50.181 +08:00] [FATAL] [main.go:111] [“run server failed”] [error=“–initial-cluster has pd_localhost=http://10.10.67.158:2380,pd_localhost=http://10.10.67.159:2380 but missing from --initial-advertise-peer-urls=http://10.10.67.157:2380 (len([“http://10.10.67.157:2380”]) != len([“http://10.10.67.157:2380” “http://10.10.67.158:2380” “http://10.10.67.159:2380”]))”] [stack=“github.com/pingcap/pd/vendor/github.com/pingcap/log.Fatal
    /home/jenkins/workspace/release_tidb_2.1/go/src/github.com/pingcap/pd/vendor/github.com/pingcap/log/global.go:59
    main.main
    /home/jenkins/workspace/release_tidb_2.1/go/src/github.com/pingcap/pd/cmd/pd-server/main.go:111
    runtime.main
    /usr/local/go/src/runtime/proc.go:200”]

2.咨询官方技术人员,不能注释deploy.yml里check system environment这一段,开始想办法解决校验出的问题
cpupower frequency-set --governor performance这个设置校验不过去,通过cpupowerutils软件包解决

3.但是又碰到epoll不支持epollexclusive,这个坑了好久,google好久才发现,需要内核在4.5以上版本,才支持epollexclusive,将centos7.1的内核升级到5.2.8,至此,所有问题都解决了,后续都非常顺利
image

3 个赞

可以通过uname -a 检查一下内核版本(要支持 epollexclusive 解决 “惊群” 问题 ),我们在操作系统做了一些检查

如果觉得别人的回答有帮助,可以将回答标记为解决方案 :white_check_mark:,这样可以帮助其他有同样问题的人快速找到答案

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