zoukankan      html  css  js  c++  java
  • 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):
  • 相关阅读:
    [009]类型转换
    [008]new、delete及动态内存分配
    [007]操作符的求解顺序
    [010]转+修正---C++的贪吃蛇程序(未用面向对象封装)
    [006]为什么C++会被叫做是C++?
    [005]逗号表达式
    [JavaScript]转--如何让JS代码高大上
    [009]C---关于输出文本的打印问题
    [008]C---gcc环境下的一个编译器版本问题
    PlayMaker 状态机FSM重用
  • 原文地址:https://www.cnblogs.com/wangjq19920210/p/11951229.html
Copyright © 2011-2022 走看看