Heroku Memcachier服务器错误

时间:2015-03-02 17:16:24

标签: python django heroku memcached newrelic

最近我遇到了导致Heroku服务器崩溃的定期错误,我相信它来自MemCachier插件。日志如下:

» 09:43:19.038 2015-03-02 15:44:00.567613+00:00 app web.2 - - Traceback (most recent call last): File "/app/.heroku/python/lib/python2.7/site-packages/django_pylibmc/memcached.py", line 106, in set MIN_COMPRESS) File "/app/.heroku/python/lib/python2.7/site-packages/newrelic-2.18.1.15/NX/newrelic/api/memcache_trace.py", line 43, in _nr_wrapper_memcache_trace_ return wrapped(*args, **kwargs) MemcachedError: error 47 from memcached_set: SERVER HAS FAILED AND IS DISABLED UNTIL TIMED RETRY, host: mc5.dev.ec2.memcachier.com:11211 -> libmemcached/connect.cc:592

» 09:44:13.053 2015-03-02 15:44:00.305034+00:00 app web.2 - - Traceback (most recent call last): File "/app/.heroku/python/lib/python2.7/site-packages/django_pylibmc/memcached.py", line 96, in get return super(PyLibMCCache, self).get(key, default, version) File "/app/.heroku/python/lib/python2.7/site-packages/django/core/cache/backends/memcached.py", line 64, in get val = self._cache.get(key) File "/app/.heroku/python/lib/python2.7/site-packages/newrelic-2.18.1.15/NX/newrelic/api/memcache_trace.py", line 43, in _nr_wrapper_memcache_trace_ return wrapped(*args, **kwargs) HostLookupError: error 2 from memcached_get(:1:django.contrib.sessions.cache): getaddrinfo() or getnameinfo() HOSTNAME LOOKUP FAILURE, Name or service not known, host: mc5.dev.ec2.memcachier.com:11211 -> libmemcached/connect.cc:179

我相信第二个错误日志的起源是因为在错误#1之后缓存查找不可用 - 但我很难调查第一个错误。

目前我们正在研究Heroku插件的开发计划,所以这可能是因为用完了允许的连接?除了加入付费计划之外,有没有办法确定这个?

也很好奇为什么NewRelic出现在各地。他们必须包装缓存调用才能跟踪它们吗?

我搜索了很多this is the most relevant article I could find

非常感谢任何帮助!

0 个答案:

没有答案