使用3臺配置為E5-2630 v4 DDR3 128G的服務器,搭建3分片(每個分片3副本)的集群,用ycsb插入10億資料(每條資料約1k大小,使用40執行緒,批量插入),前1億吞吐量達到3w多,到了3億就查看mongostat發現araw進行很大,dirty經常達到20%,請問這是什么原因?
以下是我的啟動配置引數:
pidfilepath = /data/mongodb/data/shard1/log/shard1.pid
dbpath = /data/mongodb/data/shard1/data
logpath = /data/mongodb/data/shard1/log/shard1.log
logappend = true
bind_ip = 0.0.0.0
port = 27001
fork = true
wiredTigerCacheSizeGB=20
replSet = shard1
shardsvr = true
maxConns = 20000
wiredTigerDirectoryForIndexes=true

uj5u.com熱心網友回復:
正常 wiredtiger的btree的索引模式肯定越插入越慢穩定的插入速度可以用RocksDB 引擎
uj5u.com熱心網友回復:
可能記憶體占用快滿了,你用htop看看狀態轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/89489.html
標籤:MongoDB
上一篇:kettle 添加資料源報錯
