Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mYxWr-0003Ed-Tw for pgsql-admin@arkaria.postgresql.org; Fri, 08 Oct 2021 21:35:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mYxWq-00016E-7z for pgsql-admin@arkaria.postgresql.org; Fri, 08 Oct 2021 21:35:44 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mYxWp-000166-V7 for pgsql-admin@lists.postgresql.org; Fri, 08 Oct 2021 21:35:43 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mYxWi-000350-Th for pgsql-admin@postgresql.org; Fri, 08 Oct 2021 21:35:43 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1mYxWh-0004Lh-Fq; Fri, 08 Oct 2021 17:35:35 -0400 Date: Fri, 8 Oct 2021 17:35:35 -0400 From: Bruce Momjian To: Wells Oliver Cc: pgsql-admin Subject: Re: 13.4 on RDS, SSL SYSCALL EOF on restore Message-ID: <20211008213535.GD31533@momjian.us> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Oct 8, 2021 at 02:27:55PM -0700, Wells Oliver wrote: > Hi: I am restoring a ~100GB backup using 16 jobs from an EC2 instance to an RDS > instance (db.m6g.xlarge, which is 16GB RAM and 4 CPU) and it's dying midway > with the dreaded "SSL SYSCALL error: EOF detected" error. > > I did create a parameter group to hopefully speed the restoration process, it > includes: > > - wal_buffers 8192 (64MB) > - checkpoint_timeout 3600 (1h) > - min_wal_size 192 (192MB) > - max_wal_size 102400 (100GB) > - shared_buffers 524288 (4GB) > - synchronous_commit 0 (off) > - autovacuum 0 (off) > - maintenance_work_mem 2097152 (2GB) > - work_mem 32768 (32MB) > > I sourced these from a few different folks as well as some trial and error, but > now it's blowing up on me.  > > If I revert the RDS instance back to default PG parameters, it restores, but it > takes 3x the time. Wow, that is weird. I see that error string happening when PG can't extend the receipt buffer on the client side: appendPQExpBufferStr(&conn->errorMessage, libpq_gettext("SSL SYSCALL error: EOF detected\n")); Can you check the server logs to see if there is any error there? If I had to take a guess, I would reduce maintenance_work_mem to 1GB and retest. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com If only the physical world exists, free will is an illusion.