I can see that Compass is reconnecting to the cluster it is connected to even if this is left idle, every 30 seconds.
2020-03-04T21:18:16.272-0800 I NETWORK [listener] connection accepted from 192.168.0.5:52692 #13 (1 connection now open) 2020-03-04T21:18:16.273-0800 I NETWORK [conn13] received client metadata from 192.168.0.5:52692 conn13: { driver: { name: "nodejs", version: "3.4.0" }, os: { type: "Darwin", name: "darwin", architecture: "x64", version: "19.3.0" }, platform: "'Node.js v10.2.0, LE (unified)", application: { name: "MongoDB Compass" } } 2020-03-04T21:18:16.294-0800 I ACCESS [conn13] Successfully authenticated as principal root on admin from client 192.168.0.5:52692 2020-03-04T21:18:46.275-0800 I NETWORK [conn13] end connection 192.168.0.5:52692 (0 connections now open) 2020-03-04T21:18:46.783-0800 I NETWORK [listener] connection accepted from 192.168.0.5:52694 #14 (1 connection now open) 2020-03-04T21:18:46.783-0800 I NETWORK [conn14] received client metadata from 192.168.0.5:52694 conn14: { driver: { name: "nodejs", version: "3.4.0" }, os: { type: "Darwin", name: "darwin", architecture: "x64", version: "19.3.0" }, platform: "'Node.js v10.2.0, LE (unified)", application: { name: "MongoDB Compass" } } 2020-03-04T21:18:46.812-0800 I ACCESS [conn14] Successfully authenticated as principal root on admin from client 192.168.0.5:52694 2020-03-04T21:19:16.788-0800 I NETWORK [conn14] end connection 192.168.0.5:52694 (0 connections now open) 2020-03-04T21:19:17.384-0800 I NETWORK [listener] connection accepted from 192.168.0.5:52695 #15 (1 connection now open) 2020-03-04T21:19:17.386-0800 I NETWORK [conn15] received client metadata from 192.168.0.5:52695 conn15: { driver: { name: "nodejs", version: "3.4.0" }, os: { type: "Darwin", name: "darwin", architecture: "x64", version: "19.3.0" }, platform: "'Node.js v10.2.0, LE (unified)", application: { name: "MongoDB Compass" } } 2020-03-04T21:19:17.406-0800 I ACCESS [conn15] Successfully authenticated as principal root on admin from client 192.168.0.5:52695 2020-03-04T21:19:47.391-0800 I NETWORK [conn15] end connection 192.168.0.5:52695 (0 connections now open) 2020-03-04T21:19:48.072-0800 I NETWORK [listener] connection accepted from 192.168.0.5:52702 #16 (1 connection now open) 2020-03-04T21:19:48.073-0800 I NETWORK [conn16] received client metadata from 192.168.0.5:52702 conn16: { driver: { name: "nodejs", version: "3.4.0" }, os: { type: "Darwin", name: "darwin", architecture: "x64", version: "19.3.0" }, platform: "'Node.js v10.2.0, LE (unified)", application: { name: "MongoDB Compass" } } 2020-03-04T21:19:48.092-0800 I ACCESS [conn16] Successfully authenticated as principal root on admin from client 192.168.0.5:52702 2020-03-04T21:20:18.106-0800 I NETWORK [conn16] end connection 192.168.0.5:52702 (0 connections now open) 2020-03-04T21:20:19.195-0800 I NETWORK [listener] connection accepted from 192.168.0.5:52711 #17 (1 connection now open) 2020-03-04T21:20:19.196-0800 I NETWORK [conn17] received client metadata from 192.168.0.5:52711 conn17: { driver: { name: "nodejs", version: "3.4.0" }, os: { type: "Darwin", name: "darwin", architecture: "x64", version: "19.3.0" }, platform: "'Node.js v10.2.0, LE (unified)", application: { name: "MongoDB Compass" } } 2020-03-04T21:20:19.214-0800 I ACCESS [conn17] Successfully authenticated as principal root on admin from client 192.168.0.5:52711 2020-03-04T21:20:49.236-0800 I NETWORK [conn17] end connection 192.168.0.5:52711 (0 connections now open) 2020-03-04T21:20:50.191-0800 I NETWORK [listener] connection accepted from 192.168.0.5:52714 #18 (1 connection now open) 2020-03-04T21:20:50.192-0800 I NETWORK [conn18] received client metadata from 192.168.0.5:52714 conn18: { driver: { name: "nodejs", version: "3.4.0" }, os: { type: "Darwin", name: "darwin", architecture: "x64", version: "19.3.0" }, platform: "'Node.js v10.2.0, LE (unified)", application: { name: "MongoDB Compass" } } 2020-03-04T21:20:50.220-0800 I ACCESS [conn18] Successfully authenticated as principal root on admin from client 192.168.0.5:52714 2020-03-04T21:21:20.264-0800 I NETWORK [conn18] end connection 192.168.0.5:52714 (0 connections now open) 2020-03-04T21:21:21.202-0800 I NETWORK [listener] connection accepted from 192.168.0.5:52724 #19 (1 connection now open) 2020-03-04T21:21:21.203-0800 I NETWORK [conn19] received client metadata from 192.168.0.5:52724 conn19: { driver: { name: "nodejs", version: "3.4.0" }, os: { type: "Darwin", name: "darwin", architecture: "x64", version: "19.3.0" }, platform: "'Node.js v10.2.0, LE (unified)", application: { name: "MongoDB Compass" } } 2020-03-04T21:21:21.225-0800 I ACCESS [conn19] Successfully authenticated as principal root on admin from client 192.168.0.5:52724 2020-03-04T21:21:51.221-0800 I NETWORK [conn19] end connection 192.168.0.5:52724 (0 connections now open) 2020-03-04T21:21:52.227-0800 I NETWORK [listener] connection accepted from 192.168.0.5:52729 #20 (1 connection now open) 2020-03-04T21:21:52.227-0800 I NETWORK [conn20] received client metadata from 192.168.0.5:52729 conn20: { driver: { name: "nodejs", version: "3.4.0" }, os: { type: "Darwin", name: "darwin", architecture: "x64", version: "19.3.0" }, platform: "'Node.js v10.2.0, LE (unified)", application: { name: "MongoDB Compass" } } 2020-03-04T21:21:52.255-0800 I ACCESS [conn20] Successfully authenticated as principal root on admin from client 192.168.0.5:52729 2020-03-04T21:22:22.321-0800 I NETWORK [conn20] end connection 192.168.0.5:52729 (0 connections now open) 2020-03-04T21:22:23.143-0800 I NETWORK [listener] connection accepted from 192.168.0.5:52734 #21 (1 connection now open) 2020-03-04T21:22:23.145-0800 I NETWORK [conn21] received client metadata from 192.168.0.5:52734 conn21: { driver: { name: "nodejs", version: "3.4.0" }, os: { type: "Darwin", name: "darwin", architecture: "x64", version: "19.3.0" }, platform: "'Node.js v10.2.0, LE (unified)", application: { name: "MongoDB Compass" } } 2020-03-04T21:22:23.171-0800 I ACCESS [conn21] Successfully authenticated as principal root on admin from client 192.168.0.5:52734 2020-03-04T21:22:53.263-0800 I NETWORK [conn21] end connection 192.168.0.5:52734 (0 connections now open)
Is there a reason for this? The same does not apply for the mongo shell. The shell connect only once.
Customers can complain about this when using ldap with the default ldapUserCacheInvalidationInterval of 30 seconds, which means that every time a user leave a Compass session open, there will be unnecessary ldap query requests.
Can this behaviour be changed?
- is caused by
-
NODE-2387 Unexpected connection flapping
- Closed