OpenStack dashboard异常解决

dashboard界面一直报错,无法连接
查看后台neutron以及nova日志发现每过一段时间,就会出现
ERROR 1040 too many connections
mysql里面查询

show processlist;

发现连接只有200左右
配置文件中连接数参数配置如下

max_connections=1000

//
因此怀疑这个参数未生效
在mysql里面查询

show status like '%max_used_connections%';

发现这个参数值是215

show variables like 'max_connections';

发现这个参数值是214
也即是配置中的参数未能生效
官方文档认为
当max_used_connections/max_connections*100%=85%时最佳
因此在mysql里面手动调整

set global max_connections=500

调整后查询

show variables like 'max_connections';
show status like '%max_used_connections%';

如果是集群的话每个节点都要设置
//改完之后,在mysql里面查询

show status like '%max_used_connections%';

发现这个参数值稳定在265,dashboard界面不在出现这种错误。至此,问题解决

猜你喜欢

转载自blog.csdn.net/H_haow/article/details/80499319