摘要: 查看数据插入分片后分布情况 第一种方式:mongos> use articledb switched to db articledb mongos> db.comment.getShardDistribution() Shard hqmongodb2 at hqmongodb2/192.168.1. 阅读全文
posted @ 2020-09-04 16:10 fat_girl_spring 阅读(636) 评论(0) 推荐(0) 编辑
摘要: --storage.tsdb.retention 该参数决定何时删除旧数据,默认是15天在启动脚本里修改--storage.tsdb.retention=90d可以延长,或者启动时带上这个参数即可。 阅读全文
posted @ 2020-09-04 11:08 fat_girl_spring 阅读(6926) 评论(0) 推荐(2) 编辑