Questions tagged [pylibmc]

pylibmc is a Python client for memcached written in C.

24 questions
1
vote
0 answers

Memcached servers keeps failing

Everyday I get an error email from my python flask app with the following error: WriteError: error 5 from memcached_set: (54648992) SERVER HAS FAILED AND IS DISABLED UNTIL TIMED RETRY, host: 127.0.0.1:11211 -> libmemcached/connect.cc:612 Memcached…
TheOne
  • 10,819
  • 20
  • 81
  • 119
1
vote
1 answer

MemcachedError: error 31 A TIMEOUT OCCURRED'

I have a live server instance running on AWS,I took the AMI of current running instance and with that I created an another instance and I configured all the settings and the web server is nginx but when I enter my IP address I get memcached error. …
Akhi
  • 221
  • 1
  • 3
  • 14
1
vote
1 answer

Alternative for pylibmc cache backend in django 1.7

I have recently migrated from django 1.6 to 1.7 which has the following changes: If you instantiate cache backends directly, be aware that they aren’t thread-safe any more, as django.core.cache.caches now yields different instances per…
1
vote
0 answers

get() set() memcached listening on UDP using Python

Question: How to get set, memcached listening on UDP only, using Python (any of the production level Python bindings) What I have done/tried so far: Making the memcached listen on UDP only - I specified the OPTIONS in memcached config: OPTIONS="-p…
Nabeel Ahmed
  • 18,328
  • 4
  • 58
  • 63
1
vote
0 answers

Install pylibmc on windows

installing pylibmc for python in Windows. I am running pip install pylibmc, however, it's giving me this error: error: command 'C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\B IN\cl.exe' failed with exit status 2
sundevil
  • 11
  • 4
0
votes
1 answer

issue in installing pylibmodbus and cffi

I am not able to install pylibmodbus library as cffi is not installed. If I try to install cffi I get the following issue pi@raspberrypi:~ $ pip3 install cffi Collecting cffi Using cached…
shan
  • 9
  • 1
  • 6
0
votes
1 answer

Not able to install python-libmemcached on windows

I have been trying to install pylibmc package in window's environment but for that it requires python-libmemcached package to be install. So i tried installing the same but giving error: Collecting python-libmemcached Downloading…
abhishek
  • 301
  • 1
  • 5
  • 29
0
votes
0 answers

Django Application with AWS ElastiCache, 500 Errors

I setup Django Cache with Memcached (with pylibmc backend). My settings look like this: CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.memcached.PyLibMCCache', 'LOCATION': 'LOCATION:PORT', } } I am only…
0
votes
1 answer

pylibmc - how to support values greater than 1 MB

I'm already running memcached with the -I 3m option. But do I need to tell pylibmc about the size change? I tried this: self.cache = memcache.Client(servers, binary=True, server_max_value_length=(1024 * 1024 * 2), behaviors={"tcp_nodelay":…
Greg
  • 45,306
  • 89
  • 231
  • 297
1
2