Page MenuHomePhabricator

fix nutcracker config in Beta
Closed, ResolvedPublic

Description

/etc/nutcracker/nutcracker.yml on deployment-bastion is missing config sections. It has

memcached:
   auto_eject_hosts: true
   distribution: ketama
   hash: md5
   listen: 127.0.0.1:11212
   preconnect: true
   redis: false
   server_connections: 2
   server_failure_limit: 3
   server_retry_timeout: 30000
   timeout: 250
   servers:
   - 10.68.16.14:11211:1
   - 10.68.16.15:11211:1

but deployment-mediawiki01 has

mc-unix:
  auto_eject_hosts: true
  distribution: ketama
  hash: md5
  listen: /var/run/nutcracker/nutcracker.sock 0666
  preconnect: true
  server_connections: 1
  server_failure_limit: 3
  server_retry_timeout: 30000
  servers:
    - 10.68.16.14:11211:1
    - 10.68.16.15:11211:1
  timeout: 250
memcached:
  auto_eject_hosts: true
  distribution: ketama
  hash: md5
  listen: 127.0.0.1:11212
  preconnect: true
  server_connections: 1
  server_failure_limit: 3
  server_retry_timeout: 30000
  servers:
    - 10.68.16.14:11211:1
    - 10.68.16.15:11211:1
  timeout: 250
session-redis:
  auto_eject_hosts: true
  distribution: ketama
  hash: md5
  listen: 127.0.0.1:6380
  preconnect: true
  redis: true
  redis_auth: Q6dzak4k9vjYjh341fHS
  server_connections: 1
  server_failure_limit: 3
  server_retry_timeout: 30000
  servers:
    - 10.68.16.177:6379:1
    - 10.68.16.231:6379:1
  timeout: 1000

This should work now, because I made CommonSettings.php once again consult $sessionRedis as defined in the realm-specific session.php file. But a proper fix would be to get Nutcracker fully working in Beta, which requires fixing the configuration / Puppetization, as @bd808 notes above.

Event Timeline

greg raised the priority of this task from to Needs Triage.
greg updated the task description. (Show Details)
greg added subscribers: greg, bd808, ori.
thcipriani claimed this task.
thcipriani subscribed.

Nutcracker was seemingly removed from deployment-bastion when it was removed from the mediawiki::init manifest and moved into the role::mediawiki::common manifest (in: https://gerrit.wikimedia.org/r/#/c/149800/)

Seems right based on the timing—patch set merged early August 2014, nutcracker config updated late July 2014:

thcipriani@deployment-bastion:~$ ls -ld /etc/nutcracker/nutcracker.yml 
-r--r--r-- 1 root root 298 Jul 21  2014 /etc/nutcracker/nutcracker.yml

Applying role::mediawiki::commmon to deployment bastion seems to have brought the nutcracker config up-to-date with few side-effects.