[openstack-dev] [swift] statsd client opening a new socket everytime a stats is updated
John Dickinson
me at not.mn
Tue Jul 15 21:09:28 UTC 2014
We've been chatting in IRC, but for the mailing list archives, yes! we'd love to see patches to improve this.
--John
On Jul 15, 2014, at 1:22 PM, Tatiana Al-Chueyr Martins <tatiana.alchueyr at gmail.com> wrote:
> 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
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140715/f3194904/attachment.pgp>
More information about the OpenStack-dev
mailing list