stevenkang / spymemcached

Automatically exported from code.google.com/p/spymemcached
0 stars 0 forks source link

Question-Can we use mamcached sahred between two different physical servers? #178

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What version of the product are you using? On what operating system?

Tell me more...
Requirement:- I have to setup my application as HighAvailability solution. So i 
have to run my JAVA apps on two different physical server. But both instance of 
application need to access same Data at run time which i do not want to store 
in DB. 

Is it possible to share the memcached between two servers?

I tried to install memcached 1.2.4 on two windowns machine and ran a java 
client. It able to write and read from cache on localhost but not able to 
connect to other machine. I am getting error:-

2011-05-13 17:05:15.264 WARN net.spy.memcached.MemcachedConnection:  Closing, 
and reopening {QA sa=/153.58.47.115:11211, #Rops=0, #Wops=0, #iq=0, 
topRop=null, topWop=null, toWrite=0, interested=0}, attempt 114.
2011-05-13 17:05:45.265 INFO net.spy.memcached.MemcachedConnection:  
Reconnecting {QA sa=/153.58.47.115:11211, #Rops=0, #Wops=0, #iq=0, topRop=null, 
topWop=null, toWrite=0, interested=0}
2011-05-13 17:06:06.265 INFO net.spy.memcached.MemcachedConnection:  Connection 
state changed for sun.nio.ch.SelectionKeyImpl@1c78e57
2011-05-13 17:06:06.265 INFO net.spy.memcached.MemcachedConnection:  
Reconnecting due to failure to connect to {QA sa=/153.58.47.115:11211, #Rops=0, 
#Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0}
java.net.ConnectException: Connection timed out: no further information
    at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
    at sun.nio.ch.SocketChannelImpl.finishConnect(Unknown Source)
    at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:322)
    at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:219)
    at net.spy.memcached.MemcachedClient.run(MemcachedClient.java:1591)
2011-05-13 17:06:06.265 WARN net.spy.memcached.MemcachedConnection:  Closing, 
and reopening {QA sa=/153.58.47.115:11211, #Rops=0, #Wops=0, #iq=0, 
topRop=null, topWop=null, toWrite=0, interested=0}, attempt 115.

I have attached the code of java client.

Please advise.

Thanks
Archana

Original issue reported on code.google.com by archu...@gmail.com on 13 May 2011 at 11:43

Attachments:

GoogleCodeExporter commented 9 years ago
This is not a bug.

Original comment by dsalli...@gmail.com on 14 May 2011 at 7:06