list who is connected to a cluster
Hello,
On a sharded instance, I try to identify the connected physical people.
It is not easy. I cannot identify my own connection. 😦
Can we have a command to find out who is connected to the platform (excluding host2host connections, backup process, ...)?
The closest command but not complete and friendly :
use config
DBQuery.shellBatchSize = 300
db.system.sessions.aggregate( [ { $listSessions: { allUsers: true } },
{ $project: { _id: 0, "user":"$user.name" } } ,
{ $group : { _id: {"user": "$user" }, count: { $sum: 1 } } },
])
Regards
Jerome
2
votes
Jerome
shared this idea