MongoShake icon indicating copy to clipboard operation
MongoShake copied to clipboard

升级版本后ckpt字段格式变化,如何获取时间戳信息

Open wslin1994 opened this issue 1 year ago • 1 comments

新版本2.8.4 { "_id" : ObjectId("6582feeb7ceac017483c81ba"), "name" : "udb-mf04rezt", "ckpt" : NumberLong(7314871003543240909), "fetch_method" : "oplog", "oplog_disk_queue" : "", "oplog_disk_queue_apply_finish_ts" : NumberLong(0), "version" : NumberInt(2) } 原老版本为: { "_id" : ObjectId("604b56767ceac01748179085"), "name" : "udb-mf04rezt", "ckpt" : Timestamp(1703125341, 1570) }

我有个脚本来监控ckpt中的时间戳,但是目前ckpt字段格式变化了,我应该如何获取时间戳呢? 参考配置文件说明: checkpoint作为断点续传的位点信息,存储的是64位的混合逻辑时钟,对应MongoDB oplog的ts字段(32位时间戳+32位自增计数) 但是还是不清楚该如何获取ckpt的时间戳信息。

wslin1994 avatar Dec 21 '23 03:12 wslin1994

@wslin1994

curl -s http://127.0.0.1:9100/repl | jq

QooGeek avatar Dec 25 '23 10:12 QooGeek