From c94f14be3d4bd8e80925116141150be431d78399 Mon Sep 17 00:00:00 2001 From: Matthew Treinish Date: Wed, 1 Jun 2016 17:04:53 -0400 Subject: [PATCH] Use the distributed memcached locked dbm cache backend This commit switches the backend used on the api server to be the dbm file backend with using memcached for distributed locking. This enables having an async worker, but avoids the size limitations with storing the cached data in memcached directly. Change-Id: If506bbca1eb867135430c7f435c5e4a1db1a0232 Depends-On: Ied241ca1762c62a047bd366d7bd105028a884f30 --- manifests/api.pp | 2 +- templates/openstack-health.conf.erb | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/manifests/api.pp b/manifests/api.pp index cf2bfaf..54a797b 100644 --- a/manifests/api.pp +++ b/manifests/api.pp @@ -105,7 +105,7 @@ class openstack_health::api( } exec { 'requirements': - command => "${virtualenv_dir}/bin/pip install -U -r ${source_dir}/requirements.txt pylibmc", + command => "${virtualenv_dir}/bin/pip install -U -r ${source_dir}/requirements.txt", require => [ Python::Virtualenv[$virtualenv_dir], Package['libmemcached-dev'], diff --git a/templates/openstack-health.conf.erb b/templates/openstack-health.conf.erb index d9921f3..9182d72 100644 --- a/templates/openstack-health.conf.erb +++ b/templates/openstack-health.conf.erb @@ -1,7 +1,6 @@ [default] query_dir = <%= @elastic_recheck_dir %>/queries cache_expiration = <%= @cache_expiration %> -cache_backend = dogpile.cache.pylibmc cache_url = 127.0.0.1 db_uri = <%= scope.lookupvar("openstack_health::api::db_uri") %> <% if @ignored_keys.length > 0 -%>