neutron-server Connection pool is full, discarding connection 連接池過滿


參考鏈接:https://zhiliao.h3c.com/Theme/details/48291

問題:

2019-11-28 16:41:33.235 6662 WARNING requests.packages.urllib3.connectionpool [-] Connection pool is full, discarding connection: 10.95.134.176
2019-11-28 16:41:36.470 6662 WARNING requests.packages.urllib3.connectionpool [-] Connection pool is full, discarding connection: 10.95.134.176
2019-11-28 16:41:46.237 6661 WARNING requests.packages.urllib3.connectionpool [-] Connection pool is full, discarding connection: 10.95.134.176
2019-11-28 16:41:48.002 6661 WARNING requests.packages.urllib3.connectionpool [-] Connection pool is full, discarding connection: 10.95.134.176
2019-11-28 16:41:48.334 6661 WARNING requests.packages.urllib3.connectionpool [-] Connection pool is full, discarding connection: 10.95.134.176
2019-11-28 16:41:50.551 6662 WARNING requests.packages.urllib3.connectionpool [-] Connection pool is full, discarding connection: 10.95.134.176
2019-11-28 16:41:57.655 6664 WARNING requests.packages.urllib3.connectionpool [-] Connection pool is full, discarding connection: 10.95.134.176
2019-11-28 16:41:59.032 6662 WARNING requests.packages.urllib3.connectionpool [-] Connection pool is full, discarding connection: 10.95.134.176
2019-11-28 16:41:59.420 6662 WARNING requests.packages.urllib3.connectionpool [-] Connection pool is full, discarding connection: 10.95.134.176
2019-11-28 16:42:02.280 6662 WARNING requests.packages.urllib3.connectionpool [-] Connection pool is full, discarding connection: 10.95.134.176
2019-11-28 16:42:03.644 6664 WARNING requests.packages.urllib3.connectionpool [-] Connection pool is full, discarding connection: 10.95.134.176

解決方法:

經確認compute容器下默認的連接池參數“DEFAULT_POOLSIZE”是10,可以修改為1000。該參數需要固化。

配置文件的路徑為:/usr/lib/python2.7/site-packages/requests/adapters.py  

from .exceptions import (ConnectionError, ConnectTimeout, ReadTimeout, SSLError,
                         ProxyError, RetryError)
from .auth import _basic_auth_str

DEFAULT_POOLBLOCK = False
DEFAULT_POOLSIZE = 1000
DEFAULT_RETRIES = 0


class BaseAdapter(object):

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM