A replica set URI fails:
$ mongostat --uri=mongodb://urania:61368,urania:61378,urania:61387/?replicaSet=foo 2019-10-11T11:26:15.540-0400 could not connect to server: server selection error: server selection timeout current topology: Type: Single Servers:
Without the replicaSet parameter, it works:
$ mongostat --uri=mongodb://urania:61368,urania:61378,urania:61387 insert query update delete getmore command dirty used flushes vsize res qrw arw net_in net_out conn time *0 *0 *0 *0 0 1|0 0.0% 0.4% 0 5.35G 55.0M 0|0 1|0 169b 33.5k 2 Oct 11 11:25:15.245 *0 *0 *0 *0 0 0|0 0.0% 0.4% 0 5.35G 55.0M 0|0 1|0 111b 33.3k 2 Oct 11 11:25:16.245 *0 *0 *0 *0 0 0|0 0.0% 0.4% 0 5.35G 55.0M 0|0 1|0 111b 33.3k 2 Oct 11 11:25:17.247 *0 *0 *0 *0 0 0|0 0.0% 0.4% 0 5.35G 55.0M 0|0 1|0 111b 33.3k 2 Oct 11 11:25:18.247
- is duplicated by
-
TOOLS-2680 [replica set][mongostat] first result with --discover option not working correctly
- Closed