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년 전1208회 조회
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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠