Last active
October 7, 2015 09:21
-
-
Save kentarosasaki/a0f3ef2da05c8a17259a to your computer and use it in GitHub Desktop.
OpenStack HorizonでなぜかMemcachedが使われない場合の対処法 ref: http://qiita.com/kentarosasaki/items/d241baa2721170637de2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CACHES = { | |
'default': { | |
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', | |
'LOCATION': '127.0.0.1:11211', | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ grep SESSION_ENGINE /usr/share/openstack-dashboard/settings.py | |
SESSION_ENGINE = 'django.contrib.sessions.backends.signed_cookies' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SESSION_ENGINE = 'django.contrib.sessions.backends.cache' | |
CACHES = { | |
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache' | |
'LOCATION': '127.0.0.1:11211', | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ telent 127.0.0.1 11211 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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