The test I've run was in jmetter with 500 concurrent readers. In addition I
have one single thread writer who's loading the 10M documents.
This is only test environment, thus I've configured 1 config server, I know
that I need to run with 3 (I wanted to simplify the test meanwhile)
This is another snapshot of crash log.
> Tue Aug 7 16:14:40 [conn723865] Socket recv() errno:104 Connection reset
>> by peer 172.16.40.32:10020
> Tue Aug 7 16:14:40 [conn723865] SocketException: remote:
>> 172.16.40.32:10020 error: 9001 socket exception [1] server
>> [172.16.40.32:10020]
> Tue Aug 7 16:14:40 [conn723865] DBClientCursor::init lazy say() failed
> Tue Aug 7 16:14:40 [conn723865] DBClientCursor::init message from say()
>> was empty
> Tue Aug 7 16:14:40 [conn723865] slave no longer has secondary status:
>> 172.16.40.32:10020
> Tue Aug 7 16:14:40 [conn723865] warning: invalid result from
>> shard3/172.16.40.202:10020,172.16.40.32:10020, retrying
> Tue Aug 7 16:14:40 [conn723865] retrying parallel connection to
>> shard3/172.16.40.202:10020,172.16.40.32:10020, 0 finished queries.
> Tue Aug 7 16:14:40 [conn723865] DBException in process: could not
>> initialize cursor across all shards because : boost::thread_resource_error
>> @ shard3/172.16.40.202:10020,172.16.40.32:10020
> Tue Aug 7 16:14:40 [conn723863] Socket recv() errno:104 Connection reset
>> by peer 172.16.40.32:10020
> Tue Aug 7 16:14:40 [conn723863] SocketException: remote:
>> 172.16.40.32:10020 error: 9001 socket exception [1] server
>> [172.16.40.32:10020]
> Tue Aug 7 16:14:40 [conn723863] DBClientCursor::init lazy say() failed
> Tue Aug 7 16:14:40 [conn723863] DBClientCursor::init message from say()
>> was empty
> Tue Aug 7 16:14:40 [conn723863] slave no longer has secondary status:
>> 172.16.40.32:10020
> Tue Aug 7 16:14:40 [conn723863] warning: invalid result from
>> shard3/172.16.40.202:10020,172.16.40.32:10020, retrying
> Tue Aug 7 16:14:40 [conn723863] retrying parallel connection to
>> shard3/172.16.40.202:10020,172.16.40.32:10020, 0 finished queries.
> Tue Aug 7 16:14:40 [mongosMain] pthread_create failed: errno:11 Resource
>> temporarily unavailable
> Tue Aug 7 16:14:40 [mongosMain] can't create new thread, closing
>> connection
> Tue Aug 7 16:14:40 [conn724131] ERROR: Uncaught std::exception:
>> boost::thread_resource_error, terminating
> Tue Aug 7 16:14:40 [conn724131] dbexit: rc:100
> Logstream::get called in uninitialized state
> Tue Aug 7 16:14:40 [conn724138] Assertion failure ! inShutdown()
>> client/connpool.cpp 136
> Logstream::get called in uninitialized state
> Logstream::get called in uninitialized state
> Logstream::get called in uninitialized stateTue Aug 7 16:14:40
>> [conn724144] Assertion failure ! inShutdown() client/connpool.cpp 136
>> Logstream::get called in uninitialized state0x52b5f6 0x53613b 0x5628d8
>> 0x562a4b 0x5c55aa 0x5c4030 0x5c4306 0x5f0c58 0x770329 0x7b6467 0x7c89c1
>> 0x5e9747 0x7f480a270971 0x7f480982cf3d
> Logstream::get called in uninitialized state
> Logstream::get called in uninitialized state
> Tue Aug 7 16:14:40 [conn724140] Assertion failure ! inShutdown()
>> client/connpool.cpp 136
> Logstream::get called in uninitialized state
> Logstream::get called in uninitialized state
> Tue Aug 7 16:14:40 [conn724142] Assertion failure ! inShutdown()
>> client/connpool.cpp 136
> 0x52b5f6 0x53613b 0x5628d8 0x562a4b 0x5c55aa 0x5c4030 0x5c4306 0x5f0c58
>> 0x770329 0x7b6467 0x7c89c1 0x5e9747 0x7f480a270971 0x7f480982cf3d
> Logstream::get called in uninitialized state
> Logstream::get called in uninitialized state0x52b5f6
> Tue Aug 7 16:14:40 [conn724065] Socket recv() errno:104 Connection reset
>> by peer 172.16.40.32:10020
> Tue Aug 7 16:14:40 [conn724148] Assertion failure ! inShutdown()
>> client/connpool.cpp 136
> Logstream::get called in uninitialized state
> 0x52b5f6 0x53613b 0x5628d8 0x562a4b 0x5c55aa 0x5c4030 0x5c4595 0x769507
>> 0x777aac 0x7b6467 0x7c89c1 0x5e9747 0x7f480a270971 0x7f480982cf3d
> Tue Aug 7 16:14:40 [conn724065] SocketException: remote:
>> 172.16.40.32:10020 error: 9001 socket exception [1] server
>> [172.16.40.32:10020]
> Logstream::get called in uninitialized stateLogstream::get called in
>> uninitialized state
> 0x53613bLogstream::get called in uninitialized state
> 0x5628d8 0x562a4b 0x5c55aa 0x5c4030 0x5c4306 0x5f0c58 0x770329 0x7b6467
>> 0x7c89c1 0x5e9747 0x7f480a270971 0x7f480982cf3d
> 0x52b5f6 0x53613b 0x5628d8 0x562a4b 0x5c55aa 0x5c4030Tue Aug 7 16:14:40
>> [conn724149] Assertion failure ! inShutdown() client/connpool.cpp 136
> Logstream::get called in uninitialized state
> Tue Aug 7 16:14:40 [conn724139] Assertion failure ! inShutdown()
>> client/connpool.cpp 136
> Tue Aug 7 16:14:40 [conn724146] Assertion failure ! inShutdown()
>> client/connpool.cpp 136
> Tue Aug 7 16:14:40 [conn724143] Assertion failure ! inShutdown()
>> client/connpool.cpp 136
> 0x52b5f6 0x53613b 0x5628d8 0x562a4b 0x5c55aa 0x5c4030 0x5c4306 0x5f0c58
>> 0x770329 0x7b6467 0x7c89c1 0x5e9747 0x7f480a270971 0x7f480982cf3d
> 0x52b5f6 0x53613b 0x5628d8 0x562a4b 0x5c55aa 0x5c4030 0x5c4306 0x5f0c58
>> 0x770329 0x7b6467 0x7c89c1 0x5e9747 0x7f480a270971 0x7f480982cf3d
> 0x52b5f6 0x53613b 0x5628d8 0x562a4b 0x5c55aa 0x5c4030 0x5c4306 0x5f0c58
>> 0x770329 0x7b6467 0x7c89c1 0x5e9747 0x7f480a270971 0x7f480982cf3d
> Tue Aug 7 16:14:40 [conn724065] DBClientCursor::init call() failed
> 0x52b5f6 0x53613b 0x5628d8 0x562a4b 0x5c55aa 0x5c4030 0x5c4306 0x5f0c58
>> 0x770329 0x7b6467 0x7c89c1 0x5e9747 0x7f480a270971 0x7f480982cf3d
> Logstream::get called in uninitialized state
> Tue Aug 7 16:14:40 [conn724065] DBException in process: could not
>> initialize cursor across all shards because : DBClientBase::findN:
>> transport error: 172.16.40.32:10020 query: { setShardVersion: "", init:
>> true, configdb: "172.16.40.31:20000", serverID:
>> ObjectId('5020fe23566de242099f4c3e'), authoritative: true } @
>> shard1/172.16.40.31:10000,172.16.40.32:10000
>> ue Aug 7 16:14:40 [conn724141] Assertion failure ! inShutdown()
>> client/connpool.cpp 136
> Received signal 6
> Backtrace: 0x54e5b5 0x7f4809779c20 0x7f4809779ba5 0x7f480977d6b0
>> 0x7f4809772a71 0x5e9f04 0x7f480a270971 0x7f480982cf3d
> 0x5c4306 0x5f0c58 0x770329 0x7b6467 0x7c89c1 0x5e9747 0x7f480a270971
>> 0x7f480982cf3d
> 0x52b5f6 0x53613b 0x5628d8 0x562a4b 0x5c55aa 0x5c4030 0x5c4595 0x769507
>> 0x777aac 0x7b6467 0x7c89c1 0x5e9747 0x7f480a270971 0x7f480982cf3d
> Tue Aug 7 16:14:40 [conn724147] Assertion failure ! inShutdown()
>> client/connpool.cpp 136
> Tue Aug 7 16:14:40 [conn724088] Assertion failure ! inShutdown()
>> client/connpool.cpp 136
> Received signal 11
> Backtrace: Tue Aug 7 16:14:40 [conn724084] Assertion failure !
>> inShutdown() client/connpool.cpp 136
> 0x52b5f6 0x53613b 0x5628d8 0x562a4b 0x5c55aa 0x5c4030 0x5c4306 0x5f0c58
>> 0x770329 0x7b6467 0x7c89c1 0x5e9747 0x7f480a270971 0x7f480982cf3d
> 0x54e5b5 0x7f4809779c20 0x500942 0x50b854 0x50c544 0x52b5f6 0x739df8
>> 0x76f9f5 0x7b6467 0x7c89c1 0x5e9747 0x7f480a270971 0x7f480982cf3d
> 0x52b5f6 0x53613b 0x5628d8 0x562a4b 0x5c55aa 0x5c4030 0x5c4306 0x5f0c58
>> 0x770329 0x7b6467 0x7c89c1 0x5e9747 0x7f480a270971 0x7f480982cf3d
> Logstream::get called in uninitialized state
> Tue Aug 7 16:14:40 [mongosMain] dbexit: rc:0
> Received signal 11
> Backtrace: 0x54e5b5 0x7f4809779c20 0x7f480977f445 0x7c2419 0x5e9c1a
>> 0x7f480a270971 0x7f480982cf3d
> Received signal 11
> Backtrace: 0x54e5b5 0x7f4809779c20 0x500942 0x50b854 0x50c544 0x50d290
>> 0x739df8 0x76f9f5 0x7b6467 0x7c89c1 0x5e9747 0x7f480a270971 0x7f480982cf3d
> Logstream::get called in uninitialized state
> Logstream::get called in uninitialized state
> Tue Aug 7 16:14:40 [conn723630] sharded connection to
>> shard3/172.16.40.202:10020,172.16.40.32:10020 not being returned to the pool
> Tue Aug 7 16:14:40 [conn723693] ERROR: Uncaught std::exception: call to
>> empty boost::function, terminating
> Logstream::get called in uninitialized state
> Tue Aug 7 16:14:40 [conn723693] dbexit: rc:100
> Logstream::get called in uninitialized state
> Tue Aug 7 16:14:40 [conn723630] ERROR: Uncaught std::exception: call to
>> empty boost::function, terminating
> Logstream::get called in uninitialized state
> Tue Aug 7 16:14:40 [conn723630] dbexit: rc:100
> /opt/mongodb-linux-x86_64-2.0.6/bin/mongos(_ZN5mongo12sayDbContextEPKc+0x96 )
>> [0x52b5f6]
> /opt/mongodb-linux-x86_64-2.0.6/bin/mongos(_ZN5mongo8assertedEPKcS1_j+0xfb)
>> [0x53613b]
> /opt/mongodb-linux-x86_64-2.0.6/bin/mongos(_ZN5mongo16DBConnectionPool4_get ERKSsd+0x118)
>> [0x5628d8]
...