发布时间:2018-05-29 17:39:34
一个好好的mongodb复制集,突然报oplog window只有0.5h了,这是主从要崩问题呀。先看主从情况:主从状态正常db.printreplicationinfo()configured oplog size: 51200mblog length start to end: 2063secs (0.57hrs)oplog first event time: tue may 29 2018 10:23:37 .........
发布时间:2018-05-23 13:53:40
index too long......
发布时间:2018-05-23 13:48:56
mongodb日志:2018-05-22t17:49:52.493 0800 i command [conn21061] serverstatus was very slow: { after basic: 0, after asserts: 0, after backgroundflushing: 0, after connections: 0, after dur: 0, after extra_info: 0, after globallock: 0, after locks: 0, after network: 0, after oplatencies: 0, af.........
发布时间:2018-05-23 13:33:52
#关闭数据库use admindb.shutdownserver()#以standalones启动use localshow tables;#保存最后条记录db.temp.save( db.oplog.rs.find( { }, { ts: 1, h: 1 } ).sort( {$natural : -1} ).limit(1).next() )show tables;db.temp.find()#删除 oplog.rs表db.oplog.rs.drop()show tables;#新建 oplog.rs的表db.runc.........
chinaunix网友2006-11-28 13:52
突然好奇兼无聊来踩个脚印。宝兰,今天第一门考试我就考砸了,心情很沮丧的在车里坐了10分钟才出发回家。现在心情略微好些了,b就b把,反正已经那样了,总要有个第一次就是了。你都不来写东东,我不知道这个留言会被放到哪里,无所谓,就是想发个牢骚。改天聊吧,还有4天需要熬,天知道我已经快要放弃自己了,鼓励一下吧。