0

我们在 couchbase 的集群中有 2 个节点,它们之间共享 4 个存储桶,当我们尝试使用 JAVA api 在存储桶中插入数据时,会出现以下错误:-

 `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 sun.nio.ch.SelectionKeyImpl@1df749e3
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 配额(现在非常高)还是我们应该减少要插入的数据还是防火墙问题??

4

1 回答 1

1

这很可能是防火墙问题。您似乎无法连接到 Couchbase,并且您的 Couchbase 集群中的内存配额或数据量不应导致缓慢。尝试从客户端所在的同一台机器上通过 telnet 连接到 Couchbase 端口 11211。如果您无法 telnet 到那台机器,那么这将是防火墙问题的强烈迹象。

telnet <ip address> 11211
于 2013-10-09T23:33:10.420 回答