Coder Social home page Coder Social logo

Comments (8)

ozten avatar ozten commented on May 27, 2024

I'm also doing some manual testing, running two memcached and taking the first one listed offline.

I've tried various settings for timeout, retries, retry, and remove... but memcache keeps choosing the dead instance. It doesn't remove it from the pool.

For fallback I'm trying:

new Memcached('127.0.0.1:11211', {failOverServers: ['127.0.0.1:11212']});

(with other options and setting up event listeners, etc)

With 0.1.5, I don't get any issues logged.

With 0.0.11 I do get

{"level":"error","message":"Connect did not give a server","timestamp":"2013-01-17T21:19:43.778Z"}
{"level":"error","message":"memcached raised an issue: {\"tokens\":[\"11211\",\"localhost\"],\"messages\":[{\"code\":\"ECONNREFUSED\",\"errno\":\"ECONNREFUSED\",\"syscall\":\"connect\"}],\"retries\":2,\"totalRetries\":0}","timestamp":"2013-01-17T21:19:43.782Z"}
{"level":"error","message":"Connect did not give a server","timestamp":"2013-01-17T21:20:03.994Z"}
{"level":"error","message":"memcached raised an issue: {\"tokens\":[\"11211\",\"localhost\"],\"messages\":[{\"code\":\"ECONNREFUSED\",\"errno\":\"ECONNREFUSED\",\"syscall\":\"connect\"},{\"code\":\"ECONNREFUSED\",\"errno\":\"ECONNREFUSED\",\"syscall\":\"connect\"}],\"retries\":1,\"totalRetries\":1}","timestamp":"2013-01-17T21:20:03.999Z"}

My expectation was for there to be a failure, the server to be removed, and eventually the library would try to add the server back in after reconnect milliseconds.

from memcached.

3rd-Eden avatar 3rd-Eden commented on May 27, 2024

I put this issue under the 1.0 milestone that I have scheduled to release on the 30th

from memcached.

mridgway avatar mridgway commented on May 27, 2024

Is there a new timeline for this?

from memcached.

3rd-Eden avatar 3rd-Eden commented on May 27, 2024

@mridgway not really, I under estimated the work that was needed for a stable 1.0 I'm working on & off on it atm. Sorry that I cannot provide you with more specific details.

from memcached.

lpalomero avatar lpalomero commented on May 27, 2024

Hello, how is it going this issue?

from memcached.

ianshward avatar ianshward commented on May 27, 2024

@3rd-Eden do you have a general idea of what the issue may be? I may look into this.

from memcached.

ianshward avatar ianshward commented on May 27, 2024

This should be working now in master, fixed in #132 and a few other recent commits.

from memcached.

ozten avatar ozten commented on May 27, 2024

Hawt!

from memcached.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.