No, there's probably no automatic failover. If one of your memcached servers
are down, you will get an increase in cache misses. It's not a reliable
datastorage with failover, it's a cache. :-)


/Henrik

On Wed, Nov 26, 2008 at 10:01, Jigna Joshi <[EMAIL PROTECTED]> wrote:

>
> HI,
>
> i have some problems in clustering..
> i have 2 memcache server..server1 and server2
> i m making entry in both servers...and using apache memcache module
> for authorization..
> now, if i make server1 down then it is not taking key-value pair from
> server2..
> i think it is problem in mod_auth_memcookie.so file
>
> my entry in apache is
> Auth_memCookie_Memcached_AddrPort server1:11211,server2:11211
>
> if i change this entry to
> Auth_memCookie_Memcached_AddrPort server2:11211,server1:11211
> then it is working fine...means 2nd parameter doesnt matter...
>
> please help me to solve out this...
>
> On Oct 7, 4:37 pm, "Josef Finsel" <[EMAIL PROTECTED]> wrote:
> > Jigna,
> >
> > As others have said, memcached is a simple, in-memory cache. The purpose
> of
> > such a cache is to provide a quicker place to get data from but it should
> > not be the actual repository.
> >
> > For example, if my application shows event dates, those dates may be
> stored
> > in a database, and that would be the actual repository. When someone
> > requests the event dates from a web page, the web server first checks the
> > cache (which is the quickest possible solution) and either delivers the
> data
> > from there or goes to the database, retrieves the data, puts it in cache
> and
> > then delivers the data.
> >
> > The *advantage *of putting it in cache is that the next time the web
> server
> > needs the data, it may be in cache, which is quicker than reading it off
> > disk from the database.
> >
> > The *disadvantage *of the cache is that, when it isn't found in cache,
> it's
> > extra steps required (check cache, get data from database, store in
> cache,
> > deliver as opposed to just get data from database and deliver).
> >
> > The *first value* of the cache is that the number of times items are
> found
> > in cache generally outweighs the number of times something has to perform
> > the additional steps of going to the database.
> >
> > The *second value* of the cache is that it self-manages memory by
> expiring
> > items out of the cache either because their expiration date has come and
> > gone or because they haven't be requested of the cache as much as items
> > other items.
> >
> > Josef
> >
> > --
> > To a programmer with memcached, every problem, from scalability to
> > high-availability to queuing looks like a caching problem.
> >
> >
> >
> >
> >
> > On Tue, Oct 7, 2008 at 12:57 AM, Jigna Joshi <[EMAIL PROTECTED]> wrote:
> >
> > > Hi,
> >
> > > Thanx for d quick reply.
> > > actually, in our case we want to make entry in all servers b'coz if
> > > one of the memcached server is down (server which has entry) then it
> > > can get value from another server..
> >
> > > rightnow, if i run Set command then it makes entery in only one server
> > > and if that specific server gets down, then our application fails as
> > > it doest get Key from another server.
> >
> > > regards,
> > > Jigna Joshi
> >
> > > On Oct 6, 9:04 pm, "Josef Finsel" <[EMAIL PROTECTED]> wrote:
> > > > The standard answer is no. Clients don't support it for many reasons.
> >
> > > > The longer answer involves knowing why you want put a Key-Value pair
> on
> > > all
> > > > of your memcache servers.
> >
> > > > On Mon, Oct 6, 2008 at 9:32 AM, Jigna Joshi <[EMAIL PROTECTED]>
> wrote:
> >
> > > > > Hi,
> > > > > I want to add Key-Value pair in all memcache server..is it
> possible?
> >
> > > > > On Oct 6, 6:03 pm, Brian Moon <[EMAIL PROTECTED]> wrote:
> >
> > >http://www.socialtext.net/memcached/index.cgi?faq#how_is_memcached_re.
> ..
> >
> > > > > > Jigna Joshi wrote:
> > > > > > > Hi,
> >
> > > > > > > I am using memcached-1[1].2.6-win32-bin version of MemCache
> server.
> >
> > > > > > > Now, I have 2 instances of this server on different machine.  I
> am
> > > > > > > using memcached-2[1].1.jar to make entry in memcache server
> through
> > > my
> > > > > > > java application.
> >
> > > > > > > When both servers are up, it makes entry in only one of the
> server.
> >
> > > > > > > Is it provide any configuration to make entry of Key-value pair
> in
> > > all
> > > > > > > memcache servers.
> >
> > > > > > > Waiting for your reply.
> >
> > > > > > > Thanking You,
> >
> > > > > > --
> >
> > > > > > Brian Moon
> > > > > > Senior Web Engineer
> > > > > > ------------------------------
> > > > > > When you care enough to spend the very least.
> > >http://dealnews.com/-Hide
> > > > > quoted text -
> >
> > > > > > - Show quoted text -
> >
> > > > --
> > > > "If you see a whole thing - it seems that it's always beautiful.
> Planets,
> > > > lives... But up close a world's all dirt and rocks. And day to day,
> > > life's a
> > > > hard job, you get tired, you lose the pattern."
> > > > Ursula K. Le Guin- Hide quoted text -
> >
> > > > - Show quoted text -
> >
> > --
> > "If you see a whole thing - it seems that it's always beautiful. Planets,
> > lives... But up close a world's all dirt and rocks. And day to day,
> life's a
> > hard job, you get tired, you lose the pattern."
> > Ursula K. Le Guin- Hide quoted text -
> >
> > - Show quoted text -

Reply via email to