Out of disk space error in aws documentDB service.

0
MongoServerError: Not enough disk space
    at MessageStream.messageHandler (/home/ec2-user/server/node_modules/mongodb/lib/cmap/connection.js:467:30)
    at MessageStream.emit (events.js:400:28)
    at processIncomingData (/home/ec2-user/server/node_modules/mongodb/lib/cmap/message_stream.js:108:16)
    at MessageStream._write (/home/ec2-user/server/node_modules/mongodb/lib/cmap/message_stream.js:28:9)
    at writeOrBuffer (internal/streams/writable.js:358:12)
    at MessageStream.Writable.write (internal/streams/writable.js:303:10)
    at TLSSocket.ondata (internal/streams/readable.js:731:22)
    at TLSSocket.emit (events.js:400:28)
    at addChunk (internal/streams/readable.js:293:12)
    at readableAddChunk (internal/streams/readable.js:267:9) {
  ok: 0,
  operationTime: new Timestamp({ t: 1647938150, i: 1 }),
  code: 14031
}

I tried monitoring, but there was enough free storage.

We know that aws documentDB automatically increases free space when the capacity is insufficient.

It did not exceed 64TB and only used about 1GB of capacity.

I'm not sure how I should try to troubleshoot in these cases.

  1. I am getting Not enough disk space error in aws documentDB.
  2. I want to know if it is possible for this to happen and, if so, how to fix it.
  • Can you check the FreeLocalStorage metric? It's probably related to the local storage attached to the DocumentDB instance. Are change streams enabled?

已提问 2 年前1209 查看次数
1 回答
0

Hi. You should check the FreeLocalStorage metric, it reports the amount of storage available to each instance for temporary tables and logs. The amount of local storage depends on the instance class. You can increase the amount of free storage space for an instance by choosing a larger instance class for your instance.

Also, change streams can consume local storage, if you have change streams enabled try reducing the retention duration.

AWS
Mihai A
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则