點擊上方“IT那活兒”公眾號,關(guān)注后了解更多內(nèi)容,不管IT什么活兒,干就完了!!!
背景:
主庫dbpath目錄使用率96%,剩余空間只有40GB左右,且無法進(jìn)行磁盤擴(kuò)容。
PRIMARY:AKTM> db.list***ord.getIndexes();
[
{
"v" : 2,
"key" :{
"timestamp": 1
},
"name" :"timestamp_1",
"background": true,
"ns" :"AKTM.list***ord",
"expireAfterSeconds": NumberLong(2678400)
},
{
"v" : 2,
"key" :{
"_id": 1
},
"name" :"_id_",
"ns" :"AKTM.list***ord"
}
]
db.runCommand( { collMod:"list***ord",
index: { keyPattern: { timestamp:1 },
expireAfterSeconds: 604800
}
})
PRIMARY:AKTM> db.list***ord.getIndexes();
[
{
"v" : 2,
"key" :{
"timestamp": 1
},
"name" :"timestamp_1",
"background": true,
"ns" :"AKTM.list***ord",
"expireAfterSeconds": NumberLong(604800)
},
{
"v" : 2,
"key" :{
"_id": 1
},
"name" :"_id_",
"ns" :"AKTM.list***ord"
}
]
2020-07-01T07:17:49.265+0800 IREPL [replication-147] We are too stale to use10.***.***.83:27017 as a sync source. Blacklisting this sync sourcebecause our last fetched timestamp: Timestamp(1593529482, 5082) isbefore their earliest timestamp: Timestamp(1593553525, 1720) for 1minuntil: 2020-07-01T07:18:49.265+0800
2020-07-01T07:17:49.266+0800 IREPL [replication-147] sync source candidate: 10.**.***.138:27017
2020-07-01T07:17:49.268+0800 IREPL [replication-147] We are too stale to use10.25.151.138:27017 as a sync source. Blacklisting this sync sourcebecause our last fetched timestamp: Timestamp(1593529482, 5082) isbefore their earliest timestamp: Timestamp(1593553515, 601) for 1minuntil: 2020-07-01T07:18:49.268+0800
repl1:SECONDARY>rs.printReplicationInfo();
configured oplog size: 10240MB
log length start to end: 4704secs(1.31hrs)
oplog first event time: Wed Jul01 2020 06:30:31 GMT+0800 (CST)
oplog last event time: Wed Jul01 2020 07:48:55 GMT+0800 (CST)
now: Wed Jul01 2020 07:48:56 GMT+0800 (CST)
正確的操作方式應(yīng)該是:
文章版權(quán)歸作者所有,未經(jīng)允許請勿轉(zhuǎn)載,若此文章存在違規(guī)行為,您可以聯(lián)系管理員刪除。
轉(zhuǎn)載請注明本文地址:http://m.specialneedsforspecialkids.com/yun/129273.html
摘要:先睹為快振奮人心的時刻終于到來了,在經(jīng)過一個上市的日子后,終于發(fā)布了。實戰(zhàn)在線開啟認(rèn)證模式解讀我是上海小胖,專注等開源數(shù)據(jù)庫的,擁抱開源,接受收費。上海小胖原創(chuàng)地址歡迎各位大神前來評論。每周五,敬請期待,上海小胖獨更。 MongoDB 3.6 先睹為快 Part 1 振奮人心的時刻終于到來了,在經(jīng)過一個MongoDB 上市的日子后,MongoDB 終于發(fā)布了MongoDB 3.6 RC...
摘要:先睹為快振奮人心的時刻終于到來了,在經(jīng)過一個上市的日子后,終于發(fā)布了。實戰(zhàn)在線開啟認(rèn)證模式解讀我是上海小胖,專注等開源數(shù)據(jù)庫的,擁抱開源,接受收費。上海小胖原創(chuàng)地址歡迎各位大神前來評論。每周五,敬請期待,上海小胖獨更。 MongoDB 3.6 先睹為快 Part 1 振奮人心的時刻終于到來了,在經(jīng)過一個MongoDB 上市的日子后,MongoDB 終于發(fā)布了MongoDB 3.6 RC...
摘要:出現(xiàn)的問題筆者前段時間開發(fā)一個新項目的某個功能模塊要讀取老游戲中某個數(shù)據(jù)庫計作庫連續(xù)讀庫中的個集合相當(dāng)于的張表取數(shù)據(jù)在測試環(huán)境單次操作時是內(nèi)但是并發(fā)測試情況下比如內(nèi)個并發(fā)時讀取庫個集合的耗時能達(dá)到以上甚至且個并發(fā)請求幾乎同時完成但是在我本地 出現(xiàn)的問題 筆者前段時間開發(fā)一個新項目的某個功能模塊,要讀取老游戲中某個Mongo數(shù)據(jù)庫(計作A庫),連續(xù)讀A庫中的6個集合(相當(dāng)于MySQL的6...
摘要:大家好,我是冰河有句話叫做投資啥都不如投資自己的回報率高。馬上就十一國慶假期了,給小伙伴們分享下,從小白程序員到大廠高級技術(shù)專家我看過哪些技術(shù)類書籍。 大家好,我是...
閱讀 1353·2023-01-11 13:20
閱讀 1699·2023-01-11 13:20
閱讀 1211·2023-01-11 13:20
閱讀 1904·2023-01-11 13:20
閱讀 4161·2023-01-11 13:20
閱讀 2751·2023-01-11 13:20
閱讀 1397·2023-01-11 13:20
閱讀 3664·2023-01-11 13:20