Stage mozillaservice.org switch caching to memcached via config update

RESOLVED FIXED

Status

mozilla.org Graveyard
Server Operations
--
critical
RESOLVED FIXED
9 years ago
3 years ago

People

(Reporter: ozten, Assigned: oremj)

Tracking

Details

Attachments

(2 attachments)

(Reporter)

Description

9 years ago
Created attachment 382790 [details]
Sample config

We should use memcached in prod. Pleases create
web/application/config/cache.php
and update it's memcached settings.

This is standard Kohana Cache settings, you can see similar ones one stage/prod of crash-stats. I know prod uses 3 memcached servers.

Attached is a blank config.
(Assignee)

Updated

9 years ago
Assignee: server-ops → oremj
(Assignee)

Updated

9 years ago
Attachment #382790 - Attachment mime type: application/octet-stream → text/plain
(Assignee)

Comment 1

9 years ago
How do I point it to a memcache server?
(Reporter)

Comment 2

9 years ago
If it's one server on localhost default port. It will work automagically.

Otherwise - please refer to Aravind or a crash-stats config. I've only done this for the default setup. Sorry.
(Reporter)

Comment 3

9 years ago
Created attachment 382818 [details]
2nd config file for memcache server

Actually I forgot... I DO know how this works. Attached is a second config. Place this in the same dir.
(Assignee)

Comment 4

9 years ago
Which filename do I use for the 2nd config? Can I combine the two?
(Reporter)

Comment 5

9 years ago
no. please end up with

mozillaservice.org/trunk/web/application/config/cache.php
mozillaservice.org/trunk/web/application/config/cache_memcache.php
  
cache.php sets the "driver" to memcache
then the driver config is loaded - cache_memcache.php

Sorry for the confusion.
(Assignee)

Comment 6

9 years ago
Done. We should probably have .dist files for all these configs checked in to svn. Also, I've had to locally modify:
M       bin/update-metrics.sh
M       web/application/config/routes.php
M       web/application/config/config.php
M       web/index.php

We should probably remove those from svn and move them to dir/filename.dist, so they don't end up conflicting down the road.
Status: NEW → RESOLVED
Last Resolved: 9 years ago
Resolution: --- → FIXED
(Reporter)

Comment 7

9 years ago
Thanks much!

(In reply to comment #6)
I have been updating the INSTALL.txt and have an environment.php-prod I'm waiting to check-in.

But I don't understand your 4 edits. What did you have to change? What can I do to help? Do you want to send me a diff and I will create -dist files?
(Assignee)

Comment 8

9 years ago
Turns out only 2 of the files have actual changes:
Index: bin/update-metrics.sh
===================================================================
--- bin/update-metrics.sh	(revision 27629)
+++ bin/update-metrics.sh	(working copy)
@@ -1,4 +1,4 @@
 #!/bin/bash
-export CRON_PATH=/home/moservice/mozillaservice.org
+export CRON_PATH=/data/www/mozillaservice.org
 export PYTHONPATH=$CRON_PATH/bin
Index: web/application/config/config.php
===================================================================
--- web/application/config/config.php	(revision 27629)
+++ web/application/config/config.php	(working copy)
@@ -4,7 +4,7 @@
  * then a full URL will be used, eg: http://localhost/kohana/. If it only includes
  * the path, and a site_protocol is specified, the domain will be auto-detected.
  */
-$config['site_domain'] = 'takeaction.ubuntu';
+$config['site_domain'] = 'mozillaservice.stage.mozilla.com';
 
 /**
  * Force a default protocol to be used by the site. If no site_protocol is
(Reporter)

Comment 9

9 years ago
Okay, will do. I imagine you have some other processes for Sekrit stuff.
Product: mozilla.org → mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.