Difference between revisions of "Setup Multi Instance Memcache"

From Brian Nelson Ramblings
Jump to: navigation, search
(Created page with "==Setting Up a Multi Instance Memcached Configuration== Lets first get the basic memcached instance installed yum install memcached Now lets create home for the memcached ...")
 
(Setting Up a Multi Instance Memcached Configuration)
Line 7: Line 7:
 
Now lets create home for the memcached instance files
 
Now lets create home for the memcached instance files
 
  mkdir /etc/memcached-multi
 
  mkdir /etc/memcached-multi
 +
 +
Now lets create to instances the default 11211 and 11212 ports
 +
 +
vim memcached_11211
 +
 +
And add the following to the memcached_11211
 +
 +
PORT="11211"
 +
USER="memcached"
 +
MAXCONN="1028"
 +
CACHESIZE="64"
 +
OPTIONS=""
 +
 +
Then copy that to memcached_11212 file
 +
cat memcached_11211 > memcached_11212
 +
 +
vim memcached_11212
 +
 +
Change the file to following, adjusting the port
 +
 +
PORT="11212"
 +
USER="memcached"
 +
MAXCONN="1028"
 +
CACHESIZE="64"
 +
OPTIONS=""

Revision as of 02:42, 26 March 2013

Setting Up a Multi Instance Memcached Configuration

Lets first get the basic memcached instance installed

yum install memcached

Now lets create home for the memcached instance files

mkdir /etc/memcached-multi

Now lets create to instances the default 11211 and 11212 ports

vim memcached_11211

And add the following to the memcached_11211

PORT="11211"
USER="memcached"
MAXCONN="1028"
CACHESIZE="64"
OPTIONS=""

Then copy that to memcached_11212 file

cat memcached_11211 > memcached_11212
vim memcached_11212

Change the file to following, adjusting the port

PORT="11212"
USER="memcached"
MAXCONN="1028"
CACHESIZE="64"
OPTIONS=""