分析 mongodb admin local 修改ip 热修改

分析 mongodb   admin  local  

 

更改ip前
[root@e ~]# mongo mongodb://admin:adminpwd123@10.144.114.152
MongoDB shell version v3.4.0
connecting to: mongodb://admin:adminpwd123@10.144.114.152
MongoDB server version: 3.4.0
Server has startup warnings:
2018-12-28T10:23:57.621+0800 I STORAGE  [initandlisten]
2018-12-28T10:24:01.595+0800 I CONTROL  [initandlisten] ** WARNING: You are running this process as the root user, which is not recommended.
2018-12-28T10:24:01.595+0800 I CONTROL  [initandlisten]
2018-12-28T10:24:01.595+0800 I CONTROL  [initandlisten]
2018-12-28T10:24:01.595+0800 I CONTROL  [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is 'always'.
2018-12-28T10:24:01.595+0800 I CONTROL  [initandlisten] **        We suggest setting it to 'never'
2018-12-28T10:24:01.595+0800 I CONTROL  [initandlisten]
2018-12-28T10:24:01.595+0800 I CONTROL  [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is 'always'.
2018-12-28T10:24:01.595+0800 I CONTROL  [initandlisten] **        We suggest setting it to 'never'
2018-12-28T10:24:01.595+0800 I CONTROL  [initandlisten]
repl_test:PRIMARY> show dbs
admin                  0.000GB
direct_vote_resource  17.489GB
local                 14.852GB
personas              35.179GB
recommendation         0.370GB
statistics_visit       0.168GB
superpub              83.849GB
test                   0.000GB
repl_test:PRIMARY> use admin
switched to db admin
repl_test:PRIMARY> show collections
system.users
system.version
repl_test:PRIMARY> db.system.users.find({})
{ "_id" : "admin.admin", "user" : "admin", "db" : "admin", "credentials" : { "SCRAM-SHA-1" : { "iterationCount" : 10000, "salt" : "V7VYUNDGexgVnKhvR1CWKQ==", "storedKey" : "H0gAXeCe1Twfqv6psI9+9Ul3bXI=", "serverKey" : "etgetLycgvSVeDJlWR6XFcikF3o=" } }, "roles" : [ { "role" : "root", "db" : "admin" } ] }
{ "_id" : "personas.guest", "user" : "guest", "db" : "personas", "credentials" : { "SCRAM-SHA-1" : { "iterationCount" : 10000, "salt" : "CEEWhTzFVPuqVP0/WkLs4w==", "storedKey" : "gvaXHeevGTGa0ptc0OyokS1SXXo=", "serverKey" : "ZfXCqeLKqnrzlpbcvFIOFpCP/zw=" } }, "roles" : [ { "role" : "read", "db" : "personas" } ] }
{ "_id" : "admin.tmp_rw_56756", "user" : "tmp_rw_56756", "db" : "admin", "credentials" : { "SCRAM-SHA-1" : { "iterationCount" : 10000, "salt" : "4oNrmGqCe+tISkmz7zGadg==", "storedKey" : "81P26DcNYgDWJaDlho4IOTt+d50=", "serverKey" : "6PCv81p747XO1FCInHof7U6RXS8=" } }, "roles" : [ { "role" : "readWrite", "db" : "admin" }, { "role" : "dbAdmin", "db" : "admin" } ] }
repl_test:PRIMARY> db.system.version.find({})
{ "_id" : "authSchema", "currentVersion" : 5 }
repl_test:PRIMARY> use local
switched to db local
repl_test:PRIMARY> show collections
me
oplog.rs
replset.election
replset.minvalid
startup_log
system.replset
repl_test:PRIMARY> db.me.find({})
{ "_id" : ObjectId("5bff338aa2da37d0c0e74d53"), "host" : "e" }
repl_test:PRIMARY> db.replset.election.find({})
{ "_id" : ObjectId("59b7963e819989052371047f"), "term" : NumberLong(23), "candidateIndex" : NumberLong(0) }
repl_test:PRIMARY> db.replset.minvalid.find({})
{ "_id" : ObjectId("59b796328199890523710479"), "oplogDeleteFromPoint" : Timestamp(0, 0), "ts" : Timestamp(1543453270, 1), "t" : NumberLong(16) }
repl_test:PRIMARY> db.system.replset.find({})
{ "_id" : "repl_test", "version" : 2, "protocolVersion" : NumberLong(1), "members" : [ { "_id" : 0, "host" : "10.144.114.152:27017", "arbiterOnly" : false, "buildIndexes" : true, "hidden" : false, "priority" : 1, "tags" : {  }, "slaveDelay" : NumberLong(0), "votes" : 1 }, { "_id" : 1, "host" : "10.144.114.65:27017", "arbiterOnly" : false, "buildIndexes" : true, "hidden" : false, "priority" : 1, "tags" : {  }, "slaveDelay" : NumberLong(0), "votes" : 1 } ], "settings" : { "chainingAllowed" : true, "heartbeatIntervalMillis" : 2000, "heartbeatTimeoutSecs" : 10, "electionTimeoutMillis" : 10000, "catchUpTimeoutMillis" : 2000, "getLastErrorModes" : {  }, "getLastErrorDefaults" : { "w" : 1, "wtimeout" : 0 }, "replicaSetId" : ObjectId("59b7308b7cf595c595ffe5c2") } }
repl_test:PRIMARY> db.startup_log.find({})
{ "_id" : "iZ2zeasmr9abrbq6i9qn1jZ-1505203756785", "hostname" : "iZ2zeasmr9abrbq6i9qn1jZ", "startTime" : ISODate("2017-09-12T08:09:16Z"), "startTimeLocal" : "Tue Sep 12 16:09:16.785", "cmdLine" : { "config" : "/usr/local/mongodb/conf/mongod.conf", "net" : { "bindIp" : "10.144.114.152", "port" : 27017 }, "processManagement" : { "fork" : true, "pidFilePath" : "/usr/local/mongodb/mongo.pid" }, "replication" : { "replSet" : "repl_test" }, "security" : { "keyFile" : "/usr/local/mongodb/conf/keyFile" }, "sharding" : { "clusterRole" : "shardsvr" }, "storage" : { "dbPath" : "/mnt/mongodb_data/data", "directoryPerDB" : true }, "systemLog" : { "destination" : "file", "logAppend" : true, "path" : "/mnt/mongodb_data/log/mongod.log" } }, "pid" : NumberLong(14660), "buildinfo" : { "version" : "3.4.0", "gitVersion" : "f4240c60f005be757399042dc12f6addbc3170c1", "modules" : [ ], "allocator" : "tcmalloc", "javascriptEngine" : "mozjs", "sysInfo" : "deprecated", "versionArray" : [ 3, 4, 0, 0 ], "openssl" : { "running" : "disabled", "compiled" : "disabled" }, "buildEnvironment" : { "distmod" : "", "distarch" : "x86_64", "cc" : "/opt/mongodbtoolchain/v2/bin/gcc: gcc (GCC) 5.4.0", "ccflags" : "-fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -Werror -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp", "cxx" : "/opt/mongodbtoolchain/v2/bin/g++: g++ (GCC) 5.4.0", "cxxflags" : "-Woverloaded-virtual -Wno-maybe-uninitialized -std=c++11", "linkflags" : "-pthread -Wl,-z,now -rdynamic -Wl,--fatal-warnings -fstack-protector-strong -fuse-ld=gold -Wl,--build-id -Wl,-z,noexecstack -Wl,--warn-execstack -Wl,-z,relro", "target_arch" : "x86_64", "target_os" : "linux" }, "bits" : 64, "debug" : false, "maxBsonObjectSize" : 16777216, "storageEngines" : [ "devnull", "ephemeralForTest", "mmapv1", "wiredTiger" ] } }
{ "_id" : "iZ2zeasmr9abrbq6i9qn1jZ-1505731147807", "hostname" : "iZ2zeasmr9abrbq6i9qn1jZ", "startTime" : ISODate("2017-09-18T10:39:07Z"), "startTimeLocal" : "Mon Sep 18 18:39:07.807", "cmdLine" : { "config" : "/usr/local/mongodb/conf/mongod.conf", "net" : { "bindIp" : "10.144.114.152", "port" : 27017 }, "processManagement" : { "fork" : true, "pidFilePath" : "/usr/local/mongodb/mongo.pid" }, "replication" : { "replSet" : "repl_test" }, "security" : { "keyFile" : "/usr/local/mongodb/conf/keyFile" }, "sharding" : { "clusterRole" : "shardsvr" }, "storage" : { "dbPath" : "/mnt/mongodb_data/data", "directoryPerDB" : true }, "systemLog" : { "destination" : "file", "logAppend" : true, "path" : "/mnt/mongodb_data/log/mongod.log" } }, "pid" : NumberLong(5993), "buildinfo" : { "version" : "3.4.0", "gitVersion" : "f4240c60f005be757399042dc12f6addbc3170c1", "modules" : [ ], "allocator" : "tcmalloc", "javascriptEngine" : "mozjs", "sysInfo" : "deprecated", "versionArray" : [ 3, 4, 0, 0 ], "openssl" : { "running" : "disabled", "compiled" : "disabled" }, "buildEnvironment" : { "distmod" : "", "distarch" : "x86_64", "cc" : "/opt/mongodbtoolchain/v2/bin/gcc: gcc (GCC) 5.4.0", "ccflags" : "-fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -Werror -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp", "cxx" : "/opt/mongodbtoolchain/v2/bin/g++: g++ (GCC) 5.4.0", "cxxflags" : "-Woverloaded-virtual -Wno-maybe-uninitialized -std=c++11", "linkflags" : "-pthread -Wl,-z,now -rdynamic -Wl,--fatal-warnings -fstack-protector-strong -fuse-ld=gold -Wl,--build-id -Wl,-z,noexecstack -Wl,--warn-execstack -Wl,-z,relro", "target_arch" : "x86_64", "target_os" : "linux" }, "bits" : 64, "debug" : false, "maxBsonObjectSize" : 16777216, "storageEngines" : [ "devnull", "ephemeralForTest", "mmapv1", "wiredTiger" ] } }
{ "_id" : "iZ2zeasmr9abrbq6i9qn1jZ-1505734755410", "hostname" : "iZ2zeasmr9abrbq6i9qn1jZ", "startTime" : ISODate("2017-09-18T11:39:15Z"), "startTimeLocal" : "Mon Sep 18 19:39:15.410", "cmdLine" : { "config" : "/usr/local/mongodb/conf/mongod.conf", "net" : { "bindIp" : "10.144.114.152", "port" : 27017 }, "processManagement" : { "fork" : true, "pidFilePath" : "/usr/local/mongodb/mongo.pid" }, "replication" : { "replSet" : "repl_test" }, "security" : { "keyFile" : "/usr/local/mongodb/conf/keyFile" }, "sharding" : { "clusterRole" : "shardsvr" }, "storage" : { "dbPath" : "/mnt/mongodb_data/data", "directoryPerDB" : true }, "systemLog" : { "destination" : "file", "logAppend" : true, "path" : "/mnt/mongodb_data/log/mongod.log" } }, "pid" : NumberLong(6575), "buildinfo" : { "version" : "3.4.0", "gitVersion" : "f4240c60f005be757399042dc12f6addbc3170c1", "modules" : [ ], "allocator" : "tcmalloc", "javascriptEngine" : "mozjs", "sysInfo" : "deprecated", "versionArray" : [ 3, 4, 0, 0 ], "openssl" : { "running" : "disabled", "compiled" : "disabled" }, "buildEnvironment" : { "distmod" : "", "distarch" : "x86_64", "cc" : "/opt/mongodbtoolchain/v2/bin/gcc: gcc (GCC) 5.4.0", "ccflags" : "-fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -Werror -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp", "cxx" : "/opt/mongodbtoolchain/v2/bin/g++: g++ (GCC) 5.4.0", "cxxflags" : "-Woverloaded-virtual -Wno-maybe-uninitialized -std=c++11", "linkflags" : "-pthread -Wl,-z,now -rdynamic -Wl,--fatal-warnings -fstack-protector-strong -fuse-ld=gold -Wl,--build-id -Wl,-z,noexecstack -Wl,--warn-execstack -Wl,-z,relro", "target_arch" : "x86_64", "target_os" : "linux" }, "bits" : 64, "debug" : false, "maxBsonObjectSize" : 16777216, "storageEngines" : [ "devnull", "ephemeralForTest", "mmapv1", "wiredTiger" ] } }
{ "_id" : "iZ2zeasmr9abrbq6i9qn1jZ-1505734881752", "hostname" : "iZ2zeasmr9abrbq6i9qn1jZ", "startTime" : ISODate("2017-09-18T11:41:21Z"), "startTimeLocal" : "Mon Sep 18 19:41:21.752", "cmdLine" : { "config" : "/usr/local/mongodb/conf/mongod.conf", "net" : { "bindIp" : "10.144.114.152", "port" : 27017 }, "processManagement" : { "fork" : true, "pidFilePath" : "/usr/local/mongodb/mongo.pid" }, "replication" : { "replSet" : "repl_test" }, "security" : { "keyFile" : "/usr/local/mongodb/conf/keyFile" }, "sharding" : { "clusterRole" : "shardsvr" }, "storage" : { "dbPath" : "/mnt/mongodb_data/data", "directoryPerDB" : true }, "systemLog" : { "destination" : "file", "logAppend" : true, "path" : "/mnt/mongodb_data/log/mongod.log" } }, "pid" : NumberLong(6690), "buildinfo" : { "version" : "3.4.0", "gitVersion" : "f4240c60f005be757399042dc12f6addbc3170c1", "modules" : [ ], "allocator" : "tcmalloc", "javascriptEngine" : "mozjs", "sysInfo" : "deprecated", "versionArray" : [ 3, 4, 0, 0 ], "openssl" : { "running" : "disabled", "compiled" : "disabled" }, "buildEnvironment" : { "distmod" : "", "distarch" : "x86_64", "cc" : "/opt/mongodbtoolchain/v2/bin/gcc: gcc (GCC) 5.4.0", "ccflags" : "-fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -Werror -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp", "cxx" : "/opt/mongodbtoolchain/v2/bin/g++: g++ (GCC) 5.4.0", "cxxflags" : "-Woverloaded-virtual -Wno-maybe-uninitialized -std=c++11", "linkflags" : "-pthread -Wl,-z,now -rdynamic -Wl,--fatal-warnings -fstack-protector-strong -fuse-ld=gold -Wl,--build-id -Wl,-z,noexecstack -Wl,--warn-execstack -Wl,-z,relro", "target_arch" : "x86_64", "target_os" : "linux" }, "bits" : 64, "debug" : false, "maxBsonObjectSize" : 16777216, "storageEngines" : [ "devnull", "ephemeralForTest", "mmapv1", "wiredTiger" ] } }
{ "_id" : "iZ2zeasmr9abrbq6i9qn1jZ-1517449913358", "hostname" : "iZ2zeasmr9abrbq6i9qn1jZ", "startTime" : ISODate("2018-02-01T01:51:53Z"), "startTimeLocal" : "Thu Feb  1 09:51:53.358", "cmdLine" : { "config" : "/usr/local/mongodb/conf/mongod.conf", "net" : { "bindIp" : "10.144.114.152", "port" : 27017 }, "processManagement" : { "fork" : true, "pidFilePath" : "/usr/local/mongodb/mongo.pid" }, "replication" : { "replSet" : "repl_test" }, "security" : { "keyFile" : "/usr/local/mongodb/conf/keyFile" }, "sharding" : { "clusterRole" : "shardsvr" }, "storage" : { "dbPath" : "/mnt/mongodb_data/data", "directoryPerDB" : true }, "systemLog" : { "destination" : "file", "logAppend" : true, "path" : "/mnt/mongodb_data/log/mongod.log" } }, "pid" : NumberLong(9520), "buildinfo" : { "version" : "3.4.0", "gitVersion" : "f4240c60f005be757399042dc12f6addbc3170c1", "modules" : [ ], "allocator" : "tcmalloc", "javascriptEngine" : "mozjs", "sysInfo" : "deprecated", "versionArray" : [ 3, 4, 0, 0 ], "openssl" : { "running" : "disabled", "compiled" : "disabled" }, "buildEnvironment" : { "distmod" : "", "distarch" : "x86_64", "cc" : "/opt/mongodbtoolchain/v2/bin/gcc: gcc (GCC) 5.4.0", "ccflags" : "-fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -Werror -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp", "cxx" : "/opt/mongodbtoolchain/v2/bin/g++: g++ (GCC) 5.4.0", "cxxflags" : "-Woverloaded-virtual -Wno-maybe-uninitialized -std=c++11", "linkflags" : "-pthread -Wl,-z,now -rdynamic -Wl,--fatal-warnings -fstack-protector-strong -fuse-ld=gold -Wl,--build-id -Wl,-z,noexecstack -Wl,--warn-execstack -Wl,-z,relro", "target_arch" : "x86_64", "target_os" : "linux" }, "bits" : 64, "debug" : false, "maxBsonObjectSize" : 16777216, "storageEngines" : [ "devnull", "ephemeralForTest", "mmapv1", "wiredTiger" ] } }
{ "_id" : "iZ2zeasmr9abrbq6i9qn1jZ-1517450091254", "hostname" : "iZ2zeasmr9abrbq6i9qn1jZ", "startTime" : ISODate("2018-02-01T01:54:51Z"), "startTimeLocal" : "Thu Feb  1 09:54:51.254", "cmdLine" : { "config" : "/usr/local/mongodb/conf/mongod.conf", "net" : { "bindIp" : "10.144.114.152", "port" : 27017 }, "processManagement" : { "fork" : true, "pidFilePath" : "/usr/local/mongodb/mongo.pid" }, "replication" : { "replSet" : "repl_test" }, "security" : { "keyFile" : "/usr/local/mongodb/conf/keyFile" }, "sharding" : { "clusterRole" : "shardsvr" }, "storage" : { "dbPath" : "/mnt/mongodb_data/data", "directoryPerDB" : true }, "systemLog" : { "destination" : "file", "logAppend" : true, "path" : "/mnt/mongodb_data/log/mongod.log" } }, "pid" : NumberLong(2225), "buildinfo" : { "version" : "3.4.0", "gitVersion" : "f4240c60f005be757399042dc12f6addbc3170c1", "modules" : [ ], "allocator" : "tcmalloc", "javascriptEngine" : "mozjs", "sysInfo" : "deprecated", "versionArray" : [ 3, 4, 0, 0 ], "openssl" : { "running" : "disabled", "compiled" : "disabled" }, "buildEnvironment" : { "distmod" : "", "distarch" : "x86_64", "cc" : "/opt/mongodbtoolchain/v2/bin/gcc: gcc (GCC) 5.4.0", "ccflags" : "-fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -Werror -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp", "cxx" : "/opt/mongodbtoolchain/v2/bin/g++: g++ (GCC) 5.4.0", "cxxflags" : "-Woverloaded-virtual -Wno-maybe-uninitialized -std=c++11", "linkflags" : "-pthread -Wl,-z,now -rdynamic -Wl,--fatal-warnings -fstack-protector-strong -fuse-ld=gold -Wl,--build-id -Wl,-z,noexecstack -Wl,--warn-execstack -Wl,-z,relro", "target_arch" : "x86_64", "target_os" : "linux" }, "bits" : 64, "debug" : false, "maxBsonObjectSize" : 16777216, "storageEngines" : [ "devnull", "ephemeralForTest", "mmapv1", "wiredTiger" ] } }
{ "_id" : "iZ2zeasmr9abrbq6i9qn1jZ-1517450191318", "hostname" : "iZ2zeasmr9abrbq6i9qn1jZ", "startTime" : ISODate("2018-02-01T01:56:31Z"), "startTimeLocal" : "Thu Feb  1 09:56:31.318", "cmdLine" : { "config" : "/usr/local/mongodb/conf/mongod.conf", "net" : { "bindIp" : "10.144.114.152", "port" : 27017 }, "processManagement" : { "fork" : true, "pidFilePath" : "/usr/local/mongodb/mongo.pid" }, "replication" : { "replSet" : "repl_test" }, "security" : { "keyFile" : "/usr/local/mongodb/conf/keyFile" }, "sharding" : { "clusterRole" : "shardsvr" }, "storage" : { "dbPath" : "/mnt/mongodb_data/data", "directoryPerDB" : true }, "systemLog" : { "destination" : "file", "logAppend" : true, "path" : "/mnt/mongodb_data/log/mongod.log" } }, "pid" : NumberLong(2486), "buildinfo" : { "version" : "3.4.0", "gitVersion" : "f4240c60f005be757399042dc12f6addbc3170c1", "modules" : [ ], "allocator" : "tcmalloc", "javascriptEngine" : "mozjs", "sysInfo" : "deprecated", "versionArray" : [ 3, 4, 0, 0 ], "openssl" : { "running" : "disabled", "compiled" : "disabled" }, "buildEnvironment" : { "distmod" : "", "distarch" : "x86_64", "cc" : "/opt/mongodbtoolchain/v2/bin/gcc: gcc (GCC) 5.4.0", "ccflags" : "-fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -Werror -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp", "cxx" : "/opt/mongodbtoolchain/v2/bin/g++: g++ (GCC) 5.4.0", "cxxflags" : "-Woverloaded-virtual -Wno-maybe-uninitialized -std=c++11", "linkflags" : "-pthread -Wl,-z,now -rdynamic -Wl,--fatal-warnings -fstack-protector-strong -fuse-ld=gold -Wl,--build-id -Wl,-z,noexecstack -Wl,--warn-execstack -Wl,-z,relro", "target_arch" : "x86_64", "target_os" : "linux" }, "bits" : 64, "debug" : false, "maxBsonObjectSize" : 16777216, "storageEngines" : [ "devnull", "ephemeralForTest", "mmapv1", "wiredTiger" ] } }
{ "_id" : "e-1543451530049", "hostname" : "e", "startTime" : ISODate("2018-11-29T00:32:10Z"), "startTimeLocal" : "Thu Nov 29 08:32:10.049", "cmdLine" : { "config" : "/usr/local/mongodb/conf/mongod.conf", "net" : { "bindIp" : "10.144.114.152", "port" : 27017 }, "processManagement" : { "fork" : true, "pidFilePath" : "/usr/local/mongodb/mongo.pid" }, "replication" : { "replSet" : "repl_test" }, "security" : { "keyFile" : "/usr/local/mongodb/conf/keyFile" }, "sharding" : { "clusterRole" : "shardsvr" }, "storage" : { "dbPath" : "/mnt/mongodb_data/data", "directoryPerDB" : true }, "systemLog" : { "destination" : "file", "logAppend" : true, "path" : "/mnt/mongodb_data/log/mongod.log" } }, "pid" : NumberLong(15746), "buildinfo" : { "version" : "3.4.0", "gitVersion" : "f4240c60f005be757399042dc12f6addbc3170c1", "modules" : [ ], "allocator" : "tcmalloc", "javascriptEngine" : "mozjs", "sysInfo" : "deprecated", "versionArray" : [ 3, 4, 0, 0 ], "openssl" : { "running" : "disabled", "compiled" : "disabled" }, "buildEnvironment" : { "distmod" : "", "distarch" : "x86_64", "cc" : "/opt/mongodbtoolchain/v2/bin/gcc: gcc (GCC) 5.4.0", "ccflags" : "-fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -Werror -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp", "cxx" : "/opt/mongodbtoolchain/v2/bin/g++: g++ (GCC) 5.4.0", "cxxflags" : "-Woverloaded-virtual -Wno-maybe-uninitialized -std=c++11", "linkflags" : "-pthread -Wl,-z,now -rdynamic -Wl,--fatal-warnings -fstack-protector-strong -fuse-ld=gold -Wl,--build-id -Wl,-z,noexecstack -Wl,--warn-execstack -Wl,-z,relro", "target_arch" : "x86_64", "target_os" : "linux" }, "bits" : 64, "debug" : false, "maxBsonObjectSize" : 16777216, "storageEngines" : [ "devnull", "ephemeralForTest", "mmapv1", "wiredTiger" ] } }
{ "_id" : "e-1543452476457", "hostname" : "e", "startTime" : ISODate("2018-11-29T00:47:56Z"), "startTimeLocal" : "Thu Nov 29 08:47:56.457", "cmdLine" : { "config" : "/usr/local/mongodb/conf/mongod.conf", "net" : { "bindIp" : "10.144.114.152", "port" : 27017 }, "processManagement" : { "fork" : true, "pidFilePath" : "/usr/local/mongodb/mongo.pid" }, "replication" : { "replSet" : "repl_test" }, "security" : { "keyFile" : "/usr/local/mongodb/conf/keyFile" }, "sharding" : { "clusterRole" : "shardsvr" }, "storage" : { "dbPath" : "/mnt/mongodb_data/data", "directoryPerDB" : true }, "systemLog" : { "destination" : "file", "logAppend" : true, "path" : "/mnt/mongodb_data/log/mongod2018-11-28-08-40.log" } }, "pid" : NumberLong(20120), "buildinfo" : { "version" : "3.4.0", "gitVersion" : "f4240c60f005be757399042dc12f6addbc3170c1", "modules" : [ ], "allocator" : "tcmalloc", "javascriptEngine" : "mozjs", "sysInfo" : "deprecated", "versionArray" : [ 3, 4, 0, 0 ], "openssl" : { "running" : "disabled", "compiled" : "disabled" }, "buildEnvironment" : { "distmod" : "", "distarch" : "x86_64", "cc" : "/opt/mongodbtoolchain/v2/bin/gcc: gcc (GCC) 5.4.0", "ccflags" : "-fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -Werror -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp", "cxx" : "/opt/mongodbtoolchain/v2/bin/g++: g++ (GCC) 5.4.0", "cxxflags" : "-Woverloaded-virtual -Wno-maybe-uninitialized -std=c++11", "linkflags" : "-pthread -Wl,-z,now -rdynamic -Wl,--fatal-warnings -fstack-protector-strong -fuse-ld=gold -Wl,--build-id -Wl,-z,noexecstack -Wl,--warn-execstack -Wl,-z,relro", "target_arch" : "x86_64", "target_os" : "linux" }, "bits" : 64, "debug" : false, "maxBsonObjectSize" : 16777216, "storageEngines" : [ "devnull", "ephemeralForTest", "mmapv1", "wiredTiger" ] } }
{ "_id" : "e-1543453236613", "hostname" : "e", "startTime" : ISODate("2018-11-29T01:00:36Z"), "startTimeLocal" : "Thu Nov 29 09:00:36.613", "cmdLine" : { "config" : "/usr/local/mongodb/conf/mongod.conf", "net" : { "bindIp" : "10.144.114.152", "port" : 27017 }, "processManagement" : { "fork" : true, "pidFilePath" : "/usr/local/mongodb/mongo.pid" }, "replication" : { "replSet" : "repl_test" }, "security" : { "keyFile" : "/usr/local/mongodb/conf/keyFile" }, "sharding" : { "clusterRole" : "shardsvr" }, "storage" : { "dbPath" : "/mnt/mongodb_data/data", "directoryPerDB" : true }, "systemLog" : { "destination" : "file", "logAppend" : true, "path" : "/mnt/mongodb_data/log/mongod2018-11-28-08-40.log" } }, "pid" : NumberLong(8243), "buildinfo" : { "version" : "3.4.0", "gitVersion" : "f4240c60f005be757399042dc12f6addbc3170c1", "modules" : [ ], "allocator" : "tcmalloc", "javascriptEngine" : "mozjs", "sysInfo" : "deprecated", "versionArray" : [ 3, 4, 0, 0 ], "openssl" : { "running" : "disabled", "compiled" : "disabled" }, "buildEnvironment" : { "distmod" : "", "distarch" : "x86_64", "cc" : "/opt/mongodbtoolchain/v2/bin/gcc: gcc (GCC) 5.4.0", "ccflags" : "-fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -Werror -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp", "cxx" : "/opt/mongodbtoolchain/v2/bin/g++: g++ (GCC) 5.4.0", "cxxflags" : "-Woverloaded-virtual -Wno-maybe-uninitialized -std=c++11", "linkflags" : "-pthread -Wl,-z,now -rdynamic -Wl,--fatal-warnings -fstack-protector-strong -fuse-ld=gold -Wl,--build-id -Wl,-z,noexecstack -Wl,--warn-execstack -Wl,-z,relro", "target_arch" : "x86_64", "target_os" : "linux" }, "bits" : 64, "debug" : false, "maxBsonObjectSize" : 16777216, "storageEngines" : [ "devnull", "ephemeralForTest", "mmapv1", "wiredTiger" ] } }
{ "_id" : "e-1543453295249", "hostname" : "e", "startTime" : ISODate("2018-11-29T01:01:35Z"), "startTimeLocal" : "Thu Nov 29 09:01:35.250", "cmdLine" : { "config" : "/usr/local/mongodb/conf/mongod.conf", "net" : { "bindIp" : "10.144.114.152", "port" : 27017 }, "processManagement" : { "fork" : true, "pidFilePath" : "/usr/local/mongodb/mongo.pid" }, "replication" : { "replSet" : "repl_test" }, "security" : { "keyFile" : "/usr/local/mongodb/conf/keyFile" }, "sharding" : { "clusterRole" : "shardsvr" }, "storage" : { "dbPath" : "/mnt/mongodb_data/data", "directoryPerDB" : true }, "systemLog" : { "destination" : "file", "logAppend" : true, "path" : "/mnt/mongodb_data/log/mongod2018-11-28-08-40.log" } }, "pid" : NumberLong(10609), "buildinfo" : { "version" : "3.4.0", "gitVersion" : "f4240c60f005be757399042dc12f6addbc3170c1", "modules" : [ ], "allocator" : "tcmalloc", "javascriptEngine" : "mozjs", "sysInfo" : "deprecated", "versionArray" : [ 3, 4, 0, 0 ], "openssl" : { "running" : "disabled", "compiled" : "disabled" }, "buildEnvironment" : { "distmod" : "", "distarch" : "x86_64", "cc" : "/opt/mongodbtoolchain/v2/bin/gcc: gcc (GCC) 5.4.0", "ccflags" : "-fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -Werror -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp", "cxx" : "/opt/mongodbtoolchain/v2/bin/g++: g++ (GCC) 5.4.0", "cxxflags" : "-Woverloaded-virtual -Wno-maybe-uninitialized -std=c++11", "linkflags" : "-pthread -Wl,-z,now -rdynamic -Wl,--fatal-warnings -fstack-protector-strong -fuse-ld=gold -Wl,--build-id -Wl,-z,noexecstack -Wl,--warn-execstack -Wl,-z,relro", "target_arch" : "x86_64", "target_os" : "linux" }, "bits" : 64, "debug" : false, "maxBsonObjectSize" : 16777216, "storageEngines" : [ "devnull", "ephemeralForTest", "mmapv1", "wiredTiger" ] } }
{ "_id" : "e-1544840307124", "hostname" : "e", "startTime" : ISODate("2018-12-15T02:18:27Z"), "startTimeLocal" : "Sat Dec 15 10:18:27.124", "cmdLine" : { "config" : "/usr/local/mongodb/conf/mongod.conf", "net" : { "bindIp" : "10.144.114.152", "port" : 27017 }, "processManagement" : { "fork" : true, "pidFilePath" : "/usr/local/mongodb/mongo.pid" }, "replication" : { "replSet" : "repl_test" }, "security" : { "keyFile" : "/usr/local/mongodb/conf/keyFile" }, "sharding" : { "clusterRole" : "shardsvr" }, "storage" : { "dbPath" : "/mnt/mongodb_data/data", "directoryPerDB" : true }, "systemLog" : { "destination" : "file", "logAppend" : true, "path" : "/mnt/mongodb_data/log/mongod2018-11-28-08-40.log" } }, "pid" : NumberLong(26736), "buildinfo" : { "version" : "3.4.0", "gitVersion" : "f4240c60f005be757399042dc12f6addbc3170c1", "modules" : [ ], "allocator" : "tcmalloc", "javascriptEngine" : "mozjs", "sysInfo" : "deprecated", "versionArray" : [ 3, 4, 0, 0 ], "openssl" : { "running" : "disabled", "compiled" : "disabled" }, "buildEnvironment" : { "distmod" : "", "distarch" : "x86_64", "cc" : "/opt/mongodbtoolchain/v2/bin/gcc: gcc (GCC) 5.4.0", "ccflags" : "-fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -Werror -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp", "cxx" : "/opt/mongodbtoolchain/v2/bin/g++: g++ (GCC) 5.4.0", "cxxflags" : "-Woverloaded-virtual -Wno-maybe-uninitialized -std=c++11", "linkflags" : "-pthread -Wl,-z,now -rdynamic -Wl,--fatal-warnings -fstack-protector-strong -fuse-ld=gold -Wl,--build-id -Wl,-z,noexecstack -Wl,--warn-execstack -Wl,-z,relro", "target_arch" : "x86_64", "target_os" : "linux" }, "bits" : 64, "debug" : false, "maxBsonObjectSize" : 16777216, "storageEngines" : [ "devnull", "ephemeralForTest", "mmapv1", "wiredTiger" ] } }
{ "_id" : "e-1545112384326", "hostname" : "e", "startTime" : ISODate("2018-12-18T05:53:04Z"), "startTimeLocal" : "Tue Dec 18 13:53:04.326", "cmdLine" : { "config" : "/usr/local/mongodb/conf/mongod.conf", "net" : { "bindIp" : "10.144.114.152", "port" : 27017 }, "processManagement" : { "fork" : true, "pidFilePath" : "/usr/local/mongodb/mongo.pid" }, "replication" : { "replSet" : "repl_test" }, "security" : { "keyFile" : "/usr/local/mongodb/conf/keyFile" }, "sharding" : { "clusterRole" : "shardsvr" }, "storage" : { "dbPath" : "/mnt/mongodb_data/data", "directoryPerDB" : true }, "systemLog" : { "destination" : "file", "logAppend" : true, "path" : "/mnt/mongodb_data/log/mongod2018-11-28-08-40.log" } }, "pid" : NumberLong(8895), "buildinfo" : { "version" : "3.4.0", "gitVersion" : "f4240c60f005be757399042dc12f6addbc3170c1", "modules" : [ ], "allocator" : "tcmalloc", "javascriptEngine" : "mozjs", "sysInfo" : "deprecated", "versionArray" : [ 3, 4, 0, 0 ], "openssl" : { "running" : "disabled", "compiled" : "disabled" }, "buildEnvironment" : { "distmod" : "", "distarch" : "x86_64", "cc" : "/opt/mongodbtoolchain/v2/bin/gcc: gcc (GCC) 5.4.0", "ccflags" : "-fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -Werror -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp", "cxx" : "/opt/mongodbtoolchain/v2/bin/g++: g++ (GCC) 5.4.0", "cxxflags" : "-Woverloaded-virtual -Wno-maybe-uninitialized -std=c++11", "linkflags" : "-pthread -Wl,-z,now -rdynamic -Wl,--fatal-warnings -fstack-protector-strong -fuse-ld=gold -Wl,--build-id -Wl,-z,noexecstack -Wl,--warn-execstack -Wl,-z,relro", "target_arch" : "x86_64", "target_os" : "linux" }, "bits" : 64, "debug" : false, "maxBsonObjectSize" : 16777216, "storageEngines" : [ "devnull", "ephemeralForTest", "mmapv1", "wiredTiger" ] } }
{ "_id" : "e-1545960240009", "hostname" : "e", "startTime" : ISODate("2018-12-28T01:24:00Z"), "startTimeLocal" : "Fri Dec 28 09:24:00.009", "cmdLine" : { "config" : "/usr/local/mongodb/conf/mongod.conf", "net" : { "port" : 27017 }, "processManagement" : { "fork" : true, "pidFilePath" : "/usr/local/mongodb/mongo.pid" }, "replication" : { "replSet" : "repl_test" }, "security" : { "keyFile" : "/usr/local/mongodb/conf/keyFile" }, "sharding" : { "clusterRole" : "shardsvr" }, "storage" : { "dbPath" : "/mnt/mongodb_data/data", "directoryPerDB" : true }, "systemLog" : { "destination" : "file", "logAppend" : true, "path" : "/mnt/mongodb_data/log/mongod2018-11-28-08-40.log" } }, "pid" : NumberLong(27804), "buildinfo" : { "version" : "3.4.0", "gitVersion" : "f4240c60f005be757399042dc12f6addbc3170c1", "modules" : [ ], "allocator" : "tcmalloc", "javascriptEngine" : "mozjs", "sysInfo" : "deprecated", "versionArray" : [ 3, 4, 0, 0 ], "openssl" : { "running" : "disabled", "compiled" : "disabled" }, "buildEnvironment" : { "distmod" : "", "distarch" : "x86_64", "cc" : "/opt/mongodbtoolchain/v2/bin/gcc: gcc (GCC) 5.4.0", "ccflags" : "-fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -Werror -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp", "cxx" : "/opt/mongodbtoolchain/v2/bin/g++: g++ (GCC) 5.4.0", "cxxflags" : "-Woverloaded-virtual -Wno-maybe-uninitialized -std=c++11", "linkflags" : "-pthread -Wl,-z,now -rdynamic -Wl,--fatal-warnings -fstack-protector-strong -fuse-ld=gold -Wl,--build-id -Wl,-z,noexecstack -Wl,--warn-execstack -Wl,-z,relro", "target_arch" : "x86_64", "target_os" : "linux" }, "bits" : 64, "debug" : false, "maxBsonObjectSize" : 16777216, "storageEngines" : [ "devnull", "ephemeralForTest", "mmapv1", "wiredTiger" ] } }
{ "_id" : "e-1545960877036", "hostname" : "e", "startTime" : ISODate("2018-12-28T01:34:37Z"), "startTimeLocal" : "Fri Dec 28 09:34:37.036", "cmdLine" : { "config" : "/usr/local/mongodb/conf/mongod.conf", "net" : { "port" : 27017 }, "processManagement" : { "fork" : true, "pidFilePath" : "/usr/local/mongodb/mongo.pid" }, "replication" : { "replSet" : "repl_test" }, "security" : { "keyFile" : "/usr/local/mongodb/conf/keyFile" }, "sharding" : { "clusterRole" : "shardsvr" }, "storage" : { "dbPath" : "/mnt/mongodb_data/data", "directoryPerDB" : true }, "systemLog" : { "destination" : "file", "logAppend" : true, "path" : "/mnt/mongodb_data/log/mongod2018-11-28-08-40.log" } }, "pid" : NumberLong(31316), "buildinfo" : { "version" : "3.4.0", "gitVersion" : "f4240c60f005be757399042dc12f6addbc3170c1", "modules" : [ ], "allocator" : "tcmalloc", "javascriptEngine" : "mozjs", "sysInfo" : "deprecated", "versionArray" : [ 3, 4, 0, 0 ], "openssl" : { "running" : "disabled", "compiled" : "disabled" }, "buildEnvironment" : { "distmod" : "", "distarch" : "x86_64", "cc" : "/opt/mongodbtoolchain/v2/bin/gcc: gcc (GCC) 5.4.0", "ccflags" : "-fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -Werror -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp", "cxx" : "/opt/mongodbtoolchain/v2/bin/g++: g++ (GCC) 5.4.0", "cxxflags" : "-Woverloaded-virtual -Wno-maybe-uninitialized -std=c++11", "linkflags" : "-pthread -Wl,-z,now -rdynamic -Wl,--fatal-warnings -fstack-protector-strong -fuse-ld=gold -Wl,--build-id -Wl,-z,noexecstack -Wl,--warn-execstack -Wl,-z,relro", "target_arch" : "x86_64", "target_os" : "linux" }, "bits" : 64, "debug" : false, "maxBsonObjectSize" : 16777216, "storageEngines" : [ "devnull", "ephemeralForTest", "mmapv1", "wiredTiger" ] } }
{ "_id" : "e-1545961060262", "hostname" : "e", "startTime" : ISODate("2018-12-28T01:37:40Z"), "startTimeLocal" : "Fri Dec 28 09:37:40.262", "cmdLine" : { "config" : "/usr/local/mongodb/conf/mongod.conf", "net" : { "bindIp" : "0.0.0.0", "port" : 27017 }, "processManagement" : { "fork" : true, "pidFilePath" : "/usr/local/mongodb/mongo.pid" }, "replication" : { "replSet" : "repl_test" }, "security" : { "keyFile" : "/usr/local/mongodb/conf/keyFile" }, "sharding" : { "clusterRole" : "shardsvr" }, "storage" : { "dbPath" : "/mnt/mongodb_data/data", "directoryPerDB" : true }, "systemLog" : { "destination" : "file", "logAppend" : true, "path" : "/mnt/mongodb_data/log/mongod2018-11-28-08-40.log" } }, "pid" : NumberLong(471), "buildinfo" : { "version" : "3.4.0", "gitVersion" : "f4240c60f005be757399042dc12f6addbc3170c1", "modules" : [ ], "allocator" : "tcmalloc", "javascriptEngine" : "mozjs", "sysInfo" : "deprecated", "versionArray" : [ 3, 4, 0, 0 ], "openssl" : { "running" : "disabled", "compiled" : "disabled" }, "buildEnvironment" : { "distmod" : "", "distarch" : "x86_64", "cc" : "/opt/mongodbtoolchain/v2/bin/gcc: gcc (GCC) 5.4.0", "ccflags" : "-fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -Werror -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp", "cxx" : "/opt/mongodbtoolchain/v2/bin/g++: g++ (GCC) 5.4.0", "cxxflags" : "-Woverloaded-virtual -Wno-maybe-uninitialized -std=c++11", "linkflags" : "-pthread -Wl,-z,now -rdynamic -Wl,--fatal-warnings -fstack-protector-strong -fuse-ld=gold -Wl,--build-id -Wl,-z,noexecstack -Wl,--warn-execstack -Wl,-z,relro", "target_arch" : "x86_64", "target_os" : "linux" }, "bits" : 64, "debug" : false, "maxBsonObjectSize" : 16777216, "storageEngines" : [ "devnull", "ephemeralForTest", "mmapv1", "wiredTiger" ] } }
{ "_id" : "e-1545963841624", "hostname" : "e", "startTime" : ISODate("2018-12-28T02:24:01Z"), "startTimeLocal" : "Fri Dec 28 10:24:01.624", "cmdLine" : { "config" : "/usr/local/mongodb/conf/mongod.conf", "net" : { "bindIp" : "0.0.0.0", "port" : 27017 }, "processManagement" : { "fork" : true, "pidFilePath" : "/usr/local/mongodb/mongo.pid" }, "replication" : { "replSet" : "repl_test" }, "security" : { "keyFile" : "/usr/local/mongodb/conf/keyFile" }, "sharding" : { "clusterRole" : "shardsvr" }, "storage" : { "dbPath" : "/mnt/mongodb_data/data", "directoryPerDB" : true }, "systemLog" : { "destination" : "file", "logAppend" : true, "path" : "/mnt/mongodb_data/log/mongod2018-11-28-08-40.log" } }, "pid" : NumberLong(9650), "buildinfo" : { "version" : "3.4.0", "gitVersion" : "f4240c60f005be757399042dc12f6addbc3170c1", "modules" : [ ], "allocator" : "tcmalloc", "javascriptEngine" : "mozjs", "sysInfo" : "deprecated", "versionArray" : [ 3, 4, 0, 0 ], "openssl" : { "running" : "disabled", "compiled" : "disabled" }, "buildEnvironment" : { "distmod" : "", "distarch" : "x86_64", "cc" : "/opt/mongodbtoolchain/v2/bin/gcc: gcc (GCC) 5.4.0", "ccflags" : "-fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -Werror -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp", "cxx" : "/opt/mongodbtoolchain/v2/bin/g++: g++ (GCC) 5.4.0", "cxxflags" : "-Woverloaded-virtual -Wno-maybe-uninitialized -std=c++11", "linkflags" : "-pthread -Wl,-z,now -rdynamic -Wl,--fatal-warnings -fstack-protector-strong -fuse-ld=gold -Wl,--build-id -Wl,-z,noexecstack -Wl,--warn-execstack -Wl,-z,relro", "target_arch" : "x86_64", "target_os" : "linux" }, "bits" : 64, "debug" : false, "maxBsonObjectSize" : 16777216, "storageEngines" : [ "devnull", "ephemeralForTest", "mmapv1", "wiredTiger" ] } }

2018年12月28日 10:59:25
repl_test:PRIMARY> db.oplog.rs.find({})
{ "ts" : Timestamp(1545217137, 170), "t" : NumberLong(19), "h" : NumberLong("-1781776396252632785"), "v" : 2, "op" : "i", "ns" : "personas.huoke_cleaning", "o" : { "_id" : ObjectId("5c1a247109af7634930ff1dd"), "ip" : "120.34.129.214", "service_id" : 6, "stay_duration" : 1544331036, "page" : "http://unionv4.g3user.com/index/union/click?ad_id=34002015&id=1001&uid=34002015&hf=http://site.leshou.com/s/54910057.html&referer=http://site.leshou.com/section/80&key=%E6%AC%A7%E5%B0%9A%E8%B6%85%E5%B8%82%E5%8D%A1%E5%9B%9E%E6%94%B6&username=zhutian682", "os_version" : "Windows7", "event_timestamp" : 1544331036, "visit_area" : "福建省漳州市", "uid" : 34002015, "source" : 1 } }
{ "ts" : Timestamp(1545217137, 171), "t" : NumberLong(19), "h" : NumberLong("2890024439848867019"), "v" : 2, "op" : "i", "ns" : "personas.huoke_cleaning", "o" : { "_id" : ObjectId("5c1a247109af7634930ff1e2"), "ip" : "112.0.171.229", "service_id" : 3, "stay_duration" : 36, "page" : "http://wpa.qq.com/msgrd?v=3&uin=1455034128&site=qq&menu=yes", "os_version" : "WindowsXP", "event_timestamp" : 1544331613, "visit_area" : "江苏省南通市", "uid" : 50017937, "source" : 2 } }
{ "ts" : Timestamp(1545217137, 172), "t" : NumberLong(19), "h" : NumberLong("5202137518886750842"), "v" : 2, "op" : "i", "ns" : "personas.huoke_cleaning", "o" : { "_id" : ObjectId("5c1a247109af7634930ff1e5"), "ip" : "113.70.146.16", "service_id" : 6, "stay_duration" : 1544331937, "page" : "http://unionv4.g3user.com/index/union/click?ad_id=34020780&id=4704&uid=34020780&hf=http://changsha.qd8.com.cn/zhaoji/xinxi16_92162.html&referer=http://changsha.qd8.com.cn/zhaoji/xinxi16_92162.html&key=%E5%9B%B4%E6%A3%8B%E5%9F%B9%E8%AE%AD%E4%B8%AD%E5%BF%83&username=yitongkang", "os_version" : "Windows8.1", "event_timestamp" : 1544331937, "visit_area" : "广东省佛山市", "uid" : 34020780, "source" : 1 } }
{ "ts" : Timestamp(1545217137, 173), "t" : NumberLong(19), "h" : NumberLong("1620555974171776218"), "v" : 2, "op" : "i", "ns" : "personas.huoke_cleaning", "o" : { "_id" : ObjectId("5c1a247109af7634930ff1ef"), "ip" : "180.175.124.182", "service_id" : 6, "stay_duration" : 1544331953, "page" : "http://unionv4.g3user.com/index/union/click?ad_id=50013739&id=1001&uid=50013739&hf=http://site.leshou.com/s/54910057.html&referer=http://site.leshou.com/s/54909998.html&key=%E5%BA%9F%E6%97%A7%E9%87%91%E5%B1%9E%E5%9B%9E%E6%94%B6&username=huizhoulzwz", "os_version" : "Windows7", "event_timestamp" : 1544331953, "visit_area" : "上海市", "uid" : 50013739, "source" : 1 } }
{ "ts" : Timestamp(1545217137, 174), "t" : NumberLong(19), "h" : NumberLong("5653553105496248054"), "v" : 2, "op" : "i", "ns" : "personas.huoke_cleaning", "o" : { "_id" : ObjectId("5c1a247109af7634930ff1f4"), "ip" : "218.207.198.95", "service_id" : 6, "stay_duration" : 1544332101, "page" : "http://unionv4.g3user.com/index/union/click?ad_id=34062603&id=1001&uid=34062603&hf=http://site.leshou.com/s/54910188.html&referer=&key=%E9%AB%98%E7%AB%AF%E4%BA%BA%E6%89%8D%E6%8B%9B%E8%81%98&username=ltzp1688", "os_version" : "Windows8.1", "event_timestamp" : 1544332101, "visit_area" : "福建省泉州市晋江县", "uid" : 34062603, "source" : 1 } }
{ "ts" : Timestamp(1545217137, 175), "t" : NumberLong(19), "h" : NumberLong("-8678353648554451718"), "v" : 2, "op" : "i", "ns" : "personas.huoke_cleaning", "o" : { "_id" : ObjectId("5c1a247109af7634930ff1f7"), "ip" : "42.234.89.153", "service_id" : 6, "stay_duration" : 1544332107, "page" : "http://unionv4.g3user.com/index/union/click?ad_id=34055748&id=1001&uid=34055748&hf=http://site.leshou.com/s/54910057.html&referer=http://leshou.com/register&key=%E4%B8%96%E7%BA%AA%E9%BB%84%E9%87%91%E9%A5%B0%E5%93%81&username=changshasj", "os_version" : "Windows10", "event_timestamp" : 1544332107, "visit_area" : "河南省南阳市", "uid" : 34055748, "source" : 1 } }
{ "ts" : Timestamp(1545217137, 176), "t" : NumberLong(19), "h" : NumberLong("-4357728515195730632"), "v" : 2, "op" : "i", "ns" : "personas.huoke_cleaning", "o" : { "_id" : ObjectId("5c1a247109af7634930ff203"), "ip" : "218.75.200.137", "service_id" : 6, "stay_duration" : 1544332124, "page" : "http://unionv4.g3user.com/index/union/click?ad_id=34020855&id=1001&uid=34020855&hf=http://site.leshou.com/s/54910057.html&referer=https://m.baidu.com/ssid=83edc0cfc4a9cab1b4faa383/from=2001a/s?word=%e4%b8%8a%e6%b5%b7%e4%b8%96%e7%ba%aa%e4%bb%a3%e6%80%80%e5%ad%95%e5%85%ac%e5%8f%b8%ef%bc%8c%e4%b8%8a%e6%b5%b7%e4%b8%96%e7%ba%aa%e4%bb%a3%e6%80%80%e5%ad%95%e5%85%ac%e5%8f%b8%e5%ae%98%e7%bd%91%ef%bc%8c%e4%bb%a3%e5%a6%88%e6%8b%9b%e8%81%98%ef%bc%8c%e6%8b%9b%e8%81%98%e4%bb%a3%e5%a6%88&key=%E6%8C%82%E7%94%BB%E5%88%B6%E4%BD%9C%E5%85%AC%E5%8F%B8&username=puyixiangce", "os_version" : "Windows7", "event_timestamp" : 1544332124, "visit_area" : "湖南省株洲市", "uid" : 34020855, "source" : 1 } }
{ "ts" : Timestamp(1545217137, 177), "t" : NumberLong(19), "h" : NumberLong("-728410440672613030"), "v" : 2, "op" : "i", "ns" : "personas.huoke_cleaning", "o" : { "_id" : ObjectId("5c1a247109af7634930ff207"), "ip" : "171.15.18.76", "service_id" : 6, "stay_duration" : 1544332142, "page" : "http://unionv4.g3user.com/index/union/click?ad_id=50007714&id=1001&uid=50007714&hf=http://site.leshou.com/s/54910127.html&referer=http://site.leshou.com/s/54910188.html&key=%E5%BE%AE%E5%95%86%E5%81%9A%E4%BB%80%E4%B9%88%E6%9C%80%E8%B5%9A%E9%92%B1&username=weilaixiaoqi", "os_version" : "Windows7", "event_timestamp" : 1544332142, "visit_area" : "河南省漯河市", "uid" : 50007714, "source" : 1 } }
{ "ts" : Timestamp(1545217137, 178), "t" : NumberLong(19), "h" : NumberLong("-5505168652968433719"), "v" : 2, "op" : "i", "ns" : "personas.huoke_cleaning", "o" : { "_id" : ObjectId("5c1a247109af7634930ff20b"), "ip" : "218.75.200.137", "service_id" : 6, "stay_duration" : 25, "page" : "http://unionv4.g3user.com/index/union/click?ad_id=50013739&id=1001&uid=50013739&hf=http://site.leshou.com/s/54910057.html&referer=https://m.baidu.com/ssid=83edc0cfc4a9cab1b4faa383/from=2001a/s?word=%e4%b8%8a%e6%b5%b7%e4%b8%96%e7%ba%aa%e4%bb%a3%e6%80%80%e5%ad%95%e5%85%ac%e5%8f%b8%ef%bc%8c%e4%b8%8a%e6%b5%b7%e4%b8%96%e7%ba%aa%e4%bb%a3%e6%80%80%e5%ad%95%e5%85%ac%e5%8f%b8%e5%ae%98%e7%bd%91%ef%bc%8c%e4%bb%a3%e5%a6%88%e6%8b%9b%e8%81%98%ef%bc%8c%e6%8b%9b%e8%81%98%e4%bb%a3%e5%a6%88&key=%E5%BA%9F%E6%97%A7%E9%87%91%E5%B1%9E%E5%9B%9E%E6%94%B6&username=huizhoulzwz", "os_version" : "Windows7", "event_timestamp" : 1544332149, "visit_area" : "湖南省株洲市", "uid" : 50013739, "source" : 1 } }
{ "ts" : Timestamp(1545217137, 179), "t" : NumberLong(19), "h" : NumberLong("-3506194603762633448"), "v" : 2, "op" : "i", "ns" : "personas.huoke_cleaning", "o" : { "_id" : ObjectId("5c1a247109af7634930ff210"), "ip" : "218.56.158.125", "service_id" : 6, "stay_duration" : 1544332178, "page" : "http://unionv4.g3user.com/index/union/click?ad_id=34054885&id=1001&uid=34054885&hf=http://site.leshou.com/s/54910188.html&referer=https://m.baidu.com/ssid=83edc0cfc4a9cab1b4faa383/from=2001a/s?word=%e4%bb%a3%e5%a6%88%e6%8b%9b%e8%81%98%ef%bc%8c%e6%8b%9b%e8%81%98%e4%bb%a3%e5%a6%88%ef%bc%8c%e4%b8%8a%e6%b5%b7%e4%bb%a3%e5%a6%88%e6%8b%9b%e8%81%98%ef%bc%8c%e5%b9%bf%e5%b7%9e%e4%bb%a3%e5%a6%88%e6%8b%9b%e8%81%98%ef%bc%8c%e8%af%95%e7%ae%a1%e4%bb%a3%e5%a6%88%e6%8b%9b%e8%81%98%ef%bc%8c%e9%ab%98%e8%96%aa%e6%8b%9b%e8%81%98%e4%bb%a3%e5%a6%88%ef%bc%8c%e4%b8%8a%e6%b5%b7%e4%bb%a3%e5%a6%88%e6%8b%9b%e8%81%98%e5%85%ac%e5%8f%b8%ef%bc%8c%e4%b8%8a%e6%b5%b7%e4%b8%96%e7%ba%aa%e4%bb%a3%e5%a6%88%e6%8b%9b%e8%81%98&key=%E4%BA%BA%E6%89%8D%E6%8B%9B%E8%81%98&username=yuhui888", "os_version" : "Windows7", "event_timestamp" : 1544332178, "visit_area" : "山东省日照市", "uid" : 34054885, "source" : 1 } }
{ "ts" : Timestamp(1545217137, 180), "t" : NumberLong(19), "h" : NumberLong("-2376909963146641923"), "v" : 2, "op" : "i", "ns" : "personas.huoke_cleaning", "o" : { "_id" : ObjectId("5c1a247109af7634930ff219"), "ip" : "222.16.42.132", "service_id" : 6, "stay_duration" : 1544332210, "page" : "http://unionv4.g3user.com/index/union/click?ad_id=34062832&id=1001&uid=34062832&hf=http://site.leshou.com/s/54910090.html&referer=https://m.baidu.com/ssid=83edc0cfc4a9cab1b4faa383/from=2001a/s?word=%e4%bb%a3%e5%a6%88%e6%8b%9b%e8%81%98%ef%bc%8c%e4%bb%a3%e5%a6%88%e6%8b%9b%e8%81%9822%e4%b8%87%e8%b5%b7%ef%bc%8c%e6%8b%9b%e8%81%98%e4%bb%a3%e5%a6%88%ef%bc%8c%e6%8b%9b%e8%81%98%e4%bb%a3%e5%a6%8822%e4%b8%87%e8%b5%b7%ef%bc%8c%e4%b8%8a%e6%b5%b7%e4%bb%a3%e5%a6%88%e6%8b%9b%e8%81%98%ef%bc%8c%e8%af%95%e7%ae%a1%e4%bb%a3%e5%a6%88%e6%8b%9b%e8%81%98%ef%bc%8c%e5%b9%bf%e5%b7%9e%e4%bb%a3%e5%a6%88%e6%8b%9b%e8%81%98%ef%bc%8c%e9%ab%98%e8%96%aa%e6%8b%9b%e8%81%98%e4%bb%a3%e5%a6%88&key=%E6%83%A0%E9%98%B3%E6%99%AE%E5%B7%A5%E6%8B%9B%E8%81%98&username=huizhouxylw1", "os_version" : "Windows10", "event_timestamp" : 1544332210, "visit_area" : "广东省广州市", "uid" : 34062832, "source" : 1 } }
{ "ts" : Timestamp(1545217137, 181), "t" : NumberLong(19), "h" : NumberLong("3123742561629883849"), "v" : 2, "op" : "i", "ns" : "personas.huoke_cleaning", "o" : { "_id" : ObjectId("5c1a247109af7634930ff221"), "ip" : "218.18.76.215", "service_id" : 6, "stay_duration" : 1544332213, "page" : "http://unionv4.g3user.com/index/union/click?ad_id=34002015&id=1001&uid=34002015&hf=http://site.leshou.com/s/54910057.html&referer=http://site.leshou.com/s/54910057.html&key=%E6%AC%A7%E5%B0%9A%E8%B6%85%E5%B8%82%E5%8D%A1%E5%9B%9E%E6%94%B6&username=zhutian682", "os_version" : "Windows7", "event_timestamp" : 1544332213, "visit_area" : "广东省深圳市宝安区", "uid" : 34002015, "source" : 1 } }
{ "ts" : Timestamp(1545217137, 182), "t" : NumberLong(19), "h" : NumberLong("-553746934492587590"), "v" : 2, "op" : "i", "ns" : "personas.huoke_cleaning", "o" : { "_id" : ObjectId("5c1a247109af7634930ff228"), "ip" : "218.18.76.215", "service_id" : 6, "stay_duration" : 1544332214, "page" : "http://unionv4.g3user.com/index/union/click?ad_id=34049152&id=1001&uid=34049152&hf=http://site.leshou.com/s/54910090.html&referer=https://www.baidu.com/s?wd=%e4%bb%a3%e5%a6%88%e6%8b%9b%e8%81%98%ef%bc%8c%e4%bb%a3%e5%a6%88%e6%8b%9b%e8%81%9822%e4%b8%87%e8%b5%b7%ef%bc%8c%e6%8b%9b%e8%81%98%e4%bb%a3%e5%a6%88%ef%bc%8c%e6%8b%9b%e8%81%98%e4%bb%a3%e5%a6%8822%e4%b8%87%e8%b5%b7%ef%bc%8c%e4%b8%8a%e6%b5%b7%e4%bb%a3%e5%a6%88%e6%8b%9b%e8%81%98%ef%bc%8c%e8%af%95%e7%ae%a1%e4%bb%a3%e5%a6%88%e6%8b%9b%e8%81%98%ef%bc%8c%e5%b9%bf%e5%b7%9e%e4%bb%a3%e5%a6%88%e6%8b%9b%e8%81%98%ef%bc%8c%e9%ab%98%e8%96%aa%e6%8b%9b%e8%81%98%e4%bb%a3%e5%a6%88&key=%E4%BA%BA%E6%89%8D%E6%8B%9B%E8%81%98&username=xdlw1688", "os_version" : "Windows8.1", "event_timestamp" : 1544332214, "visit_area" : "广东省深圳市宝安区", "uid" : 34049152, "source" : 1 } }
{ "ts" : Timestamp(1545217137, 183), "t" : NumberLong(19), "h" : NumberLong("4016501741450240438"), "v" : 2, "op" : "u", "ns" : "statistics_visit.sta_ids", "o2" : { "_id" : "ip_ids" }, "o" : { "$set" : { "id" : 4328026 } } }
{ "ts" : Timestamp(1545217137, 184), "t" : NumberLong(19), "h" : NumberLong("-3504779621952126056"), "v" : 2, "op" : "i", "ns" : "personas.huoke_cleaning", "o" : { "_id" : ObjectId("5c1a247109af7634930ff230"), "ip" : "114.249.119.10", "service_id" : 6, "stay_duration" : 1544332257, "page" : "http://unionv4.g3user.com/index/union/click?ad_id=34062832&id=1001&uid=34062832&hf=http://site.leshou.com/s/54910090.html&referer=https://www.baidu.com/s?wd=%e4%bb%a3%e5%a6%88%e6%8b%9b%e8%81%98%ef%bc%8c%e4%bb%a3%e5%a6%88%e6%8b%9b%e8%81%9822%e4%b8%87%e8%b5%b7%ef%bc%8c%e6%8b%9b%e8%81%98%e4%bb%a3%e5%a6%88%ef%bc%8c%e6%8b%9b%e8%81%98%e4%bb%a3%e5%a6%8822%e4%b8%87%e8%b5%b7%ef%bc%8c%e4%b8%8a%e6%b5%b7%e4%bb%a3%e5%a6%88%e6%8b%9b%e8%81%98%ef%bc%8c%e8%af%95%e7%ae%a1%e4%bb%a3%e5%a6%88%e6%8b%9b%e8%81%98%ef%bc%8c%e5%b9%bf%e5%b7%9e%e4%bb%a3%e5%a6%88%e6%8b%9b%e8%81%98%ef%bc%8c%e9%ab%98%e8%96%aa%e6%8b%9b%e8%81%98%e4%bb%a3%e5%a6%88&key=%E6%83%A0%E9%98%B3%E6%99%AE%E5%B7%A5%E6%8B%9B%E8%81%98&username=huizhouxylw1", "os_version" : "WindowsXP", "event_timestamp" : 1544332257, "visit_area" : "北京市", "uid" : 34062832, "source" : 1 } }
{ "ts" : Timestamp(1545217137, 185), "t" : NumberLong(19), "h" : NumberLong("2106960831922705206"), "v" : 2, "op" : "i", "ns" : "statistics_visit.sta_ip", "o" : { "_id" : 4328026, "ip" : 1900069637 } }
{ "ts" : Timestamp(1545217137, 186), "t" : NumberLong(19), "h" : NumberLong("-8272563865950570493"), "v" : 2, "op" : "i", "ns" : "personas.huoke_cleaning", "o" : { "_id" : ObjectId("5c1a247109af7634930ff23d"), "ip" : "120.229.253.186", "service_id" : 6, "stay_duration" : 1544332259, "page" : "http://unionv4.g3user.com/index/union/click?ad_id=34026031&id=1001&uid=34026031&hf=http://site.leshou.com/s/54910090.html&referer=http://site.leshou.com/section/131&key=%E9%AB%98%E9%93%81%E6%8B%9B%E8%81%98&username=yingjie2015", "os_version" : "Windows10", "event_timestamp" : 1544332259, "visit_area" : "中国", "uid" : 34026031, "source" : 1 } }
{ "ts" : Timestamp(1545217137, 187), "t" : NumberLong(19), "h" : NumberLong("-7282821006565344471"), "v" : 2, "op" : "i", "ns" : "personas.huoke_cleaning", "o" : { "_id" : ObjectId("5c1a247109af7634930ff248"), "ip" : "114.249.119.10", "service_id" : 6, "stay_duration" : 1544332259, "page" : "http://unionv4.g3user.com/index/union/click?ad_id=34055748&id=1001&uid=34055748&hf=http://site.leshou.com/s/54910057.html&referer=https://m.baidu.com/ssid=83edc0cfc4a9cab1b4faa383/from=2001a/s?word=%e4%b8%8a%e6%b5%b7%e4%b8%96%e7%ba%aa%e4%bb%a3%e6%80%80%e5%ad%95%e5%85%ac%e5%8f%b8%ef%bc%8c%e4%b8%8a%e6%b5%b7%e4%b8%96%e7%ba%aa%e4%bb%a3%e6%80%80%e5%ad%95%e5%85%ac%e5%8f%b8%e5%ae%98%e7%bd%91%ef%bc%8c%e4%bb%a3%e5%a6%88%e6%8b%9b%e8%81%98%ef%bc%8c%e6%8b%9b%e8%81%98%e4%bb%a3%e5%a6%88&key=%E4%B8%96%E7%BA%AA%E9%BB%84%E9%87%91%E9%A5%B0%E5%93%81&username=changshasj", "os_version" : "Windows10", "event_timestamp" : 1544332259, "visit_area" : "北京市", "uid" : 34055748, "source" : 1 } }
{ "ts" : Timestamp(1545217137, 188), "t" : NumberLong(19), "h" : NumberLong("7948803075218536226"), "v" : 2, "op" : "i", "ns" : "personas.huoke_cleaning", "o" : { "_id" : ObjectId("5c1a247109af7634930ff24e"), "ip" : "219.136.205.76", "service_id" : 6, "stay_duration" : 1544332287, "page" : "http://unionv4.g3user.com/index/union/click?ad_id=34055748&id=1001&uid=34055748&hf=http://site.leshou.com/s/54910057.html&referer=https://m.baidu.com/ssid=83edc0cfc4a9cab1b4faa383/from=2001a/s?word=%e4%b8%8a%e6%b5%b7%e4%b8%96%e7%ba%aa%e4%bb%a3%e6%80%80%e5%ad%95%e5%85%ac%e5%8f%b8%ef%bc%8c%e4%b8%8a%e6%b5%b7%e4%b8%96%e7%ba%aa%e4%bb%a3%e6%80%80%e5%ad%95%e5%85%ac%e5%8f%b8%e5%ae%98%e7%bd%91%ef%bc%8c%e4%bb%a3%e5%a6%88%e6%8b%9b%e8%81%98%ef%bc%8c%e6%8b%9b%e8%81%98%e4%bb%a3%e5%a6%88&key=%E4%B8%96%E7%BA%AA%E9%BB%84%E9%87%91%E9%A5%B0%E5%93%81&username=changshasj", "os_version" : "Windows7", "event_timestamp" : 1544332287, "visit_area" : "广东省广州市海珠区", "uid" : 34055748, "source" : 1 } }
{ "ts" : Timestamp(1545217137, 189), "t" : NumberLong(19), "h" : NumberLong("-6040200049803529583"), "v" : 2, "op" : "i", "ns" : "personas.huoke_cleaning", "o" : { "_id" : ObjectId("5c1a247109af7634930ff255"), "ip" : "123.161.130.165", "service_id" : 6, "stay_duration" : 1544332307, "page" : "http://unionv4.g3user.com/index/union/click?ad_id=34026031&id=1001&uid=34026031&hf=http://site.leshou.com/s/54910090.html&referer=http://site.leshou.com/section/136&key=%E9%AB%98%E9%93%81%E6%8B%9B%E8%81%98&username=yingjie2015", "os_version" : "Windows7", "event_timestamp" : 1544332307, "visit_area" : "河南省南阳市", "uid" : 34026031, "source" : 1 } }
Type "it" for more
repl_test:PRIMARY>


更改ip后

总结:
1、
进入集合local,查看startup_log可以查看启动日志
2、
进入集合local,查看system.replset可以查看复制集合
3、
写入复杂的文档
use test;


var oldSystemReplset={ "_id" : "repl_test", "version" : 2, "protocolVersion" : NumberLong(1), "members" : [ { "_id" : 0, "host" : "10.144.114.152:27017", "arbiterOnly" : false, "buildIndexes" : true, "hidden" : false, "priority" : 1, "tags" : {  }, "slaveDelay" : NumberLong(0), "votes" : 1 }, { "_id" : 1, "host" : "10.144.114.65:27017", "arbiterOnly" : false, "buildIndexes" : true, "hidden" : false, "priority" : 1, "tags" : {  }, "slaveDelay" : NumberLong(0), "votes" : 1 } ], "settings" : { "chainingAllowed" : true, "heartbeatIntervalMillis" : 2000, "heartbeatTimeoutSecs" : 10, "electionTimeoutMillis" : 10000, "catchUpTimeoutMillis" : 2000, "getLastErrorModes" : {  }, "getLastErrorDefaults" : { "w" : 1, "wtimeout" : 0 }, "replicaSetId" : ObjectId("59b7308b7cf595c595ffe5c2") } };

创建集合与写入文档
repl_test:PRIMARY> var oldSystemReplset={ "_id" : "repl_test", "version" : 2, "protocolVersion" : NumberLong(1), "members" : [ { "_id" : 0, "host" : "10.144.114.152:27017", "arbiterOnly" : false, "buildIndexes" : true, "hidden" : false, "priority" : 1, "tags" : {  }, "slaveDelay" : NumberLong(0), "votes" : 1 }, { "_id" : 1, "host" : "10.144.114.65:27017", "arbiterOnly" : false, "buildIndexes" : true, "hidden" : false, "priority" : 1, "tags" : {  }, "slaveDelay" : NumberLong(0), "votes" : 1 } ], "settings" : { "chainingAllowed" : true, "heartbeatIntervalMillis" : 2000, "heartbeatTimeoutSecs" : 10, "electionTimeoutMillis" : 10000, "catchUpTimeoutMillis" : 2000, "getLastErrorModes" : {  }, "getLastErrorDefaults" : { "w" : 1, "wtimeout" : 0 }, "replicaSetId" : ObjectId("59b7308b7cf595c595ffe5c2") } };
repl_test:PRIMARY> oldSystemReplset;
{
        "_id" : "repl_test",
        "version" : 2,
        "protocolVersion" : NumberLong(1),
        "members" : [
                {
                        "_id" : 0,
                        "host" : "10.144.114.152:27017",
                        "arbiterOnly" : false,
                        "buildIndexes" : true,
                        "hidden" : false,
                        "priority" : 1,
                        "tags" : {

                        },
                        "slaveDelay" : NumberLong(0),
                        "votes" : 1
                },
                {
                        "_id" : 1,
                        "host" : "10.144.114.65:27017",
                        "arbiterOnly" : false,
                        "buildIndexes" : true,
                        "hidden" : false,
                        "priority" : 1,
                        "tags" : {

                        },
                        "slaveDelay" : NumberLong(0),
                        "votes" : 1
                }
        ],
        "settings" : {
                "chainingAllowed" : true,
                "heartbeatIntervalMillis" : 2000,
                "heartbeatTimeoutSecs" : 10,
                "electionTimeoutMillis" : 10000,
                "catchUpTimeoutMillis" : 2000,
                "getLastErrorModes" : {

                },
                "getLastErrorDefaults" : {
                        "w" : 1,
                        "wtimeout" : 0
                },
                "replicaSetId" : ObjectId("59b7308b7cf595c595ffe5c2")
        }
}
repl_test:PRIMARY> db.tc.insert(oldSystemReplset);
WriteResult({ "nInserted" : 1 })
repl_test:PRIMARY> db.tc.find({});
{ "_id" : "repl_test", "version" : 2, "protocolVersion" : NumberLong(1), "members" : [ { "_id" : 0, "host" : "10.144.114.152:27017", "arbiterOnly" : false, "buildIndexes" : true, "hidden" : false, "priority" : 1, "tags" : {  }, "slaveDelay" : NumberLong(0), "votes" : 1 }, { "_id" : 1, "host" : "10.144.114.65:27017", "arbiterOnly" : false, "buildIndexes" : true, "hidden" : false, "priority" : 1, "tags" : {  }, "slaveDelay" : NumberLong(0), "votes" : 1 } ], "settings" : { "chainingAllowed" : true, "heartbeatIntervalMillis" : 2000, "heartbeatTimeoutSecs" : 10, "electionTimeoutMillis" : 10000, "catchUpTimeoutMillis" : 2000, "getLastErrorModes" : {  }, "getLastErrorDefaults" : { "w" : 1, "wtimeout" : 0 }, "replicaSetId" : ObjectId("59b7308b7cf595c595ffe5c2") } }
repl_test:PRIMARY>

先清空集合,再插入
db.tc.remove({})

repl_test:PRIMARY> db.tc.remove({})
WriteResult({ "nRemoved" : 1 })
repl_test:PRIMARY> db.tc.find({})
repl_test:PRIMARY> show collections
person
tc
repl_test:PRIMARY>



进入local,热操作
执行计划
1、切换集合
use local;
2、显示当前情况
db.system.replset.find({});
3、定义文档
var newSystemReplset={ "_id" : "repl_test", "version" : 2, "protocolVersion" : NumberLong(1), "members" : [ { "_id" : 0, "host" : "47.1.175.111:27017", "arbiterOnly" : false, "buildIndexes" : true, "hidden" : false, "priority" : 1, "tags" : {  }, "slaveDelay" : NumberLong(0), "votes" : 1 }, { "_id" : 1, "host" : "47.1.175.222:27017", "arbiterOnly" : false, "buildIndexes" : true, "hidden" : false, "priority" : 1, "tags" : {  }, "slaveDelay" : NumberLong(0), "votes" : 1 } ], "settings" : { "chainingAllowed" : true, "heartbeatIntervalMillis" : 2000, "heartbeatTimeoutSecs" : 10, "electionTimeoutMillis" : 10000, "catchUpTimeoutMillis" : 2000, "getLastErrorModes" : {  }, "getLastErrorDefaults" : { "w" : 1, "wtimeout" : 0 }, "replicaSetId" : ObjectId("59b7308b7cf595c595ffe5c2") } };
4、检测变量
newSystemReplset;
5、删除
db.system.replset.remove({});
6、写入
db.system.replset.insert(newSystemReplset);
7、检查
db.system.replset.find({});

实际执行
第5步输入命令,报错
repl_test:PRIMARY> db.system.replset.remove({});
WriteResult({
        "writeError" : {
                "code" : 13,
                "errmsg" : "not authorized on local to execute command { delete: \"system.replset\", deletes: [ { q: {}, limit: 0.0 } ], ordered: true }"
        }
})
repl_test:PRIMARY>

解决方案:
方案1、关闭slave,重试
计划
1>/usr/local/mongodb/bin/mongod  -f  /usr/local/mongodb/conf/mongod.conf  --shutdown
2>重试

测试:

repl_test:PRIMARY> db.system.replset.remove({});
WriteResult({
        "writeError" : {
                "code" : 13,
                "errmsg" : "not authorized on local to execute command { delete: \"system.replset\", deletes: [ { q: {}, limit: 0.0 } ], ordered: true }"
        }
})
repl_test:PRIMARY> db.system.replset.remove({});
2018-12-28T11:50:22.355+0800 I NETWORK  [main] DBClientCursor::init call() failed
2018-12-28T11:50:22.356+0800 E QUERY    [main] Error: Error: error doing query: failed :
DBCollection.prototype.remove@src/mongo/shell/collection.js:465:23
@(shell):1:1
2018-12-28T11:50:22.357+0800 I NETWORK  [main] trying reconnect to 10.144.114.152:27017 (10.144.114.152) failed
2018-12-28T11:50:22.358+0800 I NETWORK  [main] reconnect 10.144.114.152:27017 (10.144.114.152) ok
repl_test:SECONDARY> ^C

master先继续报之前错误,之后,转变为SECONDARY

方案2:关闭复制集
去掉conf 复制集
#replSet=repl_test

db.system.replset.find({});

> db.system.replset.remove({});
WriteResult({
        "writeError" : {
                "code" : 13,
                "errmsg" : "not authorized on local to execute command { delete: \"system.replset\", deletes: [ { q: {}, limit: 0.0 } ], ordered: true }"
        }
})
>



方案3;
https://docs.mongodb.com/manual/reference/method/rs.reconfig/#rs.reconfig
参考
cfg = rs.conf();
cfg.members[1].priority = 2;
rs.reconfig(cfg);

1、查看当前情况
 rs.conf();
2、定义文档
var newSystemReplset={ "_id" : "repl_test", "version" : 2, "protocolVersion" : NumberLong(1), "members" : [ { "_id" : 0, "host" : "47.1.175.111:27017", "arbiterOnly" : false, "buildIndexes" : true, "hidden" : false, "priority" : 1, "tags" : {  }, "slaveDelay" : NumberLong(0), "votes" : 1 }, { "_id" : 1, "host" : "47.1.175.222:27017", "arbiterOnly" : false, "buildIndexes" : true, "hidden" : false, "priority" : 1, "tags" : {  }, "slaveDelay" : NumberLong(0), "votes" : 1 } ], "settings" : { "chainingAllowed" : true, "heartbeatIntervalMillis" : 2000, "heartbeatTimeoutSecs" : 10, "electionTimeoutMillis" : 10000, "catchUpTimeoutMillis" : 2000, "getLastErrorModes" : {  }, "getLastErrorDefaults" : { "w" : 1, "wtimeout" : 0 }, "replicaSetId" : ObjectId("59b7308b7cf595c595ffe5c2") } };
3、检测变量
newSystemReplset;
4、执行变更
rs.reconfig(newSystemReplset);
5、检查结果
 rs.conf();
 
按照上述执行
repl_test:PRIMARY> rs.reconfig(newSystemReplset);
{ "ok" : 1 }
repl_test:PRIMARY>  rs.conf();
{
        "_id" : "repl_test",
        "version" : 3,
        "protocolVersion" : NumberLong(1),
        "members" : [
                {
                        "_id" : 0,
                        "host" : "47.1.175.111:27017",
                        "arbiterOnly" : false,
                        "buildIndexes" : true,
                        "hidden" : false,
                        "priority" : 1,
                        "tags" : {

                        },
                        "slaveDelay" : NumberLong(0),
                        "votes" : 1
                },
                {
                        "_id" : 1,
                        "host" : "47.1.175.222:27017",
                        "arbiterOnly" : false,
                        "buildIndexes" : true,
                        "hidden" : false,
                        "priority" : 1,
                        "tags" : {

                        },
                        "slaveDelay" : NumberLong(0),
                        "votes" : 1
                }
        ],
        "settings" : {
                "chainingAllowed" : true,
                "heartbeatIntervalMillis" : 2000,
                "heartbeatTimeoutSecs" : 10,
                "electionTimeoutMillis" : 10000,
                "catchUpTimeoutMillis" : 2000,
                "getLastErrorModes" : {

                },
                "getLastErrorDefaults" : {
                        "w" : 1,
                        "wtimeout" : 0
                },
                "replicaSetId" : ObjectId("59b7308b7cf595c595ffe5c2")
        }
}
repl_test:PRIMARY>
完成任务;

追加检查业务脚本;


检查结果正常

 

mongo  热修改 复制集

 

 

 

更改ip前[root@e ~]# mongo mongodb://admin:adminpwd123@10.144.114.152MongoDB shell version v3.4.0connecting to: mongodb://admin:adminpwd123@10.144.114.152MongoDB server version: 3.4.0Server has startup warnings:2018-12-28T10:23:57.621+0800 I STORAGE  [initandlisten]2018-12-28T10:24:01.595+0800 I CONTROL  [initandlisten] ** WARNING: You are running this process as the root user, which is not recommended.2018-12-28T10:24:01.595+0800 I CONTROL  [initandlisten]2018-12-28T10:24:01.595+0800 I CONTROL  [initandlisten]2018-12-28T10:24:01.595+0800 I CONTROL  [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is 'always'.2018-12-28T10:24:01.595+0800 I CONTROL  [initandlisten] **        We suggest setting it to 'never'2018-12-28T10:24:01.595+0800 I CONTROL  [initandlisten]2018-12-28T10:24:01.595+0800 I CONTROL  [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is 'always'.2018-12-28T10:24:01.595+0800 I CONTROL  [initandlisten] **        We suggest setting it to 'never'2018-12-28T10:24:01.595+0800 I CONTROL  [initandlisten]repl_test:PRIMARY> show dbsadmin                  0.000GBdirect_vote_resource  17.489GBlocal                 14.852GBpersonas              35.179GBrecommendation         0.370GBstatistics_visit       0.168GBsuperpub              83.849GBtest                   0.000GBrepl_test:PRIMARY> use adminswitched to db adminrepl_test:PRIMARY> show collectionssystem.userssystem.versionrepl_test:PRIMARY> db.system.users.find({}){ "_id" : "admin.admin", "user" : "admin", "db" : "admin", "credentials" : { "SCRAM-SHA-1" : { "iterationCount" : 10000, "salt" : "V7VYUNDGexgVnKhvR1CWKQ==", "storedKey" : "H0gAXeCe1Twfqv6psI9+9Ul3bXI=", "serverKey" : "etgetLycgvSVeDJlWR6XFcikF3o=" } }, "roles" : [ { "role" : "root", "db" : "admin" } ] }{ "_id" : "personas.guest", "user" : "guest", "db" : "personas", "credentials" : { "SCRAM-SHA-1" : { "iterationCount" : 10000, "salt" : "CEEWhTzFVPuqVP0/WkLs4w==", "storedKey" : "gvaXHeevGTGa0ptc0OyokS1SXXo=", "serverKey" : "ZfXCqeLKqnrzlpbcvFIOFpCP/zw=" } }, "roles" : [ { "role" : "read", "db" : "personas" } ] }{ "_id" : "admin.tmp_rw_56756", "user" : "tmp_rw_56756", "db" : "admin", "credentials" : { "SCRAM-SHA-1" : { "iterationCount" : 10000, "salt" : "4oNrmGqCe+tISkmz7zGadg==", "storedKey" : "81P26DcNYgDWJaDlho4IOTt+d50=", "serverKey" : "6PCv81p747XO1FCInHof7U6RXS8=" } }, "roles" : [ { "role" : "readWrite", "db" : "admin" }, { "role" : "dbAdmin", "db" : "admin" } ] }repl_test:PRIMARY> db.system.version.find({}){ "_id" : "authSchema", "currentVersion" : 5 }repl_test:PRIMARY> use localswitched to db localrepl_test:PRIMARY> show collectionsmeoplog.rsreplset.electionreplset.minvalidstartup_logsystem.replsetrepl_test:PRIMARY> db.me.find({}){ "_id" : ObjectId("5bff338aa2da37d0c0e74d53"), "host" : "e" }repl_test:PRIMARY> db.replset.election.find({}){ "_id" : ObjectId("59b7963e819989052371047f"), "term" : NumberLong(23), "candidateIndex" : NumberLong(0) }repl_test:PRIMARY> db.replset.minvalid.find({}){ "_id" : ObjectId("59b796328199890523710479"), "oplogDeleteFromPoint" : Timestamp(0, 0), "ts" : Timestamp(1543453270, 1), "t" : NumberLong(16) }repl_test:PRIMARY> db.system.replset.find({}){ "_id" : "repl_test", "version" : 2, "protocolVersion" : NumberLong(1), "members" : [ { "_id" : 0, "host" : "10.144.114.152:27017", "arbiterOnly" : false, "buildIndexes" : true, "hidden" : false, "priority" : 1, "tags" : {  }, "slaveDelay" : NumberLong(0), "votes" : 1 }, { "_id" : 1, "host" : "10.144.114.65:27017", "arbiterOnly" : false, "buildIndexes" : true, "hidden" : false, "priority" : 1, "tags" : {  }, "slaveDelay" : NumberLong(0), "votes" : 1 } ], "settings" : { "chainingAllowed" : true, "heartbeatIntervalMillis" : 2000, "heartbeatTimeoutSecs" : 10, "electionTimeoutMillis" : 10000, "catchUpTimeoutMillis" : 2000, "getLastErrorModes" : {  }, "getLastErrorDefaults" : { "w" : 1, "wtimeout" : 0 }, "replicaSetId" : ObjectId("59b7308b7cf595c595ffe5c2") } }repl_test:PRIMARY> db.startup_log.find({}){ "_id" : "iZ2zeasmr9abrbq6i9qn1jZ-1505203756785", "hostname" : "iZ2zeasmr9abrbq6i9qn1jZ", "startTime" : ISODate("2017-09-12T08:09:16Z"), "startTimeLocal" : "Tue Sep 12 16:09:16.785", "cmdLine" : { "config" : "/usr/local/mongodb/conf/mongod.conf", "net" : { "bindIp" : "10.144.114.152", "port" : 27017 }, "processManagement" : { "fork" : true, "pidFilePath" : "/usr/local/mongodb/mongo.pid" }, "replication" : { "replSet" : "repl_test" }, "security" : { "keyFile" : "/usr/local/mongodb/conf/keyFile" }, "sharding" : { "clusterRole" : "shardsvr" }, "storage" : { "dbPath" : "/mnt/mongodb_data/data", "directoryPerDB" : true }, "systemLog" : { "destination" : "file", "logAppend" : true, "path" : "/mnt/mongodb_data/log/mongod.log" } }, "pid" : NumberLong(14660), "buildinfo" : { "version" : "3.4.0", "gitVersion" : "f4240c60f005be757399042dc12f6addbc3170c1", "modules" : [ ], "allocator" : "tcmalloc", "javascriptEngine" : "mozjs", "sysInfo" : "deprecated", "versionArray" : [ 3, 4, 0, 0 ], "openssl" : { "running" : "disabled", "compiled" : "disabled" }, "buildEnvironment" : { "distmod" : "", "distarch" : "x86_64", "cc" : "/opt/mongodbtoolchain/v2/bin/gcc: gcc (GCC) 5.4.0", "ccflags" : "-fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -Werror -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp", "cxx" : "/opt/mongodbtoolchain/v2/bin/g++: g++ (GCC) 5.4.0", "cxxflags" : "-Woverloaded-virtual -Wno-maybe-uninitialized -std=c++11", "linkflags" : "-pthread -Wl,-z,now -rdynamic -Wl,--fatal-warnings -fstack-protector-strong -fuse-ld=gold -Wl,--build-id -Wl,-z,noexecstack -Wl,--warn-execstack -Wl,-z,relro", "target_arch" : "x86_64", "target_os" : "linux" }, "bits" : 64, "debug" : false, "maxBsonObjectSize" : 16777216, "storageEngines" : [ "devnull", "ephemeralForTest", "mmapv1", "wiredTiger" ] } }{ "_id" : "iZ2zeasmr9abrbq6i9qn1jZ-1505731147807", "hostname" : "iZ2zeasmr9abrbq6i9qn1jZ", "startTime" : ISODate("2017-09-18T10:39:07Z"), "startTimeLocal" : "Mon Sep 18 18:39:07.807", "cmdLine" : { "config" : "/usr/local/mongodb/conf/mongod.conf", "net" : { "bindIp" : "10.144.114.152", "port" : 27017 }, "processManagement" : { "fork" : true, "pidFilePath" : "/usr/local/mongodb/mongo.pid" }, "replication" : { "replSet" : "repl_test" }, "security" : { "keyFile" : "/usr/local/mongodb/conf/keyFile" }, "sharding" : { "clusterRole" : "shardsvr" }, "storage" : { "dbPath" : "/mnt/mongodb_data/data", "directoryPerDB" : true }, "systemLog" : { "destination" : "file", "logAppend" : true, "path" : "/mnt/mongodb_data/log/mongod.log" } }, "pid" : NumberLong(5993), "buildinfo" : { "version" : "3.4.0", "gitVersion" : "f4240c60f005be757399042dc12f6addbc3170c1", "modules" : [ ], "allocator" : "tcmalloc", "javascriptEngine" : "mozjs", "sysInfo" : "deprecated", "versionArray" : [ 3, 4, 0, 0 ], "openssl" : { "running" : "disabled", "compiled" : "disabled" }, "buildEnvironment" : { "distmod" : "", "distarch" : "x86_64", "cc" : "/opt/mongodbtoolchain/v2/bin/gcc: gcc (GCC) 5.4.0", "ccflags" : "-fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -Werror -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp", "cxx" : "/opt/mongodbtoolchain/v2/bin/g++: g++ (GCC) 5.4.0", "cxxflags" : "-Woverloaded-virtual -Wno-maybe-uninitialized -std=c++11", "linkflags" : "-pthread -Wl,-z,now -rdynamic -Wl,--fatal-warnings -fstack-protector-strong -fuse-ld=gold -Wl,--build-id -Wl,-z,noexecstack -Wl,--warn-execstack -Wl,-z,relro", "target_arch" : "x86_64", "target_os" : "linux" }, "bits" : 64, "debug" : false, "maxBsonObjectSize" : 16777216, "storageEngines" : [ "devnull", "ephemeralForTest", "mmapv1", "wiredTiger" ] } }{ "_id" : "iZ2zeasmr9abrbq6i9qn1jZ-1505734755410", "hostname" : "iZ2zeasmr9abrbq6i9qn1jZ", "startTime" : ISODate("2017-09-18T11:39:15Z"), "startTimeLocal" : "Mon Sep 18 19:39:15.410", "cmdLine" : { "config" : "/usr/local/mongodb/conf/mongod.conf", "net" : { "bindIp" : "10.144.114.152", "port" : 27017 }, "processManagement" : { "fork" : true, "pidFilePath" : "/usr/local/mongodb/mongo.pid" }, "replication" : { "replSet" : "repl_test" }, "security" : { "keyFile" : "/usr/local/mongodb/conf/keyFile" }, "sharding" : { "clusterRole" : "shardsvr" }, "storage" : { "dbPath" : "/mnt/mongodb_data/data", "directoryPerDB" : true }, "systemLog" : { "destination" : "file", "logAppend" : true, "path" : "/mnt/mongodb_data/log/mongod.log" } }, "pid" : NumberLong(6575), "buildinfo" : { "version" : "3.4.0", "gitVersion" : "f4240c60f005be757399042dc12f6addbc3170c1", "modules" : [ ], "allocator" : "tcmalloc", "javascriptEngine" : "mozjs", "sysInfo" : "deprecated", "versionArray" : [ 3, 4, 0, 0 ], "openssl" : { "running" : "disabled", "compiled" : "disabled" }, "buildEnvironment" : { "distmod" : "", "distarch" : "x86_64", "cc" : "/opt/mongodbtoolchain/v2/bin/gcc: gcc (GCC) 5.4.0", "ccflags" : "-fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -Werror -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp", "cxx" : "/opt/mongodbtoolchain/v2/bin/g++: g++ (GCC) 5.4.0", "cxxflags" : "-Woverloaded-virtual -Wno-maybe-uninitialized -std=c++11", "linkflags" : "-pthread -Wl,-z,now -rdynamic -Wl,--fatal-warnings -fstack-protector-strong -fuse-ld=gold -Wl,--build-id -Wl,-z,noexecstack -Wl,--warn-execstack -Wl,-z,relro", "target_arch" : "x86_64", "target_os" : "linux" }, "bits" : 64, "debug" : false, "maxBsonObjectSize" : 16777216, "storageEngines" : [ "devnull", "ephemeralForTest", "mmapv1", "wiredTiger" ] } }{ "_id" : "iZ2zeasmr9abrbq6i9qn1jZ-1505734881752", "hostname" : "iZ2zeasmr9abrbq6i9qn1jZ", "startTime" : ISODate("2017-09-18T11:41:21Z"), "startTimeLocal" : "Mon Sep 18 19:41:21.752", "cmdLine" : { "config" : "/usr/local/mongodb/conf/mongod.conf", "net" : { "bindIp" : "10.144.114.152", "port" : 27017 }, "processManagement" : { "fork" : true, "pidFilePath" : "/usr/local/mongodb/mongo.pid" }, "replication" : { "replSet" : "repl_test" }, "security" : { "keyFile" : "/usr/local/mongodb/conf/keyFile" }, "sharding" : { "clusterRole" : "shardsvr" }, "storage" : { "dbPath" : "/mnt/mongodb_data/data", "directoryPerDB" : true }, "systemLog" : { "destination" : "file", "logAppend" : true, "path" : "/mnt/mongodb_data/log/mongod.log" } }, "pid" : NumberLong(6690), "buildinfo" : { "version" : "3.4.0", "gitVersion" : "f4240c60f005be757399042dc12f6addbc3170c1", "modules" : [ ], "allocator" : "tcmalloc", "javascriptEngine" : "mozjs", "sysInfo" : "deprecated", "versionArray" : [ 3, 4, 0, 0 ], "openssl" : { "running" : "disabled", "compiled" : "disabled" }, "buildEnvironment" : { "distmod" : "", "distarch" : "x86_64", "cc" : "/opt/mongodbtoolchain/v2/bin/gcc: gcc (GCC) 5.4.0", "ccflags" : "-fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -Werror -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp", "cxx" : "/opt/mongodbtoolchain/v2/bin/g++: g++ (GCC) 5.4.0", "cxxflags" : "-Woverloaded-virtual -Wno-maybe-uninitialized -std=c++11", "linkflags" : "-pthread -Wl,-z,now -rdynamic -Wl,--fatal-warnings -fstack-protector-strong -fuse-ld=gold -Wl,--build-id -Wl,-z,noexecstack -Wl,--warn-execstack -Wl,-z,relro", "target_arch" : "x86_64", "target_os" : "linux" }, "bits" : 64, "debug" : false, "maxBsonObjectSize" : 16777216, "storageEngines" : [ "devnull", "ephemeralForTest", "mmapv1", "wiredTiger" ] } }{ "_id" : "iZ2zeasmr9abrbq6i9qn1jZ-1517449913358", "hostname" : "iZ2zeasmr9abrbq6i9qn1jZ", "startTime" : ISODate("2018-02-01T01:51:53Z"), "startTimeLocal" : "Thu Feb  1 09:51:53.358", "cmdLine" : { "config" : "/usr/local/mongodb/conf/mongod.conf", "net" : { "bindIp" : "10.144.114.152", "port" : 27017 }, "processManagement" : { "fork" : true, "pidFilePath" : "/usr/local/mongodb/mongo.pid" }, "replication" : { "replSet" : "repl_test" }, "security" : { "keyFile" : "/usr/local/mongodb/conf/keyFile" }, "sharding" : { "clusterRole" : "shardsvr" }, "storage" : { "dbPath" : "/mnt/mongodb_data/data", "directoryPerDB" : true }, "systemLog" : { "destination" : "file", "logAppend" : true, "path" : "/mnt/mongodb_data/log/mongod.log" } }, "pid" : NumberLong(9520), "buildinfo" : { "version" : "3.4.0", "gitVersion" : "f4240c60f005be757399042dc12f6addbc3170c1", "modules" : [ ], "allocator" : "tcmalloc", "javascriptEngine" : "mozjs", "sysInfo" : "deprecated", "versionArray" : [ 3, 4, 0, 0 ], "openssl" : { "running" : "disabled", "compiled" : "disabled" }, "buildEnvironment" : { "distmod" : "", "distarch" : "x86_64", "cc" : "/opt/mongodbtoolchain/v2/bin/gcc: gcc (GCC) 5.4.0", "ccflags" : "-fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -Werror -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp", "cxx" : "/opt/mongodbtoolchain/v2/bin/g++: g++ (GCC) 5.4.0", "cxxflags" : "-Woverloaded-virtual -Wno-maybe-uninitialized -std=c++11", "linkflags" : "-pthread -Wl,-z,now -rdynamic -Wl,--fatal-warnings -fstack-protector-strong -fuse-ld=gold -Wl,--build-id -Wl,-z,noexecstack -Wl,--warn-execstack -Wl,-z,relro", "target_arch" : "x86_64", "target_os" : "linux" }, "bits" : 64, "debug" : false, "maxBsonObjectSize" : 16777216, "storageEngines" : [ "devnull", "ephemeralForTest", "mmapv1", "wiredTiger" ] } }{ "_id" : "iZ2zeasmr9abrbq6i9qn1jZ-1517450091254", "hostname" : "iZ2zeasmr9abrbq6i9qn1jZ", "startTime" : ISODate("2018-02-01T01:54:51Z"), "startTimeLocal" : "Thu Feb  1 09:54:51.254", "cmdLine" : { "config" : "/usr/local/mongodb/conf/mongod.conf", "net" : { "bindIp" : "10.144.114.152", "port" : 27017 }, "processManagement" : { "fork" : true, "pidFilePath" : "/usr/local/mongodb/mongo.pid" }, "replication" : { "replSet" : "repl_test" }, "security" : { "keyFile" : "/usr/local/mongodb/conf/keyFile" }, "sharding" : { "clusterRole" : "shardsvr" }, "storage" : { "dbPath" : "/mnt/mongodb_data/data", "directoryPerDB" : true }, "systemLog" : { "destination" : "file", "logAppend" : true, "path" : "/mnt/mongodb_data/log/mongod.log" } }, "pid" : NumberLong(2225), "buildinfo" : { "version" : "3.4.0", "gitVersion" : "f4240c60f005be757399042dc12f6addbc3170c1", "modules" : [ ], "allocator" : "tcmalloc", "javascriptEngine" : "mozjs", "sysInfo" : "deprecated", "versionArray" : [ 3, 4, 0, 0 ], "openssl" : { "running" : "disabled", "compiled" : "disabled" }, "buildEnvironment" : { "distmod" : "", "distarch" : "x86_64", "cc" : "/opt/mongodbtoolchain/v2/bin/gcc: gcc (GCC) 5.4.0", "ccflags" : "-fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -Werror -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp", "cxx" : "/opt/mongodbtoolchain/v2/bin/g++: g++ (GCC) 5.4.0", "cxxflags" : "-Woverloaded-virtual -Wno-maybe-uninitialized -std=c++11", "linkflags" : "-pthread -Wl,-z,now -rdynamic -Wl,--fatal-warnings -fstack-protector-strong -fuse-ld=gold -Wl,--build-id -Wl,-z,noexecstack -Wl,--warn-execstack -Wl,-z,relro", "target_arch" : "x86_64", "target_os" : "linux" }, "bits" : 64, "debug" : false, "maxBsonObjectSize" : 16777216, "storageEngines" : [ "devnull", "ephemeralForTest", "mmapv1", "wiredTiger" ] } }{ "_id" : "iZ2zeasmr9abrbq6i9qn1jZ-1517450191318", "hostname" : "iZ2zeasmr9abrbq6i9qn1jZ", "startTime" : ISODate("2018-02-01T01:56:31Z"), "startTimeLocal" : "Thu Feb  1 09:56:31.318", "cmdLine" : { "config" : "/usr/local/mongodb/conf/mongod.conf", "net" : { "bindIp" : "10.144.114.152", "port" : 27017 }, "processManagement" : { "fork" : true, "pidFilePath" : "/usr/local/mongodb/mongo.pid" }, "replication" : { "replSet" : "repl_test" }, "security" : { "keyFile" : "/usr/local/mongodb/conf/keyFile" }, "sharding" : { "clusterRole" : "shardsvr" }, "storage" : { "dbPath" : "/mnt/mongodb_data/data", "directoryPerDB" : true }, "systemLog" : { "destination" : "file", "logAppend" : true, "path" : "/mnt/mongodb_data/log/mongod.log" } }, "pid" : NumberLong(2486), "buildinfo" : { "version" : "3.4.0", "gitVersion" : "f4240c60f005be757399042dc12f6addbc3170c1", "modules" : [ ], "allocator" : "tcmalloc", "javascriptEngine" : "mozjs", "sysInfo" : "deprecated", "versionArray" : [ 3, 4, 0, 0 ], "openssl" : { "running" : "disabled", "compiled" : "disabled" }, "buildEnvironment" : { "distmod" : "", "distarch" : "x86_64", "cc" : "/opt/mongodbtoolchain/v2/bin/gcc: gcc (GCC) 5.4.0", "ccflags" : "-fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -Werror -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp", "cxx" : "/opt/mongodbtoolchain/v2/bin/g++: g++ (GCC) 5.4.0", "cxxflags" : "-Woverloaded-virtual -Wno-maybe-uninitialized -std=c++11", "linkflags" : "-pthread -Wl,-z,now -rdynamic -Wl,--fatal-warnings -fstack-protector-strong -fuse-ld=gold -Wl,--build-id -Wl,-z,noexecstack -Wl,--warn-execstack -Wl,-z,relro", "target_arch" : "x86_64", "target_os" : "linux" }, "bits" : 64, "debug" : false, "maxBsonObjectSize" : 16777216, "storageEngines" : [ "devnull", "ephemeralForTest", "mmapv1", "wiredTiger" ] } }{ "_id" : "e-1543451530049", "hostname" : "e", "startTime" : ISODate("2018-11-29T00:32:10Z"), "startTimeLocal" : "Thu Nov 29 08:32:10.049", "cmdLine" : { "config" : "/usr/local/mongodb/conf/mongod.conf", "net" : { "bindIp" : "10.144.114.152", "port" : 27017 }, "processManagement" : { "fork" : true, "pidFilePath" : "/usr/local/mongodb/mongo.pid" }, "replication" : { "replSet" : "repl_test" }, "security" : { "keyFile" : "/usr/local/mongodb/conf/keyFile" }, "sharding" : { "clusterRole" : "shardsvr" }, "storage" : { "dbPath" : "/mnt/mongodb_data/data", "directoryPerDB" : true }, "systemLog" : { "destination" : "file", "logAppend" : true, "path" : "/mnt/mongodb_data/log/mongod.log" } }, "pid" : NumberLong(15746), "buildinfo" : { "version" : "3.4.0", "gitVersion" : "f4240c60f005be757399042dc12f6addbc3170c1", "modules" : [ ], "allocator" : "tcmalloc", "javascriptEngine" : "mozjs", "sysInfo" : "deprecated", "versionArray" : [ 3, 4, 0, 0 ], "openssl" : { "running" : "disabled", "compiled" : "disabled" }, "buildEnvironment" : { "distmod" : "", "distarch" : "x86_64", "cc" : "/opt/mongodbtoolchain/v2/bin/gcc: gcc (GCC) 5.4.0", "ccflags" : "-fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -Werror -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp", "cxx" : "/opt/mongodbtoolchain/v2/bin/g++: g++ (GCC) 5.4.0", "cxxflags" : "-Woverloaded-virtual -Wno-maybe-uninitialized -std=c++11", "linkflags" : "-pthread -Wl,-z,now -rdynamic -Wl,--fatal-warnings -fstack-protector-strong -fuse-ld=gold -Wl,--build-id -Wl,-z,noexecstack -Wl,--warn-execstack -Wl,-z,relro", "target_arch" : "x86_64", "target_os" : "linux" }, "bits" : 64, "debug" : false, "maxBsonObjectSize" : 16777216, "storageEngines" : [ "devnull", "ephemeralForTest", "mmapv1", "wiredTiger" ] } }{ "_id" : "e-1543452476457", "hostname" : "e", "startTime" : ISODate("2018-11-29T00:47:56Z"), "startTimeLocal" : "Thu Nov 29 08:47:56.457", "cmdLine" : { "config" : "/usr/local/mongodb/conf/mongod.conf", "net" : { "bindIp" : "10.144.114.152", "port" : 27017 }, "processManagement" : { "fork" : true, "pidFilePath" : "/usr/local/mongodb/mongo.pid" }, "replication" : { "replSet" : "repl_test" }, "security" : { "keyFile" : "/usr/local/mongodb/conf/keyFile" }, "sharding" : { "clusterRole" : "shardsvr" }, "storage" : { "dbPath" : "/mnt/mongodb_data/data", "directoryPerDB" : true }, "systemLog" : { "destination" : "file", "logAppend" : true, "path" : "/mnt/mongodb_data/log/mongod2018-11-28-08-40.log" } }, "pid" : NumberLong(20120), "buildinfo" : { "version" : "3.4.0", "gitVersion" : "f4240c60f005be757399042dc12f6addbc3170c1", "modules" : [ ], "allocator" : "tcmalloc", "javascriptEngine" : "mozjs", "sysInfo" : "deprecated", "versionArray" : [ 3, 4, 0, 0 ], "openssl" : { "running" : "disabled", "compiled" : "disabled" }, "buildEnvironment" : { "distmod" : "", "distarch" : "x86_64", "cc" : "/opt/mongodbtoolchain/v2/bin/gcc: gcc (GCC) 5.4.0", "ccflags" : "-fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -Werror -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp", "cxx" : "/opt/mongodbtoolchain/v2/bin/g++: g++ (GCC) 5.4.0", "cxxflags" : "-Woverloaded-virtual -Wno-maybe-uninitialized -std=c++11", "linkflags" : "-pthread -Wl,-z,now -rdynamic -Wl,--fatal-warnings -fstack-protector-strong -fuse-ld=gold -Wl,--build-id -Wl,-z,noexecstack -Wl,--warn-execstack -Wl,-z,relro", "target_arch" : "x86_64", "target_os" : "linux" }, "bits" : 64, "debug" : false, "maxBsonObjectSize" : 16777216, "storageEngines" : [ "devnull", "ephemeralForTest", "mmapv1", "wiredTiger" ] } }{ "_id" : "e-1543453236613", "hostname" : "e", "startTime" : ISODate("2018-11-29T01:00:36Z"), "startTimeLocal" : "Thu Nov 29 09:00:36.613", "cmdLine" : { "config" : "/usr/local/mongodb/conf/mongod.conf", "net" : { "bindIp" : "10.144.114.152", "port" : 27017 }, "processManagement" : { "fork" : true, "pidFilePath" : "/usr/local/mongodb/mongo.pid" }, "replication" : { "replSet" : "repl_test" }, "security" : { "keyFile" : "/usr/local/mongodb/conf/keyFile" }, "sharding" : { "clusterRole" : "shardsvr" }, "storage" : { "dbPath" : "/mnt/mongodb_data/data", "directoryPerDB" : true }, "systemLog" : { "destination" : "file", "logAppend" : true, "path" : "/mnt/mongodb_data/log/mongod2018-11-28-08-40.log" } }, "pid" : NumberLong(8243), "buildinfo" : { "version" : "3.4.0", "gitVersion" : "f4240c60f005be757399042dc12f6addbc3170c1", "modules" : [ ], "allocator" : "tcmalloc", "javascriptEngine" : "mozjs", "sysInfo" : "deprecated", "versionArray" : [ 3, 4, 0, 0 ], "openssl" : { "running" : "disabled", "compiled" : "disabled" }, "buildEnvironment" : { "distmod" : "", "distarch" : "x86_64", "cc" : "/opt/mongodbtoolchain/v2/bin/gcc: gcc (GCC) 5.4.0", "ccflags" : "-fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -Werror -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp", "cxx" : "/opt/mongodbtoolchain/v2/bin/g++: g++ (GCC) 5.4.0", "cxxflags" : "-Woverloaded-virtual -Wno-maybe-uninitialized -std=c++11", "linkflags" : "-pthread -Wl,-z,now -rdynamic -Wl,--fatal-warnings -fstack-protector-strong -fuse-ld=gold -Wl,--build-id -Wl,-z,noexecstack -Wl,--warn-execstack -Wl,-z,relro", "target_arch" : "x86_64", "target_os" : "linux" }, "bits" : 64, "debug" : false, "maxBsonObjectSize" : 16777216, "storageEngines" : [ "devnull", "ephemeralForTest", "mmapv1", "wiredTiger" ] } }{ "_id" : "e-1543453295249", "hostname" : "e", "startTime" : ISODate("2018-11-29T01:01:35Z"), "startTimeLocal" : "Thu Nov 29 09:01:35.250", "cmdLine" : { "config" : "/usr/local/mongodb/conf/mongod.conf", "net" : { "bindIp" : "10.144.114.152", "port" : 27017 }, "processManagement" : { "fork" : true, "pidFilePath" : "/usr/local/mongodb/mongo.pid" }, "replication" : { "replSet" : "repl_test" }, "security" : { "keyFile" : "/usr/local/mongodb/conf/keyFile" }, "sharding" : { "clusterRole" : "shardsvr" }, "storage" : { "dbPath" : "/mnt/mongodb_data/data", "directoryPerDB" : true }, "systemLog" : { "destination" : "file", "logAppend" : true, "path" : "/mnt/mongodb_data/log/mongod2018-11-28-08-40.log" } }, "pid" : NumberLong(10609), "buildinfo" : { "version" : "3.4.0", "gitVersion" : "f4240c60f005be757399042dc12f6addbc3170c1", "modules" : [ ], "allocator" : "tcmalloc", "javascriptEngine" : "mozjs", "sysInfo" : "deprecated", "versionArray" : [ 3, 4, 0, 0 ], "openssl" : { "running" : "disabled", "compiled" : "disabled" }, "buildEnvironment" : { "distmod" : "", "distarch" : "x86_64", "cc" : "/opt/mongodbtoolchain/v2/bin/gcc: gcc (GCC) 5.4.0", "ccflags" : "-fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -Werror -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp", "cxx" : "/opt/mongodbtoolchain/v2/bin/g++: g++ (GCC) 5.4.0", "cxxflags" : "-Woverloaded-virtual -Wno-maybe-uninitialized -std=c++11", "linkflags" : "-pthread -Wl,-z,now -rdynamic -Wl,--fatal-warnings -fstack-protector-strong -fuse-ld=gold -Wl,--build-id -Wl,-z,noexecstack -Wl,--warn-execstack -Wl,-z,relro", "target_arch" : "x86_64", "target_os" : "linux" }, "bits" : 64, "debug" : false, "maxBsonObjectSize" : 16777216, "storageEngines" : [ "devnull", "ephemeralForTest", "mmapv1", "wiredTiger" ] } }{ "_id" : "e-1544840307124", "hostname" : "e", "startTime" : ISODate("2018-12-15T02:18:27Z"), "startTimeLocal" : "Sat Dec 15 10:18:27.124", "cmdLine" : { "config" : "/usr/local/mongodb/conf/mongod.conf", "net" : { "bindIp" : "10.144.114.152", "port" : 27017 }, "processManagement" : { "fork" : true, "pidFilePath" : "/usr/local/mongodb/mongo.pid" }, "replication" : { "replSet" : "repl_test" }, "security" : { "keyFile" : "/usr/local/mongodb/conf/keyFile" }, "sharding" : { "clusterRole" : "shardsvr" }, "storage" : { "dbPath" : "/mnt/mongodb_data/data", "directoryPerDB" : true }, "systemLog" : { "destination" : "file", "logAppend" : true, "path" : "/mnt/mongodb_data/log/mongod2018-11-28-08-40.log" } }, "pid" : NumberLong(26736), "buildinfo" : { "version" : "3.4.0", "gitVersion" : "f4240c60f005be757399042dc12f6addbc3170c1", "modules" : [ ], "allocator" : "tcmalloc", "javascriptEngine" : "mozjs", "sysInfo" : "deprecated", "versionArray" : [ 3, 4, 0, 0 ], "openssl" : { "running" : "disabled", "compiled" : "disabled" }, "buildEnvironment" : { "distmod" : "", "distarch" : "x86_64", "cc" : "/opt/mongodbtoolchain/v2/bin/gcc: gcc (GCC) 5.4.0", "ccflags" : "-fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -Werror -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp", "cxx" : "/opt/mongodbtoolchain/v2/bin/g++: g++ (GCC) 5.4.0", "cxxflags" : "-Woverloaded-virtual -Wno-maybe-uninitialized -std=c++11", "linkflags" : "-pthread -Wl,-z,now -rdynamic -Wl,--fatal-warnings -fstack-protector-strong -fuse-ld=gold -Wl,--build-id -Wl,-z,noexecstack -Wl,--warn-execstack -Wl,-z,relro", "target_arch" : "x86_64", "target_os" : "linux" }, "bits" : 64, "debug" : false, "maxBsonObjectSize" : 16777216, "storageEngines" : [ "devnull", "ephemeralForTest", "mmapv1", "wiredTiger" ] } }{ "_id" : "e-1545112384326", "hostname" : "e", "startTime" : ISODate("2018-12-18T05:53:04Z"), "startTimeLocal" : "Tue Dec 18 13:53:04.326", "cmdLine" : { "config" : "/usr/local/mongodb/conf/mongod.conf", "net" : { "bindIp" : "10.144.114.152", "port" : 27017 }, "processManagement" : { "fork" : true, "pidFilePath" : "/usr/local/mongodb/mongo.pid" }, "replication" : { "replSet" : "repl_test" }, "security" : { "keyFile" : "/usr/local/mongodb/conf/keyFile" }, "sharding" : { "clusterRole" : "shardsvr" }, "storage" : { "dbPath" : "/mnt/mongodb_data/data", "directoryPerDB" : true }, "systemLog" : { "destination" : "file", "logAppend" : true, "path" : "/mnt/mongodb_data/log/mongod2018-11-28-08-40.log" } }, "pid" : NumberLong(8895), "buildinfo" : { "version" : "3.4.0", "gitVersion" : "f4240c60f005be757399042dc12f6addbc3170c1", "modules" : [ ], "allocator" : "tcmalloc", "javascriptEngine" : "mozjs", "sysInfo" : "deprecated", "versionArray" : [ 3, 4, 0, 0 ], "openssl" : { "running" : "disabled", "compiled" : "disabled" }, "buildEnvironment" : { "distmod" : "", "distarch" : "x86_64", "cc" : "/opt/mongodbtoolchain/v2/bin/gcc: gcc (GCC) 5.4.0", "ccflags" : "-fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -Werror -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp", "cxx" : "/opt/mongodbtoolchain/v2/bin/g++: g++ (GCC) 5.4.0", "cxxflags" : "-Woverloaded-virtual -Wno-maybe-uninitialized -std=c++11", "linkflags" : "-pthread -Wl,-z,now -rdynamic -Wl,--fatal-warnings -fstack-protector-strong -fuse-ld=gold -Wl,--build-id -Wl,-z,noexecstack -Wl,--warn-execstack -Wl,-z,relro", "target_arch" : "x86_64", "target_os" : "linux" }, "bits" : 64, "debug" : false, "maxBsonObjectSize" : 16777216, "storageEngines" : [ "devnull", "ephemeralForTest", "mmapv1", "wiredTiger" ] } }{ "_id" : "e-1545960240009", "hostname" : "e", "startTime" : ISODate("2018-12-28T01:24:00Z"), "startTimeLocal" : "Fri Dec 28 09:24:00.009", "cmdLine" : { "config" : "/usr/local/mongodb/conf/mongod.conf", "net" : { "port" : 27017 }, "processManagement" : { "fork" : true, "pidFilePath" : "/usr/local/mongodb/mongo.pid" }, "replication" : { "replSet" : "repl_test" }, "security" : { "keyFile" : "/usr/local/mongodb/conf/keyFile" }, "sharding" : { "clusterRole" : "shardsvr" }, "storage" : { "dbPath" : "/mnt/mongodb_data/data", "directoryPerDB" : true }, "systemLog" : { "destination" : "file", "logAppend" : true, "path" : "/mnt/mongodb_data/log/mongod2018-11-28-08-40.log" } }, "pid" : NumberLong(27804), "buildinfo" : { "version" : "3.4.0", "gitVersion" : "f4240c60f005be757399042dc12f6addbc3170c1", "modules" : [ ], "allocator" : "tcmalloc", "javascriptEngine" : "mozjs", "sysInfo" : "deprecated", "versionArray" : [ 3, 4, 0, 0 ], "openssl" : { "running" : "disabled", "compiled" : "disabled" }, "buildEnvironment" : { "distmod" : "", "distarch" : "x86_64", "cc" : "/opt/mongodbtoolchain/v2/bin/gcc: gcc (GCC) 5.4.0", "ccflags" : "-fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -Werror -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp", "cxx" : "/opt/mongodbtoolchain/v2/bin/g++: g++ (GCC) 5.4.0", "cxxflags" : "-Woverloaded-virtual -Wno-maybe-uninitialized -std=c++11", "linkflags" : "-pthread -Wl,-z,now -rdynamic -Wl,--fatal-warnings -fstack-protector-strong -fuse-ld=gold -Wl,--build-id -Wl,-z,noexecstack -Wl,--warn-execstack -Wl,-z,relro", "target_arch" : "x86_64", "target_os" : "linux" }, "bits" : 64, "debug" : false, "maxBsonObjectSize" : 16777216, "storageEngines" : [ "devnull", "ephemeralForTest", "mmapv1", "wiredTiger" ] } }{ "_id" : "e-1545960877036", "hostname" : "e", "startTime" : ISODate("2018-12-28T01:34:37Z"), "startTimeLocal" : "Fri Dec 28 09:34:37.036", "cmdLine" : { "config" : "/usr/local/mongodb/conf/mongod.conf", "net" : { "port" : 27017 }, "processManagement" : { "fork" : true, "pidFilePath" : "/usr/local/mongodb/mongo.pid" }, "replication" : { "replSet" : "repl_test" }, "security" : { "keyFile" : "/usr/local/mongodb/conf/keyFile" }, "sharding" : { "clusterRole" : "shardsvr" }, "storage" : { "dbPath" : "/mnt/mongodb_data/data", "directoryPerDB" : true }, "systemLog" : { "destination" : "file", "logAppend" : true, "path" : "/mnt/mongodb_data/log/mongod2018-11-28-08-40.log" } }, "pid" : NumberLong(31316), "buildinfo" : { "version" : "3.4.0", "gitVersion" : "f4240c60f005be757399042dc12f6addbc3170c1", "modules" : [ ], "allocator" : "tcmalloc", "javascriptEngine" : "mozjs", "sysInfo" : "deprecated", "versionArray" : [ 3, 4, 0, 0 ], "openssl" : { "running" : "disabled", "compiled" : "disabled" }, "buildEnvironment" : { "distmod" : "", "distarch" : "x86_64", "cc" : "/opt/mongodbtoolchain/v2/bin/gcc: gcc (GCC) 5.4.0", "ccflags" : "-fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -Werror -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp", "cxx" : "/opt/mongodbtoolchain/v2/bin/g++: g++ (GCC) 5.4.0", "cxxflags" : "-Woverloaded-virtual -Wno-maybe-uninitialized -std=c++11", "linkflags" : "-pthread -Wl,-z,now -rdynamic -Wl,--fatal-warnings -fstack-protector-strong -fuse-ld=gold -Wl,--build-id -Wl,-z,noexecstack -Wl,--warn-execstack -Wl,-z,relro", "target_arch" : "x86_64", "target_os" : "linux" }, "bits" : 64, "debug" : false, "maxBsonObjectSize" : 16777216, "storageEngines" : [ "devnull", "ephemeralForTest", "mmapv1", "wiredTiger" ] } }{ "_id" : "e-1545961060262", "hostname" : "e", "startTime" : ISODate("2018-12-28T01:37:40Z"), "startTimeLocal" : "Fri Dec 28 09:37:40.262", "cmdLine" : { "config" : "/usr/local/mongodb/conf/mongod.conf", "net" : { "bindIp" : "0.0.0.0", "port" : 27017 }, "processManagement" : { "fork" : true, "pidFilePath" : "/usr/local/mongodb/mongo.pid" }, "replication" : { "replSet" : "repl_test" }, "security" : { "keyFile" : "/usr/local/mongodb/conf/keyFile" }, "sharding" : { "clusterRole" : "shardsvr" }, "storage" : { "dbPath" : "/mnt/mongodb_data/data", "directoryPerDB" : true }, "systemLog" : { "destination" : "file", "logAppend" : true, "path" : "/mnt/mongodb_data/log/mongod2018-11-28-08-40.log" } }, "pid" : NumberLong(471), "buildinfo" : { "version" : "3.4.0", "gitVersion" : "f4240c60f005be757399042dc12f6addbc3170c1", "modules" : [ ], "allocator" : "tcmalloc", "javascriptEngine" : "mozjs", "sysInfo" : "deprecated", "versionArray" : [ 3, 4, 0, 0 ], "openssl" : { "running" : "disabled", "compiled" : "disabled" }, "buildEnvironment" : { "distmod" : "", "distarch" : "x86_64", "cc" : "/opt/mongodbtoolchain/v2/bin/gcc: gcc (GCC) 5.4.0", "ccflags" : "-fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -Werror -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp", "cxx" : "/opt/mongodbtoolchain/v2/bin/g++: g++ (GCC) 5.4.0", "cxxflags" : "-Woverloaded-virtual -Wno-maybe-uninitialized -std=c++11", "linkflags" : "-pthread -Wl,-z,now -rdynamic -Wl,--fatal-warnings -fstack-protector-strong -fuse-ld=gold -Wl,--build-id -Wl,-z,noexecstack -Wl,--warn-execstack -Wl,-z,relro", "target_arch" : "x86_64", "target_os" : "linux" }, "bits" : 64, "debug" : false, "maxBsonObjectSize" : 16777216, "storageEngines" : [ "devnull", "ephemeralForTest", "mmapv1", "wiredTiger" ] } }{ "_id" : "e-1545963841624", "hostname" : "e", "startTime" : ISODate("2018-12-28T02:24:01Z"), "startTimeLocal" : "Fri Dec 28 10:24:01.624", "cmdLine" : { "config" : "/usr/local/mongodb/conf/mongod.conf", "net" : { "bindIp" : "0.0.0.0", "port" : 27017 }, "processManagement" : { "fork" : true, "pidFilePath" : "/usr/local/mongodb/mongo.pid" }, "replication" : { "replSet" : "repl_test" }, "security" : { "keyFile" : "/usr/local/mongodb/conf/keyFile" }, "sharding" : { "clusterRole" : "shardsvr" }, "storage" : { "dbPath" : "/mnt/mongodb_data/data", "directoryPerDB" : true }, "systemLog" : { "destination" : "file", "logAppend" : true, "path" : "/mnt/mongodb_data/log/mongod2018-11-28-08-40.log" } }, "pid" : NumberLong(9650), "buildinfo" : { "version" : "3.4.0", "gitVersion" : "f4240c60f005be757399042dc12f6addbc3170c1", "modules" : [ ], "allocator" : "tcmalloc", "javascriptEngine" : "mozjs", "sysInfo" : "deprecated", "versionArray" : [ 3, 4, 0, 0 ], "openssl" : { "running" : "disabled", "compiled" : "disabled" }, "buildEnvironment" : { "distmod" : "", "distarch" : "x86_64", "cc" : "/opt/mongodbtoolchain/v2/bin/gcc: gcc (GCC) 5.4.0", "ccflags" : "-fno-omit-frame-pointer -fno-strict-aliasing -ggdb -pthread -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -Werror -O2 -Wno-unused-local-typedefs -Wno-unused-function -Wno-deprecated-declarations -Wno-unused-but-set-variable -Wno-missing-braces -fstack-protector-strong -fno-builtin-memcmp", "cxx" : "/opt/mongodbtoolchain/v2/bin/g++: g++ (GCC) 5.4.0", "cxxflags" : "-Woverloaded-virtual -Wno-maybe-uninitialized -std=c++11", "linkflags" : "-pthread -Wl,-z,now -rdynamic -Wl,--fatal-warnings -fstack-protector-strong -fuse-ld=gold -Wl,--build-id -Wl,-z,noexecstack -Wl,--warn-execstack -Wl,-z,relro", "target_arch" : "x86_64", "target_os" : "linux" }, "bits" : 64, "debug" : false, "maxBsonObjectSize" : 16777216, "storageEngines" : [ "devnull", "ephemeralForTest", "mmapv1", "wiredTiger" ] } }
2018年12月28日 10:59:25repl_test:PRIMARY> db.oplog.rs.find({}){ "ts" : Timestamp(1545217137, 170), "t" : NumberLong(19), "h" : NumberLong("-1781776396252632785"), "v" : 2, "op" : "i", "ns" : "personas.huoke_cleaning", "o" : { "_id" : ObjectId("5c1a247109af7634930ff1dd"), "ip" : "120.34.129.214", "service_id" : 6, "stay_duration" : 1544331036, "page" : "http://unionv4.g3user.com/index/union/click?ad_id=34002015&id=1001&uid=34002015&hf=http://site.leshou.com/s/54910057.html&referer=http://site.leshou.com/section/80&key=%E6%AC%A7%E5%B0%9A%E8%B6%85%E5%B8%82%E5%8D%A1%E5%9B%9E%E6%94%B6&username=zhutian682", "os_version" : "Windows7", "event_timestamp" : 1544331036, "visit_area" : "福建省漳州市", "uid" : 34002015, "source" : 1 } }{ "ts" : Timestamp(1545217137, 171), "t" : NumberLong(19), "h" : NumberLong("2890024439848867019"), "v" : 2, "op" : "i", "ns" : "personas.huoke_cleaning", "o" : { "_id" : ObjectId("5c1a247109af7634930ff1e2"), "ip" : "112.0.171.229", "service_id" : 3, "stay_duration" : 36, "page" : "http://wpa.qq.com/msgrd?v=3&uin=1455034128&site=qq&menu=yes", "os_version" : "WindowsXP", "event_timestamp" : 1544331613, "visit_area" : "江苏省南通市", "uid" : 50017937, "source" : 2 } }{ "ts" : Timestamp(1545217137, 172), "t" : NumberLong(19), "h" : NumberLong("5202137518886750842"), "v" : 2, "op" : "i", "ns" : "personas.huoke_cleaning", "o" : { "_id" : ObjectId("5c1a247109af7634930ff1e5"), "ip" : "113.70.146.16", "service_id" : 6, "stay_duration" : 1544331937, "page" : "http://unionv4.g3user.com/index/union/click?ad_id=34020780&id=4704&uid=34020780&hf=http://changsha.qd8.com.cn/zhaoji/xinxi16_92162.html&referer=http://changsha.qd8.com.cn/zhaoji/xinxi16_92162.html&key=%E5%9B%B4%E6%A3%8B%E5%9F%B9%E8%AE%AD%E4%B8%AD%E5%BF%83&username=yitongkang", "os_version" : "Windows8.1", "event_timestamp" : 1544331937, "visit_area" : "广东省佛山市", "uid" : 34020780, "source" : 1 } }{ "ts" : Timestamp(1545217137, 173), "t" : NumberLong(19), "h" : NumberLong("1620555974171776218"), "v" : 2, "op" : "i", "ns" : "personas.huoke_cleaning", "o" : { "_id" : ObjectId("5c1a247109af7634930ff1ef"), "ip" : "180.175.124.182", "service_id" : 6, "stay_duration" : 1544331953, "page" : "http://unionv4.g3user.com/index/union/click?ad_id=50013739&id=1001&uid=50013739&hf=http://site.leshou.com/s/54910057.html&referer=http://site.leshou.com/s/54909998.html&key=%E5%BA%9F%E6%97%A7%E9%87%91%E5%B1%9E%E5%9B%9E%E6%94%B6&username=huizhoulzwz", "os_version" : "Windows7", "event_timestamp" : 1544331953, "visit_area" : "上海市", "uid" : 50013739, "source" : 1 } }{ "ts" : Timestamp(1545217137, 174), "t" : NumberLong(19), "h" : NumberLong("5653553105496248054"), "v" : 2, "op" : "i", "ns" : "personas.huoke_cleaning", "o" : { "_id" : ObjectId("5c1a247109af7634930ff1f4"), "ip" : "218.207.198.95", "service_id" : 6, "stay_duration" : 1544332101, "page" : "http://unionv4.g3user.com/index/union/click?ad_id=34062603&id=1001&uid=34062603&hf=http://site.leshou.com/s/54910188.html&referer=&key=%E9%AB%98%E7%AB%AF%E4%BA%BA%E6%89%8D%E6%8B%9B%E8%81%98&username=ltzp1688", "os_version" : "Windows8.1", "event_timestamp" : 1544332101, "visit_area" : "福建省泉州市晋江县", "uid" : 34062603, "source" : 1 } }{ "ts" : Timestamp(1545217137, 175), "t" : NumberLong(19), "h" : NumberLong("-8678353648554451718"), "v" : 2, "op" : "i", "ns" : "personas.huoke_cleaning", "o" : { "_id" : ObjectId("5c1a247109af7634930ff1f7"), "ip" : "42.234.89.153", "service_id" : 6, "stay_duration" : 1544332107, "page" : "http://unionv4.g3user.com/index/union/click?ad_id=34055748&id=1001&uid=34055748&hf=http://site.leshou.com/s/54910057.html&referer=http://leshou.com/register&key=%E4%B8%96%E7%BA%AA%E9%BB%84%E9%87%91%E9%A5%B0%E5%93%81&username=changshasj", "os_version" : "Windows10", "event_timestamp" : 1544332107, "visit_area" : "河南省南阳市", "uid" : 34055748, "source" : 1 } }{ "ts" : Timestamp(1545217137, 176), "t" : NumberLong(19), "h" : NumberLong("-4357728515195730632"), "v" : 2, "op" : "i", "ns" : "personas.huoke_cleaning", "o" : { "_id" : ObjectId("5c1a247109af7634930ff203"), "ip" : "218.75.200.137", "service_id" : 6, "stay_duration" : 1544332124, "page" : "http://unionv4.g3user.com/index/union/click?ad_id=34020855&id=1001&uid=34020855&hf=http://site.leshou.com/s/54910057.html&referer=https://m.baidu.com/ssid=83edc0cfc4a9cab1b4faa383/from=2001a/s?word=%e4%b8%8a%e6%b5%b7%e4%b8%96%e7%ba%aa%e4%bb%a3%e6%80%80%e5%ad%95%e5%85%ac%e5%8f%b8%ef%bc%8c%e4%b8%8a%e6%b5%b7%e4%b8%96%e7%ba%aa%e4%bb%a3%e6%80%80%e5%ad%95%e5%85%ac%e5%8f%b8%e5%ae%98%e7%bd%91%ef%bc%8c%e4%bb%a3%e5%a6%88%e6%8b%9b%e8%81%98%ef%bc%8c%e6%8b%9b%e8%81%98%e4%bb%a3%e5%a6%88&key=%E6%8C%82%E7%94%BB%E5%88%B6%E4%BD%9C%E5%85%AC%E5%8F%B8&username=puyixiangce", "os_version" : "Windows7", "event_timestamp" : 1544332124, "visit_area" : "湖南省株洲市", "uid" : 34020855, "source" : 1 } }{ "ts" : Timestamp(1545217137, 177), "t" : NumberLong(19), "h" : NumberLong("-728410440672613030"), "v" : 2, "op" : "i", "ns" : "personas.huoke_cleaning", "o" : { "_id" : ObjectId("5c1a247109af7634930ff207"), "ip" : "171.15.18.76", "service_id" : 6, "stay_duration" : 1544332142, "page" : "http://unionv4.g3user.com/index/union/click?ad_id=50007714&id=1001&uid=50007714&hf=http://site.leshou.com/s/54910127.html&referer=http://site.leshou.com/s/54910188.html&key=%E5%BE%AE%E5%95%86%E5%81%9A%E4%BB%80%E4%B9%88%E6%9C%80%E8%B5%9A%E9%92%B1&username=weilaixiaoqi", "os_version" : "Windows7", "event_timestamp" : 1544332142, "visit_area" : "河南省漯河市", "uid" : 50007714, "source" : 1 } }{ "ts" : Timestamp(1545217137, 178), "t" : NumberLong(19), "h" : NumberLong("-5505168652968433719"), "v" : 2, "op" : "i", "ns" : "personas.huoke_cleaning", "o" : { "_id" : ObjectId("5c1a247109af7634930ff20b"), "ip" : "218.75.200.137", "service_id" : 6, "stay_duration" : 25, "page" : "http://unionv4.g3user.com/index/union/click?ad_id=50013739&id=1001&uid=50013739&hf=http://site.leshou.com/s/54910057.html&referer=https://m.baidu.com/ssid=83edc0cfc4a9cab1b4faa383/from=2001a/s?word=%e4%b8%8a%e6%b5%b7%e4%b8%96%e7%ba%aa%e4%bb%a3%e6%80%80%e5%ad%95%e5%85%ac%e5%8f%b8%ef%bc%8c%e4%b8%8a%e6%b5%b7%e4%b8%96%e7%ba%aa%e4%bb%a3%e6%80%80%e5%ad%95%e5%85%ac%e5%8f%b8%e5%ae%98%e7%bd%91%ef%bc%8c%e4%bb%a3%e5%a6%88%e6%8b%9b%e8%81%98%ef%bc%8c%e6%8b%9b%e8%81%98%e4%bb%a3%e5%a6%88&key=%E5%BA%9F%E6%97%A7%E9%87%91%E5%B1%9E%E5%9B%9E%E6%94%B6&username=huizhoulzwz", "os_version" : "Windows7", "event_timestamp" : 1544332149, "visit_area" : "湖南省株洲市", "uid" : 50013739, "source" : 1 } }{ "ts" : Timestamp(1545217137, 179), "t" : NumberLong(19), "h" : NumberLong("-3506194603762633448"), "v" : 2, "op" : "i", "ns" : "personas.huoke_cleaning", "o" : { "_id" : ObjectId("5c1a247109af7634930ff210"), "ip" : "218.56.158.125", "service_id" : 6, "stay_duration" : 1544332178, "page" : "http://unionv4.g3user.com/index/union/click?ad_id=34054885&id=1001&uid=34054885&hf=http://site.leshou.com/s/54910188.html&referer=https://m.baidu.com/ssid=83edc0cfc4a9cab1b4faa383/from=2001a/s?word=%e4%bb%a3%e5%a6%88%e6%8b%9b%e8%81%98%ef%bc%8c%e6%8b%9b%e8%81%98%e4%bb%a3%e5%a6%88%ef%bc%8c%e4%b8%8a%e6%b5%b7%e4%bb%a3%e5%a6%88%e6%8b%9b%e8%81%98%ef%bc%8c%e5%b9%bf%e5%b7%9e%e4%bb%a3%e5%a6%88%e6%8b%9b%e8%81%98%ef%bc%8c%e8%af%95%e7%ae%a1%e4%bb%a3%e5%a6%88%e6%8b%9b%e8%81%98%ef%bc%8c%e9%ab%98%e8%96%aa%e6%8b%9b%e8%81%98%e4%bb%a3%e5%a6%88%ef%bc%8c%e4%b8%8a%e6%b5%b7%e4%bb%a3%e5%a6%88%e6%8b%9b%e8%81%98%e5%85%ac%e5%8f%b8%ef%bc%8c%e4%b8%8a%e6%b5%b7%e4%b8%96%e7%ba%aa%e4%bb%a3%e5%a6%88%e6%8b%9b%e8%81%98&key=%E4%BA%BA%E6%89%8D%E6%8B%9B%E8%81%98&username=yuhui888", "os_version" : "Windows7", "event_timestamp" : 1544332178, "visit_area" : "山东省日照市", "uid" : 34054885, "source" : 1 } }{ "ts" : Timestamp(1545217137, 180), "t" : NumberLong(19), "h" : NumberLong("-2376909963146641923"), "v" : 2, "op" : "i", "ns" : "personas.huoke_cleaning", "o" : { "_id" : ObjectId("5c1a247109af7634930ff219"), "ip" : "222.16.42.132", "service_id" : 6, "stay_duration" : 1544332210, "page" : "http://unionv4.g3user.com/index/union/click?ad_id=34062832&id=1001&uid=34062832&hf=http://site.leshou.com/s/54910090.html&referer=https://m.baidu.com/ssid=83edc0cfc4a9cab1b4faa383/from=2001a/s?word=%e4%bb%a3%e5%a6%88%e6%8b%9b%e8%81%98%ef%bc%8c%e4%bb%a3%e5%a6%88%e6%8b%9b%e8%81%9822%e4%b8%87%e8%b5%b7%ef%bc%8c%e6%8b%9b%e8%81%98%e4%bb%a3%e5%a6%88%ef%bc%8c%e6%8b%9b%e8%81%98%e4%bb%a3%e5%a6%8822%e4%b8%87%e8%b5%b7%ef%bc%8c%e4%b8%8a%e6%b5%b7%e4%bb%a3%e5%a6%88%e6%8b%9b%e8%81%98%ef%bc%8c%e8%af%95%e7%ae%a1%e4%bb%a3%e5%a6%88%e6%8b%9b%e8%81%98%ef%bc%8c%e5%b9%bf%e5%b7%9e%e4%bb%a3%e5%a6%88%e6%8b%9b%e8%81%98%ef%bc%8c%e9%ab%98%e8%96%aa%e6%8b%9b%e8%81%98%e4%bb%a3%e5%a6%88&key=%E6%83%A0%E9%98%B3%E6%99%AE%E5%B7%A5%E6%8B%9B%E8%81%98&username=huizhouxylw1", "os_version" : "Windows10", "event_timestamp" : 1544332210, "visit_area" : "广东省广州市", "uid" : 34062832, "source" : 1 } }{ "ts" : Timestamp(1545217137, 181), "t" : NumberLong(19), "h" : NumberLong("3123742561629883849"), "v" : 2, "op" : "i", "ns" : "personas.huoke_cleaning", "o" : { "_id" : ObjectId("5c1a247109af7634930ff221"), "ip" : "218.18.76.215", "service_id" : 6, "stay_duration" : 1544332213, "page" : "http://unionv4.g3user.com/index/union/click?ad_id=34002015&id=1001&uid=34002015&hf=http://site.leshou.com/s/54910057.html&referer=http://site.leshou.com/s/54910057.html&key=%E6%AC%A7%E5%B0%9A%E8%B6%85%E5%B8%82%E5%8D%A1%E5%9B%9E%E6%94%B6&username=zhutian682", "os_version" : "Windows7", "event_timestamp" : 1544332213, "visit_area" : "广东省深圳市宝安区", "uid" : 34002015, "source" : 1 } }{ "ts" : Timestamp(1545217137, 182), "t" : NumberLong(19), "h" : NumberLong("-553746934492587590"), "v" : 2, "op" : "i", "ns" : "personas.huoke_cleaning", "o" : { "_id" : ObjectId("5c1a247109af7634930ff228"), "ip" : "218.18.76.215", "service_id" : 6, "stay_duration" : 1544332214, "page" : "http://unionv4.g3user.com/index/union/click?ad_id=34049152&id=1001&uid=34049152&hf=http://site.leshou.com/s/54910090.html&referer=https://www.baidu.com/s?wd=%e4%bb%a3%e5%a6%88%e6%8b%9b%e8%81%98%ef%bc%8c%e4%bb%a3%e5%a6%88%e6%8b%9b%e8%81%9822%e4%b8%87%e8%b5%b7%ef%bc%8c%e6%8b%9b%e8%81%98%e4%bb%a3%e5%a6%88%ef%bc%8c%e6%8b%9b%e8%81%98%e4%bb%a3%e5%a6%8822%e4%b8%87%e8%b5%b7%ef%bc%8c%e4%b8%8a%e6%b5%b7%e4%bb%a3%e5%a6%88%e6%8b%9b%e8%81%98%ef%bc%8c%e8%af%95%e7%ae%a1%e4%bb%a3%e5%a6%88%e6%8b%9b%e8%81%98%ef%bc%8c%e5%b9%bf%e5%b7%9e%e4%bb%a3%e5%a6%88%e6%8b%9b%e8%81%98%ef%bc%8c%e9%ab%98%e8%96%aa%e6%8b%9b%e8%81%98%e4%bb%a3%e5%a6%88&key=%E4%BA%BA%E6%89%8D%E6%8B%9B%E8%81%98&username=xdlw1688", "os_version" : "Windows8.1", "event_timestamp" : 1544332214, "visit_area" : "广东省深圳市宝安区", "uid" : 34049152, "source" : 1 } }{ "ts" : Timestamp(1545217137, 183), "t" : NumberLong(19), "h" : NumberLong("4016501741450240438"), "v" : 2, "op" : "u", "ns" : "statistics_visit.sta_ids", "o2" : { "_id" : "ip_ids" }, "o" : { "$set" : { "id" : 4328026 } } }{ "ts" : Timestamp(1545217137, 184), "t" : NumberLong(19), "h" : NumberLong("-3504779621952126056"), "v" : 2, "op" : "i", "ns" : "personas.huoke_cleaning", "o" : { "_id" : ObjectId("5c1a247109af7634930ff230"), "ip" : "114.249.119.10", "service_id" : 6, "stay_duration" : 1544332257, "page" : "http://unionv4.g3user.com/index/union/click?ad_id=34062832&id=1001&uid=34062832&hf=http://site.leshou.com/s/54910090.html&referer=https://www.baidu.com/s?wd=%e4%bb%a3%e5%a6%88%e6%8b%9b%e8%81%98%ef%bc%8c%e4%bb%a3%e5%a6%88%e6%8b%9b%e8%81%9822%e4%b8%87%e8%b5%b7%ef%bc%8c%e6%8b%9b%e8%81%98%e4%bb%a3%e5%a6%88%ef%bc%8c%e6%8b%9b%e8%81%98%e4%bb%a3%e5%a6%8822%e4%b8%87%e8%b5%b7%ef%bc%8c%e4%b8%8a%e6%b5%b7%e4%bb%a3%e5%a6%88%e6%8b%9b%e8%81%98%ef%bc%8c%e8%af%95%e7%ae%a1%e4%bb%a3%e5%a6%88%e6%8b%9b%e8%81%98%ef%bc%8c%e5%b9%bf%e5%b7%9e%e4%bb%a3%e5%a6%88%e6%8b%9b%e8%81%98%ef%bc%8c%e9%ab%98%e8%96%aa%e6%8b%9b%e8%81%98%e4%bb%a3%e5%a6%88&key=%E6%83%A0%E9%98%B3%E6%99%AE%E5%B7%A5%E6%8B%9B%E8%81%98&username=huizhouxylw1", "os_version" : "WindowsXP", "event_timestamp" : 1544332257, "visit_area" : "北京市", "uid" : 34062832, "source" : 1 } }{ "ts" : Timestamp(1545217137, 185), "t" : NumberLong(19), "h" : NumberLong("2106960831922705206"), "v" : 2, "op" : "i", "ns" : "statistics_visit.sta_ip", "o" : { "_id" : 4328026, "ip" : 1900069637 } }{ "ts" : Timestamp(1545217137, 186), "t" : NumberLong(19), "h" : NumberLong("-8272563865950570493"), "v" : 2, "op" : "i", "ns" : "personas.huoke_cleaning", "o" : { "_id" : ObjectId("5c1a247109af7634930ff23d"), "ip" : "120.229.253.186", "service_id" : 6, "stay_duration" : 1544332259, "page" : "http://unionv4.g3user.com/index/union/click?ad_id=34026031&id=1001&uid=34026031&hf=http://site.leshou.com/s/54910090.html&referer=http://site.leshou.com/section/131&key=%E9%AB%98%E9%93%81%E6%8B%9B%E8%81%98&username=yingjie2015", "os_version" : "Windows10", "event_timestamp" : 1544332259, "visit_area" : "中国", "uid" : 34026031, "source" : 1 } }{ "ts" : Timestamp(1545217137, 187), "t" : NumberLong(19), "h" : NumberLong("-7282821006565344471"), "v" : 2, "op" : "i", "ns" : "personas.huoke_cleaning", "o" : { "_id" : ObjectId("5c1a247109af7634930ff248"), "ip" : "114.249.119.10", "service_id" : 6, "stay_duration" : 1544332259, "page" : "http://unionv4.g3user.com/index/union/click?ad_id=34055748&id=1001&uid=34055748&hf=http://site.leshou.com/s/54910057.html&referer=https://m.baidu.com/ssid=83edc0cfc4a9cab1b4faa383/from=2001a/s?word=%e4%b8%8a%e6%b5%b7%e4%b8%96%e7%ba%aa%e4%bb%a3%e6%80%80%e5%ad%95%e5%85%ac%e5%8f%b8%ef%bc%8c%e4%b8%8a%e6%b5%b7%e4%b8%96%e7%ba%aa%e4%bb%a3%e6%80%80%e5%ad%95%e5%85%ac%e5%8f%b8%e5%ae%98%e7%bd%91%ef%bc%8c%e4%bb%a3%e5%a6%88%e6%8b%9b%e8%81%98%ef%bc%8c%e6%8b%9b%e8%81%98%e4%bb%a3%e5%a6%88&key=%E4%B8%96%E7%BA%AA%E9%BB%84%E9%87%91%E9%A5%B0%E5%93%81&username=changshasj", "os_version" : "Windows10", "event_timestamp" : 1544332259, "visit_area" : "北京市", "uid" : 34055748, "source" : 1 } }{ "ts" : Timestamp(1545217137, 188), "t" : NumberLong(19), "h" : NumberLong("7948803075218536226"), "v" : 2, "op" : "i", "ns" : "personas.huoke_cleaning", "o" : { "_id" : ObjectId("5c1a247109af7634930ff24e"), "ip" : "219.136.205.76", "service_id" : 6, "stay_duration" : 1544332287, "page" : "http://unionv4.g3user.com/index/union/click?ad_id=34055748&id=1001&uid=34055748&hf=http://site.leshou.com/s/54910057.html&referer=https://m.baidu.com/ssid=83edc0cfc4a9cab1b4faa383/from=2001a/s?word=%e4%b8%8a%e6%b5%b7%e4%b8%96%e7%ba%aa%e4%bb%a3%e6%80%80%e5%ad%95%e5%85%ac%e5%8f%b8%ef%bc%8c%e4%b8%8a%e6%b5%b7%e4%b8%96%e7%ba%aa%e4%bb%a3%e6%80%80%e5%ad%95%e5%85%ac%e5%8f%b8%e5%ae%98%e7%bd%91%ef%bc%8c%e4%bb%a3%e5%a6%88%e6%8b%9b%e8%81%98%ef%bc%8c%e6%8b%9b%e8%81%98%e4%bb%a3%e5%a6%88&key=%E4%B8%96%E7%BA%AA%E9%BB%84%E9%87%91%E9%A5%B0%E5%93%81&username=changshasj", "os_version" : "Windows7", "event_timestamp" : 1544332287, "visit_area" : "广东省广州市海珠区", "uid" : 34055748, "source" : 1 } }{ "ts" : Timestamp(1545217137, 189), "t" : NumberLong(19), "h" : NumberLong("-6040200049803529583"), "v" : 2, "op" : "i", "ns" : "personas.huoke_cleaning", "o" : { "_id" : ObjectId("5c1a247109af7634930ff255"), "ip" : "123.161.130.165", "service_id" : 6, "stay_duration" : 1544332307, "page" : "http://unionv4.g3user.com/index/union/click?ad_id=34026031&id=1001&uid=34026031&hf=http://site.leshou.com/s/54910090.html&referer=http://site.leshou.com/section/136&key=%E9%AB%98%E9%93%81%E6%8B%9B%E8%81%98&username=yingjie2015", "os_version" : "Windows7", "event_timestamp" : 1544332307, "visit_area" : "河南省南阳市", "uid" : 34026031, "source" : 1 } }Type "it" for morerepl_test:PRIMARY>

更改ip后
总结:1、进入集合local,查看startup_log可以查看启动日志2、进入集合local,查看system.replset可以查看复制集合3、写入复杂的文档use test;

var oldSystemReplset={ "_id" : "repl_test", "version" : 2, "protocolVersion" : NumberLong(1), "members" : [ { "_id" : 0, "host" : "10.144.114.152:27017", "arbiterOnly" : false, "buildIndexes" : true, "hidden" : false, "priority" : 1, "tags" : {  }, "slaveDelay" : NumberLong(0), "votes" : 1 }, { "_id" : 1, "host" : "10.144.114.65:27017", "arbiterOnly" : false, "buildIndexes" : true, "hidden" : false, "priority" : 1, "tags" : {  }, "slaveDelay" : NumberLong(0), "votes" : 1 } ], "settings" : { "chainingAllowed" : true, "heartbeatIntervalMillis" : 2000, "heartbeatTimeoutSecs" : 10, "electionTimeoutMillis" : 10000, "catchUpTimeoutMillis" : 2000, "getLastErrorModes" : {  }, "getLastErrorDefaults" : { "w" : 1, "wtimeout" : 0 }, "replicaSetId" : ObjectId("59b7308b7cf595c595ffe5c2") } };
创建集合与写入文档repl_test:PRIMARY> var oldSystemReplset={ "_id" : "repl_test", "version" : 2, "protocolVersion" : NumberLong(1), "members" : [ { "_id" : 0, "host" : "10.144.114.152:27017", "arbiterOnly" : false, "buildIndexes" : true, "hidden" : false, "priority" : 1, "tags" : {  }, "slaveDelay" : NumberLong(0), "votes" : 1 }, { "_id" : 1, "host" : "10.144.114.65:27017", "arbiterOnly" : false, "buildIndexes" : true, "hidden" : false, "priority" : 1, "tags" : {  }, "slaveDelay" : NumberLong(0), "votes" : 1 } ], "settings" : { "chainingAllowed" : true, "heartbeatIntervalMillis" : 2000, "heartbeatTimeoutSecs" : 10, "electionTimeoutMillis" : 10000, "catchUpTimeoutMillis" : 2000, "getLastErrorModes" : {  }, "getLastErrorDefaults" : { "w" : 1, "wtimeout" : 0 }, "replicaSetId" : ObjectId("59b7308b7cf595c595ffe5c2") } };repl_test:PRIMARY> oldSystemReplset;{        "_id" : "repl_test",        "version" : 2,        "protocolVersion" : NumberLong(1),        "members" : [                {                        "_id" : 0,                        "host" : "10.144.114.152:27017",                        "arbiterOnly" : false,                        "buildIndexes" : true,                        "hidden" : false,                        "priority" : 1,                        "tags" : {
                        },                        "slaveDelay" : NumberLong(0),                        "votes" : 1                },                {                        "_id" : 1,                        "host" : "10.144.114.65:27017",                        "arbiterOnly" : false,                        "buildIndexes" : true,                        "hidden" : false,                        "priority" : 1,                        "tags" : {
                        },                        "slaveDelay" : NumberLong(0),                        "votes" : 1                }        ],        "settings" : {                "chainingAllowed" : true,                "heartbeatIntervalMillis" : 2000,                "heartbeatTimeoutSecs" : 10,                "electionTimeoutMillis" : 10000,                "catchUpTimeoutMillis" : 2000,                "getLastErrorModes" : {
                },                "getLastErrorDefaults" : {                        "w" : 1,                        "wtimeout" : 0                },                "replicaSetId" : ObjectId("59b7308b7cf595c595ffe5c2")        }}repl_test:PRIMARY> db.tc.insert(oldSystemReplset);WriteResult({ "nInserted" : 1 })repl_test:PRIMARY> db.tc.find({});{ "_id" : "repl_test", "version" : 2, "protocolVersion" : NumberLong(1), "members" : [ { "_id" : 0, "host" : "10.144.114.152:27017", "arbiterOnly" : false, "buildIndexes" : true, "hidden" : false, "priority" : 1, "tags" : {  }, "slaveDelay" : NumberLong(0), "votes" : 1 }, { "_id" : 1, "host" : "10.144.114.65:27017", "arbiterOnly" : false, "buildIndexes" : true, "hidden" : false, "priority" : 1, "tags" : {  }, "slaveDelay" : NumberLong(0), "votes" : 1 } ], "settings" : { "chainingAllowed" : true, "heartbeatIntervalMillis" : 2000, "heartbeatTimeoutSecs" : 10, "electionTimeoutMillis" : 10000, "catchUpTimeoutMillis" : 2000, "getLastErrorModes" : {  }, "getLastErrorDefaults" : { "w" : 1, "wtimeout" : 0 }, "replicaSetId" : ObjectId("59b7308b7cf595c595ffe5c2") } }repl_test:PRIMARY>
先清空集合,再插入db.tc.remove({})
repl_test:PRIMARY> db.tc.remove({})WriteResult({ "nRemoved" : 1 })repl_test:PRIMARY> db.tc.find({})repl_test:PRIMARY> show collectionspersontcrepl_test:PRIMARY>


进入local,热操作执行计划1、切换集合use local;2、显示当前情况db.system.replset.find({});3、定义文档var newSystemReplset={ "_id" : "repl_test", "version" : 2, "protocolVersion" : NumberLong(1), "members" : [ { "_id" : 0, "host" : "47.1.175.111:27017", "arbiterOnly" : false, "buildIndexes" : true, "hidden" : false, "priority" : 1, "tags" : {  }, "slaveDelay" : NumberLong(0), "votes" : 1 }, { "_id" : 1, "host" : "47.1.175.222:27017", "arbiterOnly" : false, "buildIndexes" : true, "hidden" : false, "priority" : 1, "tags" : {  }, "slaveDelay" : NumberLong(0), "votes" : 1 } ], "settings" : { "chainingAllowed" : true, "heartbeatIntervalMillis" : 2000, "heartbeatTimeoutSecs" : 10, "electionTimeoutMillis" : 10000, "catchUpTimeoutMillis" : 2000, "getLastErrorModes" : {  }, "getLastErrorDefaults" : { "w" : 1, "wtimeout" : 0 }, "replicaSetId" : ObjectId("59b7308b7cf595c595ffe5c2") } };4、检测变量newSystemReplset;5、删除db.system.replset.remove({});6、写入db.system.replset.insert(newSystemReplset);7、检查db.system.replset.find({});
实际执行第5步输入命令,报错repl_test:PRIMARY> db.system.replset.remove({});WriteResult({        "writeError" : {                "code" : 13,                "errmsg" : "not authorized on local to execute command { delete: \"system.replset\", deletes: [ { q: {}, limit: 0.0 } ], ordered: true }"        }})repl_test:PRIMARY>
解决方案:方案1、关闭slave,重试计划1>/usr/local/mongodb/bin/mongod  -f  /usr/local/mongodb/conf/mongod.conf  --shutdown2>重试
测试:
repl_test:PRIMARY> db.system.replset.remove({});WriteResult({        "writeError" : {                "code" : 13,                "errmsg" : "not authorized on local to execute command { delete: \"system.replset\", deletes: [ { q: {}, limit: 0.0 } ], ordered: true }"        }})repl_test:PRIMARY> db.system.replset.remove({});2018-12-28T11:50:22.355+0800 I NETWORK  [main] DBClientCursor::init call() failed2018-12-28T11:50:22.356+0800 E QUERY    [main] Error: Error: error doing query: failed :DBCollection.prototype.remove@src/mongo/shell/collection.js:465:23@(shell):1:12018-12-28T11:50:22.357+0800 I NETWORK  [main] trying reconnect to 10.144.114.152:27017 (10.144.114.152) failed2018-12-28T11:50:22.358+0800 I NETWORK  [main] reconnect 10.144.114.152:27017 (10.144.114.152) okrepl_test:SECONDARY> ^C
master先继续报之前错误,之后,转变为SECONDARY
方案2:关闭复制集去掉conf 复制集#replSet=repl_test
db.system.replset.find({});
> db.system.replset.remove({});WriteResult({        "writeError" : {                "code" : 13,                "errmsg" : "not authorized on local to execute command { delete: \"system.replset\", deletes: [ { q: {}, limit: 0.0 } ], ordered: true }"        }})>


方案3;https://docs.mongodb.com/manual/reference/method/rs.reconfig/#rs.reconfig参考cfg = rs.conf();cfg.members[1].priority = 2;rs.reconfig(cfg);
1、查看当前情况 rs.conf();2、定义文档var newSystemReplset={ "_id" : "repl_test", "version" : 2, "protocolVersion" : NumberLong(1), "members" : [ { "_id" : 0, "host" : "47.1.175.111:27017", "arbiterOnly" : false, "buildIndexes" : true, "hidden" : false, "priority" : 1, "tags" : {  }, "slaveDelay" : NumberLong(0), "votes" : 1 }, { "_id" : 1, "host" : "47.1.175.222:27017", "arbiterOnly" : false, "buildIndexes" : true, "hidden" : false, "priority" : 1, "tags" : {  }, "slaveDelay" : NumberLong(0), "votes" : 1 } ], "settings" : { "chainingAllowed" : true, "heartbeatIntervalMillis" : 2000, "heartbeatTimeoutSecs" : 10, "electionTimeoutMillis" : 10000, "catchUpTimeoutMillis" : 2000, "getLastErrorModes" : {  }, "getLastErrorDefaults" : { "w" : 1, "wtimeout" : 0 }, "replicaSetId" : ObjectId("59b7308b7cf595c595ffe5c2") } };3、检测变量newSystemReplset;4、执行变更rs.reconfig(newSystemReplset);5、检查结果 rs.conf(); 按照上述执行repl_test:PRIMARY> rs.reconfig(newSystemReplset);{ "ok" : 1 }repl_test:PRIMARY>  rs.conf();{        "_id" : "repl_test",        "version" : 3,        "protocolVersion" : NumberLong(1),        "members" : [                {                        "_id" : 0,                        "host" : "47.1.175.111:27017",                        "arbiterOnly" : false,                        "buildIndexes" : true,                        "hidden" : false,                        "priority" : 1,                        "tags" : {
                        },                        "slaveDelay" : NumberLong(0),                        "votes" : 1                },                {                        "_id" : 1,                        "host" : "47.1.175.222:27017",                        "arbiterOnly" : false,                        "buildIndexes" : true,                        "hidden" : false,                        "priority" : 1,                        "tags" : {
                        },                        "slaveDelay" : NumberLong(0),                        "votes" : 1                }        ],        "settings" : {                "chainingAllowed" : true,                "heartbeatIntervalMillis" : 2000,                "heartbeatTimeoutSecs" : 10,                "electionTimeoutMillis" : 10000,                "catchUpTimeoutMillis" : 2000,                "getLastErrorModes" : {
                },                "getLastErrorDefaults" : {                        "w" : 1,                        "wtimeout" : 0                },                "replicaSetId" : ObjectId("59b7308b7cf595c595ffe5c2")        }}repl_test:PRIMARY>完成任务;
追加检查业务脚本;

检查结果正常

posted @ 2018-12-28 10:45  papering  阅读(1044)  评论(0编辑  收藏  举报