memcache

3 views
Skip to first unread message

Suhail Doshi

unread,
Oct 4, 2009, 10:51:01 PM10/4/09
to light...@googlegroups.com
Does lightcloud have a method of interfacing WITH memcache? Seems like a good idea.

If so, how? A tiered memory based layer, coupled with a persistent one seems optimal or is this unnecessary with Tokyo related software?

Suhail

--
http://mixpanel.com
Blog: http://blog.mixpanel.com

amix

unread,
Oct 5, 2009, 6:56:42 AM10/5/09
to light...@googlegroups.com
It does, please check out:
http://paste.plurk.com/show/21530/

It should be noted that list function do not work with memcached nodes.

Regards,
Amir

2009/10/5 Suhail Doshi <digital...@gmail.com>:

Suhail Doshi

unread,
Oct 5, 2009, 3:52:18 PM10/5/09
to light...@googlegroups.com
I am a bit confused with that example:

import lightcloud
LIGHT_CLOUD = [
    {
        'system': 'default',
        'node_type': lightcloud.MemcachedNode,

        #Lookup nodes
        'lookup1_A': [ '127.0.0.1:41201', '127.0.0.1:51201' ],

        #Storage nodes
        'storage1_A': [ '127.0.0.1:44201', '127.0.0.1:54201' ]
    },

    ...
}
My current config.py is:

from os import path
DATA_DIR = path.join(path.realpath(path.curdir), "data")
TOKYO_SERVER_PARMS = '#bnum=10000000#fpow=8#opts=ldf'

USE_MASTER = True
DEBUG = False

NODES = {
    #Lookup nodes
    'lookup1_A': { 'id': 1, 'host': '0.0.0.0:41201', 'master': '0.0.0.0:51201' },
    'lookup1_B': { 'id': 2, 'host': '0.0.0.0:51201', 'master': '0.0.0.0:41201' },

    #Storage nodes
    'storage1_A': { 'id': 5, 'host': '0.0.0.0:44201', 'master': '0.0.0.0:54201' },
    'storage1_B': { 'id': 6, 'host': '0.0.0.0:54201', 'master': '0.0.0.0:44201' },
}

I don't I want to make those all node type memcached, I just want one node.

Suhail

Reply all
Reply to author
Forward
0 new messages