Memcached connections growing beyond max_memcache_connections parameter
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
Fix Released
|
High
|
Unassigned |
Bug Description
As of https:/
[pportant@dhcp31-22 ~]$ lsof -a -d 1-99999 -p 7959
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
swift-pro 7959 pportant 1u CHR 1,3 0t0 4942 /dev/null
swift-pro 7959 pportant 2u CHR 1,3 0t0 4942 /dev/null
swift-pro 7959 pportant 3u unix 0xffff8800058eee00 0t0 523001 socket
swift-pro 7959 pportant 4u IPv4 523002 0t0 TCP *:webcache (LISTEN)
swift-pro 7959 pportant 6u unix 0xffff880025cd4380 0t0 523067 socket
swift-pro 7959 pportant 7u unix 0xffff88003c1dae00 0t0 523072 socket
swift-pro 7959 pportant 8u unix 0xffff88003c1db880 0t0 523073 socket
swift-pro 7959 pportant 9u unix 0xffff88003c1dbc00 0t0 523080 socket
swift-pro 7959 pportant 10u unix 0xffff88003c1db500 0t0 523081 socket
swift-pro 7959 pportant 11u unix 0xffff880034e86a80 0t0 523071 socket
swift-pro 7959 pportant 12u IPv4 523626 0t0 TCP localhost:
swift-pro 7959 pportant 14u IPv4 545103 0t0 TCP localhost:
swift-pro 7959 pportant 15u IPv4 545105 0t0 TCP localhost:
swift-pro 7959 pportant 16u IPv4 545112 0t0 TCP localhost:
swift-pro 7959 pportant 17u IPv4 545110 0t0 TCP localhost:
swift-pro 7959 pportant 18u IPv4 545132 0t0 TCP localhost:
swift-pro 7959 pportant 19u IPv4 545134 0t0 TCP localhost:
swift-pro 7959 pportant 20u IPv4 545136 0t0 TCP localhost:
swift-pro 7959 pportant 21u IPv4 545138 0t0 TCP localhost:
swift-pro 7959 pportant 22u IPv4 545173 0t0 TCP localhost:
swift-pro 7959 pportant 23u IPv4 545143 0t0 TCP localhost:
swift-pro 7959 pportant 24u IPv4 545180 0t0 TCP localhost:
swift-pro 7959 pportant 26u IPv4 545185 0t0 TCP localhost:
swift-pro 7959 pportant 325u IPv4 546078 0t0 TCP localhost:
swift-pro 7959 pportant 326u IPv4 546080 0t0 TCP localhost:
swift-pro 7959 pportant 327u IPv4 546082 0t0 TCP localhost:
swift-pro 7959 pportant 328u IPv4 546084 0t0 TCP localhost:
swift-pro 7959 pportant 329u IPv4 546086 0t0 TCP localhost:
swift-pro 7959 pportant 330u IPv4 546088 0t0 TCP localhost:
swift-pro 7959 pportant 331u IPv4 546090 0t0 TCP localhost:
swift-pro 7959 pportant 332u IPv4 546092 0t0 TCP localhost:
swift-pro 7959 pportant 333u IPv4 546094 0t0 TCP localhost:
swift-pro 7959 pportant 334u IPv4 546096 0t0 TCP localhost:
swift-pro 7959 pportant 335u IPv4 546098 0t0 TCP localhost:
swift-pro 7959 pportant 685u IPv4 537750 0t0 TCP localhost:
swift-pro 7959 pportant 731u IPv4 543256 0t0 TCP localhost:
swift-pro 7959 pportant 732u IPv4 543258 0t0 TCP localhost:
swift-pro 7959 pportant 734u IPv4 543262 0t0 TCP localhost:
swift-pro 7959 pportant 735u IPv4 543264 0t0 TCP localhost:
swift-pro 7959 pportant 736u IPv4 543266 0t0 TCP localhost:
swift-pro 7959 pportant 737u IPv4 543268 0t0 TCP localhost:
swift-pro 7959 pportant 744u IPv4 543283 0t0 TCP localhost:
swift-pro 7959 pportant 745u IPv4 543285 0t0 TCP localhost:
swift-pro 7959 pportant 746u IPv4 543287 0t0 TCP localhost:
swift-pro 7959 pportant 748u IPv4 543291 0t0 TCP localhost:
swift-pro 7959 pportant 749u IPv4 543293 0t0 TCP localhost:
swift-pro 7959 pportant 750u IPv4 543295 0t0 TCP localhost:
swift-pro 7959 pportant 753u IPv4 543301 0t0 TCP localhost:
swift-pro 7959 pportant 755u IPv4 543305 0t0 TCP localhost:
swift-pro 7959 pportant 756u IPv4 543307 0t0 TCP localhost:
swift-pro 7959 pportant 759u IPv4 543313 0t0 TCP localhost:
swift-pro 7959 pportant 760u IPv4 543315 0t0 TCP localhost:
swift-pro 7959 pportant 762u IPv4 543319 0t0 TCP localhost:
swift-pro 7959 pportant 764u IPv4 543323 0t0 TCP localhost:
swift-pro 7959 pportant 767u IPv4 543329 0t0 TCP localhost:
swift-pro 7959 pportant 770u IPv4 543336 0t0 TCP localhost:
swift-pro 7959 pportant 772u IPv4 543340 0t0 TCP localhost:
swift-pro 7959 pportant 774u IPv4 543344 0t0 TCP localhost:
swift-pro 7959 pportant 775u IPv4 543346 0t0 TCP localhost:
swift-pro 7959 pportant 777u IPv4 543350 0t0 TCP localhost:
swift-pro 7959 pportant 778u IPv4 543352 0t0 TCP localhost:
swift-pro 7959 pportant 780u IPv4 543356 0t0 TCP localhost:
swift-pro 7959 pportant 781u IPv4 543358 0t0 TCP localhost:
Run on a Fedora 19 SAIO using the patched code for https:/
Changed in swift: | |
milestone: | none → 1.9.3-rc1 |
importance: | Undecided → High |
Changed in swift: | |
status: | New → In Progress |
Changed in swift: | |
status: | Fix Committed → Fix Released |
Changed in swift: | |
milestone: | 1.10.0-rc1 → 1.10.0 |
Reviewed: https:/ /review. openstack. org/49739 github. com/openstack/ swift/commit/ 6607beab0dc8043 251b490471761fa 2dd85f2816
Committed: http://
Submitter: Jenkins
Branch: master
commit 6607beab0dc8043 251b490471761fa 2dd85f2816
Author: Peter Portante <email address hidden>
Date: Fri Oct 4 08:04:42 2013 -0400
Don't apply timeout to Pool.get operation (leaks)
The connection timeout to a memcache server is performed by using the
"with Timeout()" construct over the sock.connect() call in the
.create() method. In addition, the same construct was being applied to
the Pool.get() call in ._get_conns().
If the maximum number of connections was already created, and the
Pool.get() called took longer than the connect timeout, then the error
handling path would add a place holder to the connection
pool. Eventlet's Pool class allows for additional items to be added to
the pool, over and above the max_size setting. This additional place
holder will eventually be pulled and a new connection created to take
its place.
The fix is to remove the timeout construct in the _get_conns() method.
In addition, we also apply the unit test patch mentioned in the review /review. openstack. org/45134, paste.openstack .org/show/ 47288/.
comments for Patch Set 6 of https:/
located at http://
Fixes bug 1235027
Change-Id: I786cabefe3e8dd f7d92feb7ebc7cf b613d60a1da
Signed-off-by: Peter Portante <email address hidden>