[openstack-dev] [swift] statsd client opening a new socket everytime a stats is updated
Tatiana Al-Chueyr Martins
tatiana.alchueyr at gmail.com
Tue Jul 15 20:22:06 UTC 2014
Hello!
I'm new to both Swift and OpenStack, I hope you can help me.
Considering statsd is enabled, each time something is logged, a new socket
is being opened.
At least, this is what I understood from the implementation and usage of
StatsdClient at:
- swift/common/utils.py
- swift/common/middleware/proxy_logging.py
If this analysis is correct: is there any special reason for this behavior
(open a new socket each request)?
We could significantly improve performance reusing the same socket.
Would you be interested in a patch in this regard?
Best,
--
Tatiana Al-Chueyr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140715/2cd21c58/attachment.html>
More information about the OpenStack-dev
mailing list