Монго дБ падает - PullRequest
       52

Монго дБ падает

0 голосов
/ 27 ноября 2018

Я загружаю файл размером 9-11 МБ и сохраняю его в файле mongo db в файле fs.chunks через контрольный пример API.в первых 5-7 попытках он будет работать нормально после того, как mongo db отключится.

ошибка при выполнении этой команды 18-11-27T10: 57: 08.278 + 0000 I COMMAND [conn46] команда abc_itt.Команда fs.chunks: insert {insert: "fs.chunks", упорядочено: true, lsid: {id: UUID ("04d57a84-386e-4331-8ede-7f0474a3bdb5")}, $ db: "abc_itt"}, вставлено: 1keysInserted: 2 numYields: 0 reslen: 44 блокировки: {Global: {acquCount: {r: 1, w: 1}}, База данных: {acquCount: {w: 1}}, Коллекция: {acquCount: {w: 1}}} протокол: op_query 427ms

в консоли я получаю "{" message ":" getClientDb: Error - "," name ":" MongoNetworkError "," stack ":" MongoNetworkError: не удалось переподключиться после 30 попытокс интервалом 1000 мс \ n при подключении.(/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 в Socket.(/opt/mount1/cartos/main/node_modules/mongodb-core/lib/connection/connection.js:245:50)\n at 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 (внутренняя / process / next_tick.js: 80: 11) \ n at process._tickDomainCallback (internal / process / next_tick.js: 128: 9) "," errorLabels ": [" TransientTransactionError "]," __ error_callsites ": [{}, {}, {}, {}, {}, {}, {}, {}, {}, {}], "level": "error", "timestamp": "2018-11-27T09: 15: 00.566Z"} "

затем "{" message ":" getClientDb: Error - "," name ":" MongoError "," stack ":" MongoError: топология была уничтожена \ n при следующей функции (/ 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 at fetchDocs (/opt/mount1/cartos/main/node_modules/mongodb/lib/operations/cursor_ops.js:211: 12) \ n на тоарray (/opt/mount1/cartos/main/node_modules/mongodb/lib/operations/cursor_ops.js:241:3)\n at executeOperation (/opt/mount1/cartos/main/node_modules/mongodb/lib/utils.js: 420: 24) \ n в Cursor.toArray (/opt/mount1/cartos/main/node_modules/mongodb/lib/cursor.js:818:10)\n в MongoNativeClientManager.getConnection (/ opt / mount1 / cartos / main/dbLayer/connectionManager/mongoNativeClientManager.js:22:88)\n в BucketApiStorageService.save (/opt/mount1/cartos/main/server/documentStorage/bucketApiStorageService.js:19:29)\nAg) для объекта./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 atObject.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 выключается, необходимо снова перезапустить то же самое происходит

У меня 1-уровневая архитектура на сервере с 8 ГБ оперативной памяти 4 процессора

введите описание изображения здесь

...