Many Connect/Disconnects when Connecting

#1

Hi All,

I’m getting some weird output in my logs when I connect. Why so many connect/disconnects? What’s going on here?:

20:42:16.766 [Test worker] INFO  com.excelian.mache.couchbase.CouchbaseCacheLoader - Attempting to connect to Couchbase cluster hosted at [localhost]
20:42:16.777 [Test worker] INFO  com.couchbase.client.core.CouchbaseCore - CouchbaseEnvironment: {sslEnabled=false, sslKeystoreFile='null', sslKeystorePassword='null', queryEnabled=false, queryPort=8093, bootstrapHttpEnabled=true, bootstrapCarrierEnabled=true, bootstrapHttpDirectPort=8091, bootstrapHttpSslPort=18091, bootstrapCarrierDirectPort=11210, bootstrapCarrierSslPort=11207, ioPoolSize=16, computationPoolSize=16, responseBufferSize=16384, requestBufferSize=16384, kvServiceEndpoints=1, viewServiceEndpoints=1, queryServiceEndpoints=1, ioPool=NioEventLoopGroup, coreScheduler=CoreScheduler, eventBus=DefaultEventBus, packageNameAndVersion=couchbase-jvm-core/1.2.0-dp2 (git: 1.1.2-61-g2ec94da), dcpEnabled=false, retryStrategy=BestEffort, maxRequestLifetime=75000, retryDelay=ExponentialDelay{growBy 1.0 MICROSECONDS; lower=100, upper=100000}, reconnectDelay=ExponentialDelay{growBy 1.0 MILLISECONDS; lower=32, upper=4096}, observeIntervalDelay=ExponentialDelay{growBy 1.0 MICROSECONDS; lower=10, upper=100000}, keepAliveInterval=30000, autoreleaseAfter=2000, bufferPoolingEnabled=true, tcpNodelayEnabled=true, mutationTokensEnabled=false, queryTimeout=75000, viewTimeout=75000, kvTimeout=2500, connectTimeout=100000, disconnectTimeout=25000, dnsSrvEnabled=false}
20:42:17.445 [cb-io-1-1] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:17.551 [cb-io-1-1] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:18.241 [cb-io-1-2] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:18.291 [cb-io-1-2] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:18.394 [cb-io-1-3] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:18.464 [cb-io-1-3] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:18.524 [cb-io-1-4] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:18.569 [cb-io-1-4] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:18.678 [cb-io-1-5] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:18.721 [cb-io-1-5] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:18.897 [cb-io-1-6] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:18.937 [cb-io-1-6] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:19.055 [cb-io-1-7] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:19.073 [cb-io-1-7] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:19.190 [cb-io-1-8] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:19.211 [cb-io-1-8] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:19.328 [cb-io-1-9] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:19.347 [cb-io-1-9] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:19.465 [cb-io-1-10] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:19.487 [cb-io-1-10] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:19.618 [cb-io-1-11] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:19.642 [cb-io-1-11] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:19.771 [cb-io-1-12] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:19.877 [cb-io-1-12] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:20.018 [cb-io-1-13] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:20.053 [cb-io-1-13] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:20.206 [cb-io-1-14] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:20.229 [cb-io-1-14] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:20.342 [cb-io-1-15] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:20.366 [cb-io-1-15] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:20.500 [cb-io-1-16] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:20.539 [cb-io-1-16] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:20.670 [cb-io-1-1] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:20.677 [cb-io-1-1] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:20.787 [cb-io-1-2] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:20.790 [cb-io-1-2] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:20.900 [cb-io-1-3] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:20.904 [cb-io-1-3] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:21.008 [cb-io-1-4] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:21.017 [cb-io-1-4] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:21.120 [cb-io-1-5] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:21.128 [cb-io-1-5] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:21.232 [cb-io-1-6] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:21.236 [cb-io-1-6] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:21.338 [cb-io-1-7] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:21.346 [cb-io-1-7] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:21.450 [cb-io-1-8] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:21.456 [cb-io-1-8] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:21.560 [cb-io-1-9] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:21.565 [cb-io-1-9] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:21.668 [cb-io-1-10] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:21.673 [cb-io-1-10] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:21.776 [cb-io-1-11] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:21.781 [cb-io-1-11] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:21.883 [cb-io-1-12] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:21.887 [cb-io-1-12] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:21.990 [cb-io-1-13] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:22.004 [cb-io-1-13] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:22.108 [cb-io-1-14] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:22.113 [cb-io-1-14] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:22.216 [cb-io-1-15] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:22.220 [cb-io-1-15] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:22.323 [cb-io-1-16] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:22.328 [cb-io-1-16] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:22.433 [cb-io-1-1] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:22.437 [cb-io-1-1] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:22.539 [cb-io-1-2] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:22.552 [cb-io-1-2] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:22.654 [cb-io-1-3] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:22.657 [cb-io-1-3] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:22.760 [cb-io-1-4] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:22.769 [cb-io-1-4] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:22.871 [cb-io-1-5] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:22.877 [cb-io-1-5] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:22.980 [cb-io-1-6] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:22.985 [cb-io-1-6] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:23.088 [cb-io-1-7] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:23.092 [cb-io-1-7] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:23.194 [cb-io-1-8] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:23.198 [cb-io-1-8] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:23.301 [cb-io-1-9] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:23.305 [cb-io-1-9] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:23.407 [cb-io-1-10] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:23.411 [cb-io-1-10] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:23.518 [cb-io-1-11] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:23.526 [cb-io-1-11] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:23.628 [cb-io-1-12] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:23.633 [cb-io-1-12] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:23.736 [cb-io-1-13] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:23.745 [cb-io-1-13] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:23.847 [cb-io-1-14] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:23.851 [cb-io-1-14] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:23.953 [cb-io-1-15] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:23.959 [cb-io-1-15] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:24.061 [cb-io-1-16] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:24.067 [cb-io-1-16] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:24.169 [cb-io-1-1] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:24.179 [cb-io-1-1] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:24.283 [cb-io-1-2] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:24.290 [cb-io-1-2] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:24.395 [cb-io-1-3] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:24.399 [cb-io-1-3] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:24.501 [cb-io-1-4] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:24.505 [cb-io-1-4] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:24.608 [cb-io-1-5] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:24.611 [cb-io-1-5] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:24.713 [cb-io-1-6] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:24.716 [cb-io-1-6] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:24.818 [cb-io-1-7] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:24.834 [cb-io-1-7] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:24.936 [cb-io-1-8] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:24.939 [cb-io-1-8] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:25.041 [cb-io-1-9] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:25.046 [cb-io-1-9] INFO  com.couchbase.client.core.node.Node - Disconnected from Node localhost
20:42:25.429 [cb-io-1-10] INFO  com.couchbase.client.core.node.Node - Connected to Node localhost
20:42:25.677 [cb-computations-16] INFO  com.couchbase.client.core.config.ConfigurationProvider - Opened bucket couchbase-test
20:42:25.939 [Test worker] INFO  com.excelian.mache.couchbase.CouchbaseCacheLoader - Using Couchbase bucket: Bucket[couchbase-test]
#2

hi @tellisnz

it’s true that this look a little bit too much back-and-forth (especially with a 1 node localhost cluster).
can you share a bit of code and context on your configuration?

If you see that will a simplistic test (like just connecting and opening a bucket), can you activate TRACE logs and share them? (see the doc for that).

PS: moving this topic to Java section