qin
qin

Reputation: 31

Mongodb : AutoReconnect, Connection reset by peer

i use pymongo to test the performance of the mongodb. i use 100 threads, every thread excecute 5000 insert, and everything work ok. but when i excecute 10000 insert in every thead, i meet some error:

"AutoReconnect: Connection reset by peer"

Upvotes: 3

Views: 2056

Answers (2)

Yiheng Li
Yiheng Li

Reputation: 145

Driver can't remove dropped socket from connection from pool until your code try use it.

Upvotes: 1

Lujeni
Lujeni

Reputation: 356

What is your plateform ? ( simple mongod, ReplicaSet, Shard)

Do you use "bulk insert" ? http://www.mongodb.org/display/DOCS/Inserting#Inserting-Bulkinserts

Upvotes: 0

Related Questions