Stage switch caching to memcached via config update


Status Graveyard
Server Operations
9 years ago
3 years ago


(Reporter: ozten, Assigned: oremj)




(2 attachments)



9 years ago
Created attachment 382790 [details]
Sample config

We should use memcached in prod. Pleases create
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.


9 years ago
Assignee: server-ops → oremj


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

Comment 1

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

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.

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.

Comment 4

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

Comment 5

9 years ago
no. please end up with
cache.php sets the "driver" to memcache
then the driver config is loaded - cache_memcache.php

Sorry for the confusion.

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/
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.
Last Resolved: 9 years ago
Resolution: --- → FIXED

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?

Comment 8

9 years ago
Turns out only 2 of the files have actual changes:
Index: bin/
--- bin/	(revision 27629)
+++ bin/	(working copy)
@@ -1,4 +1,4 @@
-export CRON_PATH=/home/moservice/
+export CRON_PATH=/data/www/
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'] = '';
  * Force a default protocol to be used by the site. If no site_protocol is

Comment 9

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