I'm not sure you understand the concept of the cache.  I highly recommend
that you do further reading.  What you are suggesting is entirely not the
typical way of using it.

Although there are many ways to use memcached, by trying to get it to do
something it was not designed to do is likely to just end up with
frustration.

For starters, memcache is NOT designed to be able to cache everything.
It is not designed to add more cache servers to the cluster when one gets
full.

By doing things the way you are implying, you are invalidating the actual
useful purpose of memcache which is a DISTRIBUTED HASH TABLE.

Memcache IS designed to be run with multiple instances on multiple servers,
which the clients splitting up requests predictably over all those servers.
Adding an extra server invalidates a good chunk of the data that is already
stored... which although not generally a problem, is the opposite of what
you seem to be trying to do.

On Thu, Nov 20, 2008 at 10:00 PM, Jitendra <[EMAIL PROTECTED]> wrote:

>
> Hi,
> Thanks for the updates.
>
> I can't just predict the amount of data to be stored in the cache. So
> I wan't to start another instance when one is full.
> I found that if I make (evict_to_free=0) then I get (SERVER ERROR)
> when the cache is full.
> So I guess if I will get the (SERVER ERROR) then I can push the
> further data to another cache.
> Appreciate any suggestions on this regard.
>
> I saw the graphs.
> They are really good. We will try to implement those.
>
> Regards
> Jitendra
>
>
> Aaron Stone wrote:
> > Using the RRD graphs generated by this script:
> > http://dealnews.com/developers/cacti/memcached.html
> >
> > Shouldn't be too hard to add a graph for evictions. Then you know,
> > between the memory used graph and the evictions graph, when your cache
> > is full and how much it is overflowing and churning.
> >
> > Aaron
> >
> >
> > On Wed, Nov 19, 2008 at 1:42 AM, Jitendra <[EMAIL PROTECTED]> wrote:
> > >
> > > Hi,
> > > We are planning to implement memcached as part of our project.As the
> > > data is huge, we are expecting it will go beyond the size of cache. So
> > > how can we know that the cache is full, hence we can start another
> > > instance of memcache.
> > >
> > > Regards
> > > Jitendra
>



-- 
"Be excellent to each other"

Reply via email to