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?

asked 8 months ago195 views
1 Answer
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.

Mihai A
answered 8 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions