nonstop logging isMaster and buildInfo commands

995 views
Skip to first unread message

Erez

unread,
Oct 7, 2014, 11:01:35 AM10/7/14
to mongod...@googlegroups.com
I'm seeing these types of messages continuously hitting the mongodb.log file in the mongo directory at log level 1, quiet: 1, mongo v2.6.4.

2014-10-07T10:56:10.335-0400 [conn8827] command admin.$cmd command: isMaster { ismaster: 1 } keyUpdates:0 numYields:0  reslen:178 0ms
2014-10-07T10:56:10.357-0400 [conn8721] command admin.$cmd command: isMaster { ismaster: 1 } keyUpdates:0 numYields:0  reslen:178 0ms
2014-10-07T10:56:10.357-0400 [conn8721] command admin.$cmd command: buildInfo { buildinfo: 1 } keyUpdates:0 numYields:0  reslen:699 0ms
2014-10-07T10:56:10.359-0400 [conn8827] command admin.$cmd command: buildInfo { buildinfo: 1 } keyUpdates:0 numYields:0  reslen:699 0ms
2014-10-07T10:56:10.469-0400 [conn8716] command admin.$cmd command: isMaster { ismaster: 1 } keyUpdates:0 numYields:0  reslen:178 0ms
2014-10-07T10:56:10.469-0400 [conn8717] command admin.$cmd command: isMaster { ismaster: 1 } keyUpdates:0 numYields:0  reslen:178 0ms
2014-10-07T10:56:10.470-0400 [conn8717] command admin.$cmd command: buildInfo { buildinfo: 1 } keyUpdates:0 numYields:0  reslen:699 0ms
2014-10-07T10:56:10.471-0400 [conn8716] command admin.$cmd command: buildInfo { buildinfo: 1 } keyUpdates:0 numYields:0  reslen:699 0ms

I tried disabling profiling on all my databases.  Any clues what could be causing this?  I set the profiling level to 0 for now so that the log doesn't get out of control.  I recently upgraded from 2.6.2 to 2.6.4.  Is this a bug in the recent version?

Will Berkeley

unread,
Oct 10, 2014, 1:07:44 PM10/10/14
to mongod...@googlegroups.com
Those messages indicate that some clients are running the isMaster and buildInfo commands against the mongod. isMaster is used, for example, to determine the role of a mongod in a replica set and whether the node accepts writes. Can you trace the connection to find out where connections 8716, 8717, and 8827 are coming from?

-Will

Doron Levari

unread,
Dec 3, 2014, 3:56:20 PM12/3/14
to mongod...@googlegroups.com
Erez - any findings there?

I'm getting the same behavior on my 2.6.5. 
Can it be related to some sort of an attack?

Asya Kamsky

unread,
Dec 3, 2014, 11:08:33 PM12/3/14
to mongodb-user
You're at logLevel 1 which says you want to log every operation.

Go back to default verbose level (which is 0) and you won't see these
in the logs.

Asya
> --
> You received this message because you are subscribed to the Google Groups
> "mongodb-user"
> group.
>
> For other MongoDB technical support options, see:
> http://www.mongodb.org/about/support/.
> ---
> You received this message because you are subscribed to the Google Groups
> "mongodb-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mongodb-user...@googlegroups.com.
> To post to this group, send email to mongod...@googlegroups.com.
> Visit this group at http://groups.google.com/group/mongodb-user.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/mongodb-user/84ea0ca6-ed9b-45fc-bc15-869c1f243f2c%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages