Add memcached_backend option in keystone.conf

Bug #1360553 reported by Kui Shi
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Invalid
Wishlist
Kui Shi

Bug Description

If we choose memcached as the token backend driver, we should set proper servers in '[memcache]' section of keystone.conf.

For the memcache backend, there are 3 memcached client supported by dogpile,
---------------------------------------------------
# pydoc dogpile.cache.backends.memcached

   dogpile.cache.api.CacheBackend(__builtin__.object)
        GenericMemcachedBackend
            BMemcachedBackend
            MemcachedBackend(MemcacheArgs, GenericMemcachedBackend)
            PylibmcBackend(MemcacheArgs, GenericMemcachedBackend)

----------------------------------------------------

In keystone, they are listed in keystone/common/kvs/backends/memcached.py:

VALID_DOGPILE_BACKENDS = dict(pylibmc=memcached.PylibmcBackend,
                              bmemcached=memcached.BMemcachedBackend,
                              memcached=memcached.MemcachedBackend)

By default, memcached will be used. The "memcached_backend" option will determine which backend to use.
But there is no simple to pass the "memcached_backend" option.

Tags: memcached
Kui Shi (skuicloud)
Changed in keystone:
assignee: nobody → Kui Shi (skuicloud)
tags: added: memcache
tags: added: memcached
removed: memcache
Revision history for this message
Morgan Fainberg (mdrnstm) wrote :

The idea behind the base memcache token driver is that it makes some basic decisions for you. If you would like to utilize a more in-depth dogpile configuration, ideally you would do the raw "kvs" configuration passing extra dogpile config options to the backend (it's not user friendly to do so).

This change would be good making the UX better when configuring the use of memcached as a token persistence store.

Changed in keystone:
importance: Undecided → Wishlist
status: New → Triaged
Changed in keystone:
status: Triaged → In Progress
Dolph Mathews (dolph)
Changed in keystone:
status: In Progress → Incomplete
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on keystone (master)

Change abandoned by Dolph Mathews (<email address hidden>) on branch: master
Review: https://review.openstack.org/122037
Reason: Abandoning due to inactivity and failing tests.

Revision history for this message
Dolph Mathews (dolph) wrote :

I've abandoned the referenced changed due to inactivity and failing tests. If this is still an issue, please reset the status.

David Stanek (dstanek)
description: updated
Revision history for this message
Morgan Fainberg (mdrnstm) wrote :

Was incomplete ages ago, inactive and generally not needed now with oslo_cache etc.

Changed in keystone:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.