This section of the documenation http://developer.couchbase.com/documentation/server/4.1/sdks/java-2.2/event-bus-metrics.html
mentions monitoring and watching for NodeDisconnectedEvent.
I’m attempting integrate this with out monitoring system but am having difficulty understanding what and how a NodeDisconnectedEvent is triggered, in order to test this type of notification.
I’m running Couchbase 4.1.0-5005 Enterprise Edition (build-5005). I have tested with Java SDK 2.2.3 and 2.2.6
I’m running a 3 node cluster. After bringing up my environment I see the 3 NodeConnectedEvents on my event bus.
I then block access to one of the nodes by dropping all packets from/to it, from the client machine.
iptables -A INPUT -s IP_HERE -j DROP
iptables -A OUTPUT -d IP_HERE -j DROP
While trying to use the SDK, every third request times out. I don’t see a NodeDisconnectedEvent until about 20-25 minutes later.