Closed
Bug 674067
Opened 14 years ago
Closed 14 years ago
[pamo] Switch to pylibmc
Categories
(mozilla.org Graveyard :: Server Operations, task)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jbalogh, Assigned: oremj)
Details
pylibmc is a wrapper around libmemcached (C lib) so it serializes/deserializes data from memcached faster. This should help our CPU load and response time.
1. Build/install pyblibmc as a system lib (http://pypi.python.org/pypi/pylibmc).
2. Remove CACHE_BACKEND from settings_local.py
3. Add this to settings_local.py instead:
CACHES = {
'default': {
# 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'BACKEND': 'django.core.cache.backends.memcached.PyLibMCCache',
'LOCATION': [
'10.2.81.12:11211',
],
'TIMEOUT': 500,
},
}
Django 1.3 replaced CACHE_BACKEND with the CACHES dict. The first (commented-out) backend would make our setup identical to the current scheme. The second backend switches to pylibmc.
I'd like to roll this out on prod separately from the move to phx so we can measure the improvement, but we can switch -dev as soon as you're ready.
I built pylibmc 1.2 against libmemcached 0.43 and zamboni runs fine locally.
| Assignee | ||
Comment 1•14 years ago
|
||
We have to roll different packages for RHEL 5 and RHEL 6. Since PHX is going to be RHEL 6 I'm just going to make this bug dependent on the PHX move.
Assignee: server-ops → jeremy.orem+bugs
| Reporter | ||
Comment 2•14 years ago
|
||
Please install the rpm on hudson as well.
Comment 3•14 years ago
|
||
and khan. we should keep the whole stack consistent.
| Assignee | ||
Comment 4•14 years ago
|
||
Both services will need to be moved to a RHEL 6 server to be consistent.
| Assignee | ||
Comment 5•14 years ago
|
||
Switched to pylibmc on dev.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Updated•10 years ago
|
Product: mozilla.org → mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•