Re: Freeze Break Request: point pkgdb2 memcached config to memcached01

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Attachment: pgpdZHxHBRp5k.pgp
Description: PGP signature

_______________________________________________
infrastructure mailing list
infrastructure@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/infrastructure

[Index of Archives]     [Fedora Development]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux