too many connections from zun-api to rabbitmq
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zun |
Fix Released
|
Critical
|
hongbin | ||
Queens |
Fix Committed
|
Critical
|
hongbin |
Bug Description
I was doing performance test on Queens. When I counted the number of connections to rabbitmq, found that zun-api's count was too large.
1 nova-consoleaut
3 nova-scheduler
4 nova-compute
4 zun-compute
5 neutron-dhcp-ag
7 neutron-l3-agen
11 neutron-linuxbr
42 neutron-metadat
80 nova-api
171 nova-conductor
329 neutron-server
3580 zun-api
And it increases as I invoke the zunclient, but never gets down.
Here is my fix:
diff --git a/zun/zun/
index 1f2d43b..ef25881 100644
--- a/zun/zun/
+++ b/zun/zun/
@@ -80,6 +80,8 @@ class RPCHook(
context = state.request.
+ def after(self, state):
+ state.request.
class NoExceptionTrac
"""Workaround rpc.common: deserialize_
diff --git a/zun/zun/
index 157ffb4..2f3656b 100644
--- a/zun/zun/
+++ b/zun/zun/
@@ -112,3 +112,6 @@ class API(object):
def echo(self, message):
+
+ def cleanup(self):
+ self._client.
Changed in zun: | |
assignee: | nobody → 潜禹桥 (qianyuqiao) |
assignee: | 潜禹桥 (qianyuqiao) → nobody |
Changed in zun: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in zun: | |
importance: | High → Critical |
assignee: | nobody → hongbin (hongbin034) |
Fix proposed to branch: master /review. openstack. org/588992
Review: https:/