Comments (8)
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.
I put this issue under the 1.0 milestone that I have scheduled to release on the 30th
from memcached.
Is there a new timeline for this?
from memcached.
@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.
Hello, how is it going this issue?
from memcached.
@3rd-Eden do you have a general idea of what the issue may be? I may look into this.
from memcached.
This should be working now in master, fixed in #132 and a few other recent commits.
from memcached.
Hawt!
from memcached.
Related Issues (20)
- Can not get value from aws elasticache cluster correctly. HOT 2
- Is it synchronous? HOT 2
- process hangs after close()
- bug: reconnecting fails if the client was instantiated with server names without ports appended
- return result from memcached.get HOT 2
- [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. HOT 2
- Client does not emit events
- Travis build environment is ancient
- Issue in using memcached library with NUXT
- Clarity on error
- [Proposal] Support for Autobatching
- Please add support for one more command HOT 1
- Delete all keys starting with prefix
- Failover Servers not working when only 1 master server
- Get all the stored keys by memcached method in nodejs HOT 2
- [Question] Does this library support TLS? If so how can I configure and use it? HOT 6
- [Question] Can we get an official release for version 2.3.0?
- how to set credentials?
- memcache client not working when enabling FIPS mode HOT 1
- See if connection is ready, or dead
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from memcached.