首页 > 代码库 > QueuePool limit of size 10 overflow 20 reached, connection timed out, timeout 10
QueuePool limit of size 10 overflow 20 reached, connection timed out, timeout 10
当批量删除虚拟机时报错如下
1、在计算节点的报错信息如下
[root@LX-OS-node12 ~]# tail -f /var/log/neutron/openvswitch-agent.log
2014-09-02 19:28:27.252 36649 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent File "/usr/lib/python2.6/site-packages/neutron/agent/securitygroups_rpc.py", line 120, in prepare_devices_filter
2014-09-02 19:28:27.252 36649 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent self.context, list(device_ids))
2014-09-02 19:28:27.252 36649 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent File "/usr/lib/python2.6/site-packages/neutron/agent/securitygroups_rpc.py", line 58, in security_group_rules_for_devices
2014-09-02 19:28:27.252 36649 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent topic=self.topic)
2014-09-02 19:28:27.252 36649 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent File "/usr/lib/python2.6/site-packages/neutron/openstack/common/rpc/proxy.py", line 130, in call
2014-09-02 19:28:27.252 36649 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent exc.info, real_topic, msg.get(‘method‘))
2014-09-02 19:28:27.252 36649 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent Timeout: Timeout while waiting on RPC response - topic: "q-plugin", RPC method: "security_group_rules_for_devices" info: "<unknown>"
2014-09-02 19:28:27.252 36649 TRACE neutron.plugins.openvswitch.agent.ovs_neutron_agent
2014-09-02 19:28:27.253 36649 INFO neutron.plugins.openvswitch.agent.ovs_neutron_agent [-] Agent out of sync with plugin!
2、在控制节点的报错信息如下
[root@LX-OS-node1 ~]# tail -f /var/log/neutron/server.log
2014-09-02 19:32:12.123 3147 TRACE neutron.openstack.common.rpc.amqp File "/usr/lib64/python2.6/site-packages/SQLAlchemy-0.7.8-py2.6-linux-x86_64.egg/sqlalchemy/engine/base.py", line 2490, in contextual_connect
2014-09-02 19:32:12.123 3147 TRACE neutron.openstack.common.rpc.amqp self.pool.connect(),
2014-09-02 19:32:12.123 3147 TRACE neutron.openstack.common.rpc.amqp File "/usr/lib64/python2.6/site-packages/SQLAlchemy-0.7.8-py2.6-linux-x86_64.egg/sqlalchemy/pool.py", line 224, in connect
2014-09-02 19:32:12.123 3147 TRACE neutron.openstack.common.rpc.amqp return _ConnectionFairy(self).checkout()
2014-09-02 19:32:12.123 3147 TRACE neutron.openstack.common.rpc.amqp File "/usr/lib64/python2.6/site-packages/SQLAlchemy-0.7.8-py2.6-linux-x86_64.egg/sqlalchemy/pool.py", line 387, in __init__
2014-09-02 19:32:12.123 3147 TRACE neutron.openstack.common.rpc.amqp rec = self._connection_record = pool._do_get()
2014-09-02 19:32:12.123 3147 TRACE neutron.openstack.common.rpc.amqp File "/usr/lib64/python2.6/site-packages/SQLAlchemy-0.7.8-py2.6-linux-x86_64.egg/sqlalchemy/pool.py", line 729, in _do_get
2014-09-02 19:32:12.123 3147 TRACE neutron.openstack.common.rpc.amqp (self.size(), self.overflow(), self._timeout))
2014-09-02 19:32:12.123 3147 TRACE neutron.openstack.common.rpc.amqp TimeoutError: QueuePool limit of size 10 overflow 20 reached, connection timed out, timeout 10
2014-09-02 19:32:12.123 3147 TRACE neutron.openstack.common.rpc.amqp
解决方法设置neutron配置文件中的如下参数
openstack-config --set /etc/neutron/neutron.conf DEFAULT api_workers 20
openstack-config --set /etc/neutron/neutron.conf database max_overflow 2000
openstack-config --set /etc/neutron/neutron.conf database max_pool_size 2000
openstack-config --set /etc/neutron/neutron.conf database retry_interval 2
设置nova的配置文件如下
openstack-config --set /etc/nova/nova.conf database max_pool_size 2000
openstack-config --set /etc/nova/nova.conf database max_retries 10
openstack-config --set /etc/nova/nova.conf database retry_interval 5
openstack-config --set /etc/nova/nova.conf database max_overflow 2000
本文出自 “zhanguo1110” 博客,请务必保留此出处http://zhanguo1110.blog.51cto.com/5750817/1548234
QueuePool limit of size 10 overflow 20 reached, connection timed out, timeout 10