执行OpenStack命令报错如下:
ERROR: The server has either erred or is incapable of performing the requested operation. (HTTP 500)
偶现且出现概率不固定。
netstat -a|grep mysql|grep "^tcp"|wc -l
减少处于TIME_WAIT状态的连接数,操作如下。
sysctl -w net.ipv4.tcp_tw_reuse=1 sysctl -w net.ipv4.tcp_fin_timeout=30 sysctl -w net.ipv4.tcp_max_tw_buckets=10000
vi /etc/sysctl.conf
net.ipv4.tcp_tw_reuse=1 net.ipv4.tcp_fin_timeout=30 net.ipv4.tcp_max_tw_buckets=10000
sysctl -p