2013-10-09 58 views
0

我们在集群中有2个节点,它们之间共有4个桶,当我们尝试使用JAVA API插入数据时,我们得到以下错误: -集群中有2个节点的Couchbase服务器超时问题

`2013-10-08 19:54:29.193 WARN com.couchbase.client.CouchbaseConnection: Node expected to receive data is inactive. This could be due to a failure within the cluster. Will check for updated configuration. Key without a configured node is: 1. 
2013-10-08 19:54:29.499 INFO com.couchbase.client.CouchbaseConnection: Connection state changed for [email protected] 
2013-10-08 19:54:29.500 INFO com.couchbase.client.CouchbaseConnection: Reconnecting due to failure to connect to {QA sa=192.168.0.18/192.168.0.18:11210, #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(SocketChannelImpl.java:692) 
    at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:423) 
    at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:261) 
    at com.couchbase.client.CouchbaseConnection.run(CouchbaseConnection.java:288) ` 

`2013-10-08 19:54:29.502 WARN com.couchbase.client.CouchbaseConnection: Closing, and reopening {QA sa=192.168.0.18/192.168.0.18:11210, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0}, attempt 1. 
2013-10-08 19:54:33.504 INFO com.couchbase.client.CouchbaseConnection: Reconnecting {QA sa=192.168.0.18/192.168.0.18:11210, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0} 

`

这表明“预期节点接收数据是无效的”当它运行起来......我们应该改变每一个桶的RAM配额(这是非常高的,现在),还是应该我们减少要插入的数据还是防火墙问题?

回答

1

这可能是一个防火墙问题。看起来您无法连接到Couchbase,并且您的Couchbase集群中的ram配额或数据量不应导致缓慢。尝试通过telnet从客户端所在的同一台计算机连接到Couchbase端口11211。如果你不能telnet到那台机器,那么这将是一个强烈的防火墙问题。

telnet <ip address> 11211 
+0

正是。解决了它..谢谢 – ramu

相关问题