- 积分
- 16840
在线时间 小时
最后登录1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?开始注册
x
查看日志/var/log/nova/nova-scheduler.log,/var/log/nova/nova-compute.log,均无报错
/ L% d) j' l) B3 B* q/ O# i+ [7 c- B @
查看/var/log/nova/nova-conductor.log报错为3 N4 C# Q. Z9 G
+ G' K" B2 M1 _( b; G9 f
2017-02-06 09:27:04.976 2206 ERROR oslo_messaging.rpc.server OperationalError: (pymysql.err.OperationalError) (1040, u'Too many connections')2 f& w* l6 o! b# [; Q
& w3 N8 F) q; z* c' n9 z5 o
2018-10-11 22:59:43.524 13733 ERROR neutron OperationalError: (pymysql.err.OperationalError) (1040, u'Too many connections') (Background on this error at: http://sqlalche.me/e/e3q8)
. \8 P( ^8 ~: W1 B3 L. [2018-10-11 22:59:43.524 13733 ERROR neutron ) x1 W" G6 t* z, j- f0 s
- D' x4 {; E" }! r% ~$ p
修改mariadb配置文件- @0 g9 e; i% L. B8 B
* v7 y* N9 ?# B# j' r2 I2 C]# vim /etc/my.cnf.d/openstack.cnf
2 G; ?: p) x* t; {* l4 x[mysqld]
$ c' R: N p6 \/ ^* p' _8 U! `max_connections = 4096% k& k5 Z3 `/ T# z
修改系统打开数
% ^; W, s F! z6 m1 g4 O/ h7 s8 z
]# vim /etc/security/limits.conf ' [6 |. ^( d: M! {- B8 y& [7 ?$ n; G
* soft nofile 65536
% M( m. K& O6 R2 H+ g1 O7 E* hard nofile 65536. k" K) V3 w; g* o
]# ulimit -SHn 65536
/ E+ {4 P- Z8 Z+ A# Q
1 s- o Q+ y) h& h8 Y* @7 O g9 y! V6 Q' M. r4 a
]# vim /etc/sysctl.conf & Y' Q1 o$ E! n/ ]/ m% g
# max open files! i, t+ X7 M( \( J4 y3 s
fs.file-max = 65536- }8 E/ N4 y7 ] _/ w3 S ?
]# sysctl -p
4 P n6 ~& m3 M" s" K重启mariadb
9 D! B% z( p9 T8 o$ O7 U( i6 w3 L3 n. E
]# systemctl restart mariadb
0 {8 ~5 f! v! K" r. O! M6 ]7 o& I! K; b8 d* y$ F5 n$ X7 k
|
|