mtlpy / pyramid_metrics Goto Github PK
View Code? Open in Web Editor NEWPerformance metrics for Pyramid using StatsD
Home Page: https://pypi.python.org/pypi/pyramid_metrics
Performance metrics for Pyramid using StatsD
Home Page: https://pypi.python.org/pypi/pyramid_metrics
I noticed this using uwsgi to host our application. Now I do not think it is uwsgi related.
lsof -p <mypid>
shows many UDP listeners
...
uwsgi_pyt 8855 myapp 1014u IPv4 61164162 0t0 UDP *:37440
uwsgi_pyt 8855 myapp 1015u IPv4 61164204 0t0 UDP *:50661
uwsgi_pyt 8855 myapp 1016u IPv4 61165045 0t0 UDP *:59752
uwsgi_pyt 8855 myapp 1017u IPv4 61164224 0t0 UDP *:49717
uwsgi_pyt 8855 myapp 1018u IPv4 61164375 0t0 UDP *:46519
uwsgi_pyt 8855 myapp 1019u IPv4 61164441 0t0 UDP *:47617
uwsgi_pyt 8855 myapp 1020u IPv4 61165421 0t0 UDP *:50587
uwsgi_pyt 8855 myapp 1021u IPv4 61165334 0t0 UDP *:48802
uwsgi_pyt 8855 myapp 1022u IPv4 61165425 0t0 UDP *:40760
uwsgi_pyt 8855 myapp 1023u IPv4 61165372 0t0 UDP *:47147
...
The per request StatsClient object may get garbage collected, but the socket listener resource is never cleaned up. This ultimately causes us to run out of file descriptors.
Installing v0.3.0 which is on pypi (or v0.3.1 from GH) fails with a substitution error:
bash-4.4# pip install https://github.com/ludia/pyramid_metrics/archive/v0.3.1.zip
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Collecting https://github.com/ludia/pyramid_metrics/archive/v0.3.1.zip
Downloading https://github.com/ludia/pyramid_metrics/archive/v0.3.1.zip
| 317kB 23.0MB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-req-build-QkpX0S/setup.py", line 43, in <module>
'de = devup.app:cli',
File "/opt/conda/envs/dlweb/lib/python2.7/distutils/core.py", line 124, in setup
dist.parse_config_files()
File "/opt/conda/envs/dlweb/lib/python2.7/distutils/dist.py", line 397, in parse_config_files
val = parser.get(section,opt)
File "/opt/conda/envs/dlweb/lib/python2.7/ConfigParser.py", line 623, in get
return self._interpolate(section, option, value, d)
File "/opt/conda/envs/dlweb/lib/python2.7/ConfigParser.py", line 669, in _interpolate
option, section, rawval, e.args[0])
ConfigParser.InterpolationMissingOptionError: Bad value substitution:
section: [zest.releaser]
option : tag-format
key : version
rawval : v%%(version)s
----------------------------------------
Installing from the latest commit (e9f1325) works fine. Is it possible to make a release with this fix to pypi?
Additionally, I'm using statsd 3.2.2 and it seems to work ok with pyramid_metrics, however the setup.py file for pyramid_metrics forces <2.2 -- is there any reason for this or is it just out of date?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.