W3C home > Mailing lists > Public > public-webplatform@w3.org > September 2013

Re: Is MediaWiki Memcached active?

From: Ryan Lane <rlane32@gmail.com>
Date: Fri, 20 Sep 2013 11:06:19 -0700
Message-ID: <CALKgCA1Xxaz29nXtXeJf9=vh5MRuU-GJ17DBUp7qGtWogCaj+g@mail.gmail.com>
To: Renoir Boulanger <renoir@w3.org>
Cc: List WebPlatform public <public-webplatform@w3.org>
The only stuff that goes into CurrentSettings.php or TestSettings.php is
settings that are specific to test or current. All shared settings go into
Settings.php and if you were to look in there you'd see:

  # Object cache (and session) settings
  $wgObjectCaches['memcached-pecl'] = array(
          'class'      => 'MemcachedPeclBagOStuff',
          #'serializer' => 'igbinary',
          'servers'    => array(
                  '10.4.193.192:11211',
                  '10.4.214.254:11211',
          )
  );

  $wgMainCacheType = 'memcached-pecl';
  $wgParserCacheType = 'memcached-pecl';
  $wgMessageCacheType = 'memcached-pecl';
  $wgMemCachedPersistent = false;
  $wgUseMemCached = true;
  $wgMemCachedTimeout = 250000;
  $wgMemCachedInstanceSize = 3072;
  $wgSessionCacheType = 'memcached-pecl';
  $wgSessionsInObjectCache = true;

The above is a newer way of configuring memcache. I'm not sure how well
it's documented on mediawiki.org, but it uses the pecl memcached client
rather than mediawiki's old php implementation of memcache.

- Ryan


On Fri, Sep 20, 2013 at 10:12 AM, Renoir Boulanger <renoir@w3.org> wrote:

> Hey people
>
> I have a hunch that MediaWiki is not using Memcached at all and I am
> hoping to be wrong on the matter.
>
> I looked at the documentation [0] CurrentSettings.php, the lines
> '$wgMainCacheType    = CACHE_MEMCACHED;' are commented and I would like to
> confirm it is not forgotten as is or it has a reason.
>
> Ryan, can you help me tell me if we have a problem with our current
> MediaWiki setup and memcached?
>
> PS: I am about to install on monitor a phpMemcachedAdmin instance under a
> HTTP password protected folder and probably dig to add memcached to log
> into logStash too.
>
>   [0]: http://www.mediawiki.org/wiki/Memcached,
> http://www.mediawiki.org/wiki/Manual:$wgMainCacheType
>
> Regards,
>
> *Renoir Boulanger * |  Developer operations engineer
> W3C* * |  Web Platform Project <http://www.webplatform.org/>
>
> http://w3.org/people/#renoirbhttps://renoirboulanger.com/<https://renoirboulanger.com/#is>
> ✪  @renoirb <https://github.com/renoirb>
> ~
>
>
>
>
>
Received on Friday, 20 September 2013 18:07:10 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:20:54 UTC