简体   繁体   English

Mongodb:AutoReconnect,由对等方重置连接

[英]Mongodb : AutoReconnect, Connection reset by peer

i use pymongo to test the performance of the mongodb. 我使用pymongo来测试mongodb的性能。 i use 100 threads, every thread excecute 5000 insert, and everything work ok. 我使用100个线程,每个线程超过5000插入,一切正常。 but when i excecute 10000 insert in every thead, i meet some error: 但是当我在每个thead中执行10000次插入时,我遇到了一些错误:

"AutoReconnect: Connection reset by peer" “自动重新连接:由同行重置连接”

在您的代码尝试使用它之前,驱动程序无法从池中连接删除掉落的套接字。

What is your plateform ? 你的平台是什么? ( simple mongod, ReplicaSet, Shard) (简单的mongod,ReplicaSet,Shard)

Do you use "bulk insert" ? 你使用“批量插入”吗? http://www.mongodb.org/display/DOCS/Inserting#Inserting-Bulkinserts http://www.mongodb.org/display/DOCS/Inserting#Inserting-Bulkinserts

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM