From ffff834edbd254650e35b8734d198433013cd9cc Mon Sep 17 00:00:00 2001 From: Flavio Percoco Date: Tue, 8 Sep 2015 13:35:53 +0200 Subject: [PATCH] Enable pooling for redis' job Now that the sqlalchemy management backend is complete, make sure it's enabled for the redis gate since redis doesn't have support for the managment API. Change-Id: I65d6c38ec13026251a8aeb346d5248cf81de39e5 --- devstack/plugin.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/devstack/plugin.sh b/devstack/plugin.sh index 6ac0f239d..f2f3d64fe 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -135,9 +135,10 @@ function configure_zaqar { configure_auth_token_middleware $ZAQAR_CONF zaqar $ZAQAR_AUTH_CACHE_DIR + iniset $ZAQAR_CONF DEFAULT pooling True + iniset $ZAQAR_CONF 'pooling:catalog' enable_virtual_pool True + if [ "$ZAQAR_BACKEND" = 'mongodb' ] ; then - iniset $ZAQAR_CONF DEFAULT pooling True - iniset $ZAQAR_CONF 'pooling:catalog' enable_virtual_pool True iniset $ZAQAR_CONF drivers message_store mongodb iniset $ZAQAR_CONF 'drivers:message_store:mongodb' uri mongodb://localhost:27017/zaqar iniset $ZAQAR_CONF 'drivers:message_store:mongodb' database zaqar @@ -147,6 +148,10 @@ function configure_zaqar { iniset $ZAQAR_CONF 'drivers:management_store:mongodb' database zaqar_mgmt configure_mongodb elif [ "$ZAQAR_BACKEND" = 'redis' ] ; then + iniset $ZAQAR_CONF drivers management_store sqlalchemy + iniset $ZAQAR_CONF 'drivers:management_store:sqlalchemy' uri sqlite:// + iniset $ZAQAR_CONF 'drivers:management_store:sqlalchemy' database zaqar_mgmt + iniset $ZAQAR_CONF drivers message_store redis iniset $ZAQAR_CONF 'drivers:message_store:redis' uri redis://localhost:6379 iniset $ZAQAR_CONF 'drivers:message_store:redis' database zaqar