-
Notifications
You must be signed in to change notification settings - Fork 138
Description
Hi everyone, I am investigating intermittent failures in a Django application when performing cache operations during Celery task execution which only emit error codes that don't seem to be documented. Would someone please clarify what these error codes mean? Is there some logical mapping of them to libmemcached errors?
Others have reported confusion about these error codes which supports my belief that they are not (clearly) documented anywhere. Clarifying this would be very helpful for users of this package.
Here are some examples of the error codes and cache operations:
error 3 from memcached_get
error 15 from memcached_get
error 15 from memcached_delete
error 21 from memcached_set
error 26 from memcached_get
error 47 from memcached_set
These are the package versions I'm using:
django = 1.11.29
pylibmc = 1.6.3
libmemcached = 1.1.4-1
celery = 4.4.7
And this is my Django cache configuration, note that I am using a single cache host that's in a Docker container on the same machine as my Django application:
MEMCACHED_HOST = os.environ.get('MEMCACHED_HOST', 'memcached')
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.PyLibMCCache',
'LOCATION': '{}:11211'.format(MEMCACHED_HOST),
}
}