mongodb reporting saslStart and isMaster as being slow
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Expired
|
High
|
Unassigned |
Bug Description
While running under a slightly quieter time, I issued a 'juju status'. I don't know that it is exactly correlated (I would have also recently run 'juju models', and would have background tasks running).
Inspecting /var/log/syslog I saw:
Jun 8 12:23:22 juju-ch2-g004 mongod.37017[1304]: [conn90982] command admin.$cmd command: isMaster { ismaster: 1 } keyUpdates:0 writeConflicts:0 numYields:0 reslen:429 locks:{} protocol:op_query 596ms
Jun 8 12:23:22 juju-ch2-g004 mongod.37017[1304]: [conn91776] command admin.$cmd command: isMaster { ismaster: 1 } keyUpdates:0 writeConflicts:0 numYields:0 reslen:429 locks:{} protocol:op_query 634ms
Jun 8 12:23:22 juju-ch2-g004 mongod.37017[1304]: [conn88977] command admin.$cmd command: saslStart { saslStart: 1, mechanism: "SCRAM-SHA-1", payload: "xxx" } keyUpdates:0 writeConflicts:0 numYields:0 reslen:155 locks:{} protocol:op_query 131ms
Jun 8 12:23:22 juju-ch2-g004 mongod.37017[1304]: [conn88092] command admin.$cmd command: saslStart { saslStart: 1, mechanism: "SCRAM-SHA-1", payload: "xxx" } keyUpdates:0 writeConflicts:0 numYields:0 reslen:155 locks:{} protocol:op_query 133ms
Note that there are near 1500 entries listing "isMaster" all tagged 12:23:22.
What would possibly need that many calls to isMaster...
Out of a tail of syslog that spans only a single minute (from 12:23:22 to 12:24:22), which is 20,000 lines long, we have 14,752 lines that say "command: saslStart", and 4333 lines that say "isMaster".
The remaining lines are:
411 times: Jun 8 12:23:22 juju-ch2-g004 mongod.37017[1304]: [conn92039] command juju.controllers command: find { find: "controllers", filter: { _id: "apiHostPorts" }, skip: 0, limit: 1, batchSize: 1, singleBatch: true
243 times: Jun 8 12:23:25 juju-ch2-g004 mongod.37017[1304]: [conn85282] command juju.settings command: find { find: "settings", filter: { _id: "6bf26857-
108 times: Jun 8 12:24:17 juju-ch2-g004 mongod.37017[1304]: [conn88132] command presence.$cmd command: update { update: "presence.pings", updates: [ { q: { _id: "6bf26857-
and a smaller number of "find machines" and saslContinue.
What is happening that we're initiating a saslStart 14,000 times in a single minute.
Are we connecting/
Where is 1500 calls to 'isMaster' coming from?
This is running 2.1.2
Changed in juju: | |
milestone: | 2.2.1 → 2.2.2 |
Changed in juju: | |
milestone: | 2.2.2 → none |
Is this related to session copying? Just thinking out loud.