Freeze Break Request: point pkgdb2 memcached config to memcached01

Pierre-Yves Chibon pingou at pingoured.fr
Thu Nov 20 15:01:35 UTC 2014


On Thu, Nov 20, 2014 at 12:54:57PM +0100, Pierre-Yves Chibon wrote:
> Hi all,
> 
> Looking into the configuration of dogpile for elections 2.4 this morning I found
> out that dogpile is incorrectly configured for pkgdb2.
> 
> Below is the change I would like to apply and run to fix this:
> 
> diff --git a/ roles/pkgdb2/templates/pkgdb2.cfg b/ roles/pkgdb2/templates/pkgdb2.cfg
> index 828d41d..85885fb 100644
> --- a/ roles/pkgdb2/templates/pkgdb2.cfg        
> +++ b/ roles/pkgdb2/templates/pkgdb2.cfg        
> @@ -29,7 +29,7 @@ ADMIN_GROUP = ['sysadmin-main', 'cvsadmin']
>  PKGDB2_CACHE_BACKEND = 'dogpile.cache.memcached'
>  PKGDB2_CACHE_KWARGS = {
>      'arguments': {
> -        'url': "127.0.0.1:11211",
> +        'url': "memcached01:11211",
>      }
>  }

After discussing with Ralph, he pointed out we should activate the
distributed_lock as we have multiples processes querying the same memcached
servers. In addition, Ralph suggested that we use both memcached01 and
memcached02 servers instead of relying on one only.

The diff on the pkgdb2 config becomes:
diff --git a/ roles/pkgdb2/templates/pkgdb2.cfg b/ roles/pkgdb2/templates/pkgdb2.cfg
index 828d41d..cd8e862 100644
--- a/ roles/pkgdb2/templates/pkgdb2.cfg        
+++ b/ roles/pkgdb2/templates/pkgdb2.cfg        
@@ -29,7 +29,8 @@ ADMIN_GROUP = ['sysadmin-main', 'cvsadmin']
 PKGDB2_CACHE_BACKEND = 'dogpile.cache.memcached'
 PKGDB2_CACHE_KWARGS = {
     'arguments': {
-        'url': "127.0.0.1:11211",
+        'url': ["memcached01:11211", "memcached02:11211"],
+        'distributed_lock': True,
     }
 }


Pierre
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <http://lists.fedoraproject.org/pipermail/infrastructure/attachments/20141120/e7dbcea8/attachment.sig>


More information about the infrastructure mailing list