Re: pylibmc vs python-libmemcached vs cmemcache

2009-09-23 Thread David Stanek

On Wed, Sep 23, 2009 at 4:27 PM, Jehiah Czebotar  wrote:
>
> I've been happily using python-memcached as well for a long time and
> have contributed code to it; i am however specifically asking about
> python-libmemcached, the one based on libmemcached not the pure python
> client. (it is unfortunate that those two names are so similar)
>

Any reason you are contemplating moving to a C-based library?


-- 
David
blog: http://www.traceback.org
twitter: http://twitter.com/dstanek


Re: pylibmc vs python-libmemcached vs cmemcache

2009-09-23 Thread David Stanek

On Wed, Sep 23, 2009 at 3:59 PM, Jehiah Czebotar  wrote:
>
> It seems there are 3 memcached libraries for python now that wrap the
> c libmemcached for use in python.
>
> pylibmc - http://lericson.blogg.se/code/category/pylibmc.html
> python-libmemcached - http://code.google.com/p/python-libmemcached/
> cmemcache - http://gijsbert.org/cmemcache/index.html
>
> Is anyone using these in a heavy production environment, are any more
> reliable than any others? I havn't seen much discussion about any of
> these in the list archives.
>
> cmemcache lists some known problems (even important things like
> crashing on disconnects)
> pylibmc seems newer and appears to have the most active development
>
> thoughts?
>

We (at my day job) have been happily using python-memcached[0] in
production for at least a year now. Our sites get a pretty good amount
of traffic. What is your definition of heavy?

[0] http://www.tummy.com/Community/software/python-memcached/

-- 
David
blog: http://www.traceback.org
twitter: http://twitter.com/dstanek


Re: memcached slower than file IO

2009-05-29 Thread David Stanek

On Fri, May 29, 2009 at 2:51 AM, Ved  wrote:
>
> I have a webpage in which I read a text file for processing. My
> benchmark (ab) results show a much higher request / second than
> contents stored and accessed using memcached. And also the number of
> failed request is 0 when I am using disk IO where as when I am using
> memcached the number keeps going higher. What could be the possible
> reasons for memory IO being slower than disk IO, and the failed
> requests.

I think some of your assumptions may be incorrect. If you are using
the same file in every request your OS is probably using a cached copy
in memory. It won't hit the disk every time. While memcached does
store everything in memory which is fast, it transmits data over a
socket which is slow. You are really comparing using local memory vs.
using memory on a different machine.

I use memcached to reduce hits to my database which is much slower
than memcached. Sometimes I also use it to store objects that are
expensive to create. This is just a trade off between CPU and network
access.

-- 
David
blog: http://www.traceback.org
twitter: http://twitter.com/dstanek


Re: Memcached don't serve my ads

2009-05-06 Thread David Stanek

On Tue, May 5, 2009 at 9:47 AM, simpsone...@googlemail.com
 wrote:
>
> Hi, i'm using memcached 1.1.12 and Drupal 5.X with ad modul.
> This was working very well but since i did a mistake and delete my
> vhost.conf file memcached doesn't show my blocks with ads in.
> Are there any important settings that has to be like "open_basedir" or
> something else, that is interrupting to show my ads ?
>
> Are there any hints ?
>

You may be better off asking on the Drupal list since memcached
doesn't serve ads.

-- 
David
blog: http://www.traceback.org
twitter: http://twitter.com/dstanek


Re: memcache-top

2009-04-23 Thread David Stanek

2009/4/23 Jose Celestino :
>
> On Qua, 2009-04-22 at 13:00 -0700, gf wrote:
>> Hi. It's really good idea, but your code is not good, IMHO.
>
> What's wrong with his code? Can you elaborate on that?
>

It uses sane indents and whitespace. What crap.


-- 
David
blog: http://www.traceback.org
twitter: http://twitter.com/dstanek


Re: Maintainer?

2009-04-07 Thread David Stanek

Why not just use this list?

On 4/7/09, Joseph S. Testa II  wrote:
>
> Hi,
>
> I am interested in contacting the maintainer(s) of memcached.  A
> week ago, I sent e-mail to Brad Fitzpatrick, Anatoly Vorobey, and
> Steven Grimm (as they are listed in the packaged AUTHORS /
> CONTRIBUTORS files), but I have not received a response.  Are they
> still the maintainers, or did the responsibility pass to someone else?
>
> Thanks,
> - Joe
>

-- 
Sent from my mobile device

David
blog: http://www.traceback.org
twitter: http://twitter.com/dstanek


Re: Memcached crashing under load

2009-03-15 Thread David Stanek

On Sun, Mar 15, 2009 at 8:49 PM, meppum  wrote:
>
> The script:
> try:
>        import cmemcache as memcache
> except ImportError:
>        import memcache
>
> c = memcache.Client(["127.0.0.1:11211"])
> c.set('abc', '123')
> c.disconnect_all()
>
> for i in range(2):
>        if i % 1000 == 0:
>                print "iteration: %s" % i
>
>        c = memcache.Client(["127.0.0.1:11211"])
>        c.get('abc')
>        c.disconnect_all()
>

This script will not run multiple memcached requests in parallel. Is
that what you were going for?

-- 
David
blog: http://www.traceback.org
twitter: http://twitter.com/dstanek


Re: Memcache serving 24gig a node?

2008-10-31 Thread David Stanek

Spreading across more boxes also makes you more fault tolerant. If one
or two go down your database (or other expensive resource) would still
be OK.


On Fri, Oct 31, 2008 at 8:47 AM, Stephen Johnston
<[EMAIL PROTECTED]> wrote:
> I think the major point of consideration is that if memcached had a "must
> have" upgrade tomorrow. What would the impact of taking down one of those
> 24g instances to upgrade be? If that makes you cringe, then you should
> probably reduce the size of each instance even if you are running just them
> on the same machine.
>
> -Stephen
> On Thu, Oct 30, 2008 at 11:40 PM, Andy Hawkins <[EMAIL PROTECTED]> wrote:
>>
>> I've got around 200 gigs of ram I'm running 6 nodes all set around
>> 24gigs each.
>>
>> Is this appropriate or should I cluster them out?
>>
>> ~@


-- 
David
http://www.traceback.org