SSL connection has been closed unexpectedly

0

I have tried twice to load a 300 GB Sql dump into Aurora Severless and both times it failed after two and half hours with the message:

SSL connection has been closed unexpectedly
no connection to the server
connection to server was lost

On the AWS Console, there is an event stating that

Error restarting database: Could not verify and start postgres

preceded by a few failed attempts to bring the capacity of the cluster up from 2 to 4 capacity units (I have the max set to 64 units).

I am loading the Sql dump from an EC2 instance (created about 1 year ago) on the same VPC using psql. The dump was created by a 9.6.20 server (from the Google SQL service). The GRANTs, REVOKEs, and ALTERs unique to Google are removed before loading. It is a simple database with 6 tables.

When I try smaller databases (say a 5Gbyte dump), the same pipeline completes fine.

Any suggestions how I could debug this?

Edited by: Saci on Mar 28, 2021 7:20 PM to add italics

Edited by: Saci on Mar 29, 2021 4:18 AM. Typo

Saci
질문됨 3년 전4190회 조회
2개 답변
0

I made some progress with this issue. It seems to be an Aurora Serverless problem. The data loads fine into an RDS Postgres database.

My suspicion is that the transition from one compute capacity to a larger one is causing the problem. Next I want to try loading the data in Aurora with fixe computing resources.

Saci
답변함 3년 전
0

Some more progress. I tried loading the large dump into Aurora and it does so with no problems. This encouraged me to modified my Aurora Severless instance to have a larger minimum compute capacity, so no transitions would be needed while the database is loading. This eliminated the error.

I suspect based on these experiments is that the SSL error above is a bug in Aurora Severless: when the engine is loading a large SQL dump, the COPY will fail if the engine switches compute capacity.

Saci
답변함 3년 전

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

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

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

관련 콘텐츠