使用tiup部署tidb的时候,linux服务器需要修改哪些配置才能满足tidb的部署要求?

提问者:Rae 问题分类:运维
使用tiup部署tidb的时候,linux服务器需要修改哪些配置才能满足tidb的部署要求?
9 个回答
つ浅笑嫣然
つ浅笑嫣然
问题:mount point / does not have 'nodelalloc' option set
解决方案是:
#编辑文件
vim /etc/fstab文件
#在default值后面添加nodelalloc和noatime
UUID=4b499d76-769a-40a0-93dc-4a31a59add28 /                       ext4    defaults,nodelalloc,noatime        1 1
这里修改之后需要重启
发布于:2个月前 (03-06) IP属地:
芄粗
芄粗
问题:net.ipv4.tcp_syncookies = 1, should be 0
解决方案是:
echo "net.ipv4.tcp_syncookies = 0" >> /etc/sysctl.conf
sysctl --system
发布于:2个月前 (03-06) IP属地:
影子爱人
影子爱人
问题:service irqbalance not found, should be installed and started
解决方案是:
yum install -y irqbalance
service irqbalance start
chkconfig irqbalance on
发布于:2个月前 (03-06) IP属地:
养猪发家致富
养猪发家致富
问题:vm.swappiness = 30, should be 0
解决方案:
echo 0 > /proc/sys/vm/swappiness
发布于:2个月前 (03-06) IP属地:
细腻长发姐
细腻长发姐
问题:numactl not usable, bash: numactl: command not found
解决方案是:
yum install -y numactl
发布于:2个月前 (03-06) IP属地:
浅语望月
浅语望月
问题:net.core.somaxconn = 4096, should be greater than 32768
解决方案是执行如下的命令:
#打开文件
vim /etc/sysctl.conf
#修改值
net.core.somaxconn= 40000
发布于:2个月前 (03-06) IP属地:
为什么放弃治疗
为什么放弃治疗
问题:fs.file-max = 776467, should be greater than 1000000
解决方案是执行如下的命令:
echo 1000000 > /proc/sys/fs/file-max
发布于:2个月前 (03-06) IP属地:
ε小仙女з
ε小仙女з
修改THP is enabled, please disable it for best performance的报错,解决方案是执行如下的命令:
echo never > /sys/kernel/mm/transparent_hugepage/defrag
echo never > /sys/kernel/mm/transparent_hugepage/enabled
发布于:2个月前 (03-06) IP属地:
久碍
久碍
修改下列三项:
172.19.0.2  limits          Fail    soft limit of 'nofile' for user 'tidb' is not set or too low
172.19.0.2  limits          Fail    hard limit of 'nofile' for user 'tidb' is not set or too low
172.19.0.2  limits          Fail    soft limit of 'stack' for user 'tidb' is not set or too low
解决方案是修改内容:
1、编辑/etc/security/limits.conf文件。
2、文末添加:
tidb soft nofile 1000000
tidb hard nofile 1000000
tidb soft stack 1000000
tidb hard stack 1000000
发布于:2个月前 (03-06) IP属地:
我来回答