Skip to content

Instantly share code, notes, and snippets.

@kentarosasaki
Last active October 7, 2015 09:21
Show Gist options
  • Save kentarosasaki/a0f3ef2da05c8a17259a to your computer and use it in GitHub Desktop.
Save kentarosasaki/a0f3ef2da05c8a17259a to your computer and use it in GitHub Desktop.
OpenStack HorizonでなぜかMemcachedが使われない場合の対処法 ref: http://qiita.com/kentarosasaki/items/d241baa2721170637de2
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': '127.0.0.1:11211',
}
}
$ grep SESSION_ENGINE /usr/share/openstack-dashboard/settings.py
SESSION_ENGINE = 'django.contrib.sessions.backends.signed_cookies'
SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
CACHES = {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache'
'LOCATION': '127.0.0.1:11211',
}
$ telent 127.0.0.1 11211
stats items
STAT items:16:number 3
STAT items:16:age 2994
STAT items:16:evicted 0
STAT items:16:evicted_nonzero 0
STAT items:16:evicted_time 0
STAT items:16:outofmemory 0
STAT items:16:tailrepairs 0
STAT items:16:reclaimed 0
STAT items:16:expired_unfetched 0
STAT items:16:evicted_unfetched 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment