mongo db崩溃

时间:2018-11-27 14:21:10

标签: mongodb crash shutdown

我正在上传9-11 MB的文件,并通过api测试用例存储在fs.chunks中的mongo db中。在前5到7次尝试中,该mongo db关闭后仍可以正常工作。

错误正在运行此命令 18-11-27T10:57:08.278 + 0000我命令[conn46]命令abc_itt.fs.chunks命令:insert {插入:“ fs.chunks”,命令:true,lsid:{id:UUID(“ 04d57a84-386e- 4331-8ede-7f0474a3bdb5“)},$ db:” abc_itt“} ninserted:1 keysInserted:2 numYields:0 reslen:44 locks:{全局:{AcquisitionCount:{r:1,w:1}},数据库:{ acquisitionCount:{w:1}},Collection:{acquisitionCount:{w:1}}}协议:op_query 427ms

在控制台中,我在连接上收到间隔为1000 ms \ n的30次尝试后,无法重新连接“ {” message“:” getClientDb:Error-“,” name“:” MongoNetworkError“,” stack“:” MongoNetworkError:无法重新连接。 (/opt/mount1/cartos/main/node_modules/mongodb-core/lib/connection/pool.js:363:13)\n在emitTwo(events.js:106:13)\ n在Connection.emit(事件。 js:191:7)\ n在套接字。 (/opt/mount1/cartos/main/node_modules/mongodb-core/lib/connection/connection.js:245:50)\n在Socket.g(events.js:292:16)\ n在emitOne(事件。 js:96:13)\ n在Socket.emit(events.js:188:7)\ n在emitErrorNT(net.js:1281:8)\ n在_combinedTickCallback(内部/进程/next_tick.js:80:11) )\ n在process._tickDomainCallback(internal / process / next_tick.js:128:9)“,” errorLabels“:[” TransientTransactionError“],” __ error_callsites“:[{},{},{},{},{ },{},{},{},{},{}],“级别”:“错误”,“时间戳”:“ 2018-11-27T09:15:00.566Z”}“

然后“ {”消息“:” getClientDb:错误-“,”名称“:” MongoError“,”堆栈“:” MongoError:nextFunction(/ opt / mount1 / cartos / main / node_modules /mongodb-core/lib/cursor.js:603:27)\n在Cursor.next(/opt/mount1/cartos/main/node_modules/mongodb-core/lib/cursor.js:824:3)\n在Cursor._next(/opt/mount1/cartos/main/node_modules/mongodb/lib/cursor.js:211:36)\n在fetchDocs(/ opt / mount1 / cartos / main / node_modules / mongodb / lib / operations / cursor_ops .js:211:12)\ n在toArray(/opt/mount1/cartos/main/node_modules/mongodb/lib/operations/cursor_ops.js:241:3)\n在executeOperation(/ opt / mount1 / cartos / main /node_modules/mongodb/lib/utils.js:420:24)\n在MongoNativeClientManager上的Cursor.toArray(/opt/mount1/cartos/main/node_modules/mongodb/lib/cursor.js:818:10)\n getConnection(/opt/mount1/cartos/main/dbLayer/connectionManager/mongoNativeClientManager.js:22:88)\n在BucketApiStorageService.save(/opt/mount1/cartos/main/server/documentStorage/bucketApiStorageService.js:19:29 )\ n在Objec t.savedActualImg(/opt/mount1/cartos/main/server/media/MediaHelper.js:58:38)\n位于/opt/mount1/cartos/main/node_modules/async/lib/async.js:580:25 \ n在/opt/mount1/cartos/main/node_modules/async/lib/async.js:122:13\n在_each(/opt/mount1/cartos/main/node_modules/async/lib/async.js:46 :13)\ n在Object.async.each(/opt/mount1/cartos/main/node_modules/async/lib/async.js:121:9)\n在_parallel(/ opt / mount1 / cartos / main / node_modules /async/lib/async.js:579:20)\n在Object.async.parallel(/opt/mount1/cartos/main/node_modules/async/lib/async.js:595:9)","__error_callsites“ :[{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{}] ,“级别”:“错误”,“时间戳”:“ 2018-11-27T09:15:18.207Z”}“

并且mongo db关闭,需要再次重新启动然后发生同样的事情

我在具有8 GB内存4 CPU的服务器上具有1层架构

enter image description here

0 个答案:

没有答案