- Java 双重比较
- java - 比较器与 Apache BeanComparator
- Objective-C 完成 block 导致额外的方法调用?
- database - RESTful URI 是否应该公开数据库主键?
我对 mongodb Replset 集有疑问。
2014-08-14T13:59:45.450+0800 [conn261130] end connection 192.168.1.4:41239 (10 connections now open)
2014-08-14T13:59:45.457+0800 [initandlisten] connection accepted from 192.168.1.6:46926 #261131 (11 connections now open)
2014-08-14T13:59:45.458+0800 [conn261131] replset couldn't find a slave with id 4, not tracking 52d253cf169c45b89a53a4b5
2014-08-14T13:59:45.459+0800 [conn261131] end connection 192.168.1.6:46926 (10 connections now open)
2014-08-14T13:59:45.952+0800 [initandlisten] connection accepted from 192.168.1.4:41240 #261132 (11 connections now open)
2014-08-14T13:59:45.953+0800 [conn261132] replset couldn't find a slave with id 4, not tracking 52d253cf169c45b89a53a4b5
2014-08-14T13:59:45.954+0800 [conn261132] end connection 192.168.1.4:41240 (10 connections now open)
2014-08-14T13:59:45.961+0800 [initandlisten] connection accepted from 192.168.1.6:46927 #261133 (11 connections now open)
2014-08-14T13:59:45.962+0800 [conn261133] replset couldn't find a slave with id 4, not tracking 52d253cf169c45b89a53a4b5
2014-08-14T13:59:45.963+0800 [conn261133] end connection 192.168.1.6:46927 (10 connections now open)
2014-08-14T13:59:46.461+0800 [initandlisten] connection accepted from 192.168.1.4:41241 #261134 (11 connections now open)
2014-08-14T13:59:46.462+0800 [conn261134] replset couldn't find a slave with id 4, not tracking 52d253cf169c45b89a53a4b5
2014-08-14T13:59:46.462+0800 [conn261134] end connection 192.168.1.4:41241 (10 connections now open)
2014-08-14T13:59:46.465+0800 [initandlisten] connection accepted from 192.168.1.6:46928 #261135 (11 connections now open)
2014-08-14T13:59:46.466+0800 [conn261135] replset couldn't find a slave with id 4, not tracking 52d253cf169c45b89a53a4b5
2014-08-14T13:59:46.467+0800 [conn261135] end connection 192.168.1.6:46928 (10 connections now open)
2014-08-14T13:59:46.965+0800 [initandlisten] connection accepted from 192.168.1.4:41242 #261136 (11 connections now open)
2014-08-14T13:59:46.966+0800 [conn261136] replset couldn't find a slave with id 4, not tracking 52d253cf169c45b89a53a4b5
2014-08-14T13:59:46.966+0800 [conn261136] end connection 192.168.1.4:41242 (10 connections now open)
2014-08-14T13:59:46.970+0800 [initandlisten] connection accepted from 192.168.1.6:46929 #261137 (11 connections now open)
2014-08-14T13:59:46.970+0800 [conn261137] replset couldn't find a slave with id 4, not tracking 52d253cf169c45b89a53a4b5
2014-08-14T13:59:46.971+0800 [conn261137] end connection 192.168.1.6:46929 (10 connections now open)
2014-08-14T13:59:47.469+0800 [initandlisten] connection accepted from 192.168.1.4:41243 #261138 (11 connections now open)
2014-08-14T13:59:47.470+0800 [conn261138] replset couldn't find a slave with id 4, not tracking 52d253cf169c45b89a53a4b5
2014-08-14T13:59:47.470+0800 [conn261138] end connection 192.168.1.4:41243 (10 connections now open)
2014-08-14T13:59:47.474+0800 [initandlisten] connection accepted from 192.168.1.6:46930 #261139 (11 connections now open)
2014-08-14T13:59:47.474+0800 [conn261139] replset couldn't find a slave with id 4, not tracking 52d253cf169c45b89a53a4b5
2014-08-14T13:59:47.475+0800 [conn261139] end connection 192.168.1.6:46930 (10 connections now open)
{
"setName" : "yspmongo",
"setVersion" : 263706,
"ismaster" : true,
"secondary" : false,
"hosts" : [
"192.168.1.5:20012",
"192.168.1.6:20013",
"192.168.1.4:20011"
],
"arbiters" : [
"192.168.1.7:20014"
],
"primary" : "192.168.1.5:20012",
"me" : "192.168.1.5:20012",
"maxBsonObjectSize" : 16777216,
"maxMessageSizeBytes" : 48000000,
"maxWriteBatchSize" : 1000,
"localTime" : ISODate("2014-08-14T06:02:56.542Z"),
"maxWireVersion" : 2,
"minWireVersion" : 0,
"ok" : 1
}
{
"set" : "yspmongo",
"date" : ISODate("2014-08-14T06:07:13Z"),
"myState" : 1,
"members" : [
{
"_id" : 11,
"name" : "192.168.1.4:20011",
"health" : 1,
"state" : 2,
"stateStr" : "SECONDARY",
"uptime" : 62884,
"optime" : Timestamp(1407996413, 9),
"optimeDate" : ISODate("2014-08-14T06:06:53Z"),
"lastHeartbeat" : ISODate("2014-08-14T06:07:12Z"),
"lastHeartbeatRecv" : ISODate("2014-08-14T06:07:13Z"),
"pingMs" : 1,
"syncingTo" : "192.168.1.5:20012"
},
{
"_id" : 12,
"name" : "192.168.1.5:20012",
"health" : 1,
"state" : 1,
"stateStr" : "PRIMARY",
"uptime" : 65067,
"optime" : Timestamp(1407996413, 9),
"optimeDate" : ISODate("2014-08-14T06:06:53Z"),
"electionTime" : Timestamp(1407932205, 2),
"electionDate" : ISODate("2014-08-13T12:16:45Z"),
"self" : true
},
{
"_id" : 13,
"name" : "192.168.1.6:20013",
"health" : 1,
"state" : 2,
"stateStr" : "SECONDARY",
"uptime" : 62884,
"optime" : Timestamp(1407996413, 9),
"optimeDate" : ISODate("2014-08-14T06:06:53Z"),
"lastHeartbeat" : ISODate("2014-08-14T06:07:13Z"),
"lastHeartbeatRecv" : ISODate("2014-08-14T06:07:12Z"),
"pingMs" : 1,
"syncingTo" : "192.168.1.5:20012"
},
{
"_id" : 14,
"name" : "192.168.1.7:20014",
"health" : 1,
"state" : 7,
"stateStr" : "ARBITER",
"uptime" : 62516,
"lastHeartbeat" : ISODate("2014-08-14T06:07:13Z"),
"lastHeartbeatRecv" : ISODate("2014-08-14T06:07:12Z"),
"pingMs" : 0
}
],
"ok" : 1
}
如何处理日志提示?
最佳答案
这是 2.6 中的错误这不应干扰其他副本节点的复制。
作为解决方法,您可以重新启动应该更新副本集缓存的主节点。
关于mongodb - replset 找不到具有 id 的 slave,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25301248/
我尝试在 Ubuntu 14.04 x64 上设置副本集。我在尝试时遇到的第一个错误 $ sudo mongod --port 27017 --replSet rs0: replSet can't g
我正在使用MongoDB worker role project在 Azure 上使用 MongoDB。我有两个独立的云服务,其中一个一切正常,但在另一个中,MongoDB 辅助角色陷入 Busy (
我想试试 mongodb 副本集。我按照《MongoDB:权威指南》的步骤。 $ mongo --nodb 然后在 mongo shell 中: replicaSet = new ReplicaSet
我正在我的本地主机上设置一个副本集,只是为了练习使用必要的命令。我在家里和工作中都这样做。在家里,rs.initiate() 命令运行大约需要三秒钟,而 rs.status() 又需要大约两三分钟才能
首先我知道this与我的标题相同,但就我而言,它不是错误的端口。 我想在我的本地机器上设置分片,我从以下命令开始: mongod --shardsvr --replSet rs1 --port 270
我正在尝试使用以下docker-compose文件创建在本地运行的Mongo ReplicaSet: version: '2.0' services: db01: image: mongo
我做了一个 MongoDB 作业并按照步骤操作,但我遇到了问题“服务器未使用 replset 运行” 我做的步骤是: `"start mongod --replSet m101 --logpath 1
我正在研究 MongoDBUniversity的M101P:面向开发人员的 MongoDB 类(class)。 我在 MongoDB 3.2 上使用 WiredTiger。 我目前的主题是副本集。 类
我有 2 个节点(节点 0、节点 1)的 mongodb 复制集,有一天其中一个节点(节点 1)崩溃。 考虑到删除node1的所有数据再重启需要很长时间,我关闭node0,rsync数据到node1
我正在 Windows 环境中的本地系统上创建副本集按照以下步骤 mkdir -p \srv\mongodb\rs0-0 \srv\mongodb\rs0-1 \srv\mongodb\rs0-2 m
我有一个三节点的 MongoDB 副本集。 如果我通过命令行写入主节点,它会很快完成( 45 秒)! 我在日志中没有看到任何异常——只是成功的连接。 数据最终显示出来,但每个节点的连接都阻塞了。 示例
Node 、 Mongoose 我尝试连接到 mongolab。 mongoose.main_conn = mongoose.createConnection(uriUtil.forma
当我们进行大量并行连接时,我们遇到了 mongodb 套接字关闭的问题。 这是一个测试脚本: var mongodb = require("mongodb"); var async = require
我正在尝试这个: mongod --replSet mySet --dbpath /data/r1 --port 27017 --oplogSize 700 mongod --replSet mySe
我对 mongodb Replset 集有疑问。 主服务器日志消息: 2014-08-14T13:59:45.450+0800 [conn261130] end connection 192.168.
我正在尝试使用此文档在我的 macbook pro 上部署开发/测试复制集。 http://docs.mongodb.org/manual/tutorial/deploy-replica-set/ 我
如何在使用带有选项 server.ssl 的 mongoose 5.2.17 连接到 mongo 后删除此警告。 the server/replset/mongos/db options are de
我的 AWS EC2 实例中有一个独立的 MongoDB 实例。我打算将其转移到 Mongo Atlas。前提是将MongoDB实例转换为副本集。 以下是我的 mongo.conf 的代码文件: #
我想知道如何更改我的 java 代码以支持使用 spring-data 和 MongoDB 的 replset。 我有 3 个 MongoDB 服务器在运行.. 示例: ./mongod --dbpa
我正在 linux 上配置一个 3 节点的 mongodb 副本集。我正在使用以下配置 fork = true bind_ip = 127.0.0.1 port = 27017 verbose = t
我是一名优秀的程序员,十分优秀!