Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tVAIL-0062XS-Db for pgsql-admin@arkaria.postgresql.org; Tue, 07 Jan 2025 14:10:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tVAIJ-0045au-C9 for pgsql-admin@arkaria.postgresql.org; Tue, 07 Jan 2025 14:10:55 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tVAII-0045al-UF for pgsql-admin@lists.postgresql.org; Tue, 07 Jan 2025 14:10:54 +0000 Received: from mailout.easymail.ca ([64.68.200.34]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tVAID-000L80-04 for pgsql-admin@postgresql.org; Tue, 07 Jan 2025 14:10:53 +0000 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 0850961301; Tue, 7 Jan 2025 14:10:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=elevated-dev.com; s=easymail; t=1736259048; bh=1cNVpEs25mXpBHKyw2n4ccFpEddcngXwA43nYSYcm38=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=rv7sTkVO5Sc07T8ILYuU5ztFF15Immby2Z0VX5np/FelHCBH0+NahiiCKLZ4YzOHL 81O35gTmRmshWTkksE+PsC+TzBdaTTkD0vJ6bDhI3ocV9OsxyMIvei1BNNLCGVFFri LyrZrztp5nrjCWJO78VnNTdI9r5RWZw5MfeHeIwvcOOEMGCTVxTnTcmVqgaxDHusOs 7M7c6lR4FhU4wFEnNWbnO3EColaaGF+OTdFS9meyR5krQCfufzm2KHVh37JvQ+oJhA UT3V9MQApRzvdNI4Ec8mLck3sLcYKO2gkPdQAdymGzK1yezLNJGzgrN2g7PJs/B+Ba RIqaDOWEM7YRg== X-Virus-Scanned: Debian amavisd-new at emo07-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo07-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LUTCWU9zT8Ed; Tue, 7 Jan 2025 14:10:43 +0000 (UTC) Received: from smtpclient.apple (unknown [165.140.184.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailout.easymail.ca (Postfix) with ESMTPSA id 4B20C61316; Tue, 7 Jan 2025 14:10:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=elevated-dev.com; s=easymail; t=1736259043; bh=1cNVpEs25mXpBHKyw2n4ccFpEddcngXwA43nYSYcm38=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=m99h5Q3plBi9Tzd4758VAvMeDjHWjVUZE/5bsaOB9Jbyc6Raf1IO7yoni09+K6Y94 qD18Q2SRT2bnAgVfiS2MYRs2BWGu/6SFzlikT7HjRK5j+bC0dCZM6VGkJ77LbTmy2m +ClVWlKpIui3F6RH1C9hgEKrA+aQEiyn9CEaAcI3uuHG2XPPyYgAEVy56XSd+T9uwE XUEb/ZQ40V36qFvrFpoB/qhCrZLBvwgEsP3a7CQwDS51aSO9dMlL5zYwE6x7ILtjdy 32ZrsC7c51A6y3vxKYKJ9q77YU+8gpn3u0ry0Fxx18v5kJXlGkhcU5nw+3FyhkIOSt 29tjZ9OeKLc7A== Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.300.87.4.3\)) Subject: Re: Advice Needed: Simultaneous Upgrade of Two-Node PostgreSQL 11 Cluster From: Scott Ribe In-Reply-To: Date: Tue, 7 Jan 2025 07:10:41 -0700 Cc: pgsql-admin Content-Transfer-Encoding: quoted-printable Message-Id: <9082A0D6-0C8A-4172-ACB4-0B6ABCF91BF1@elevated-dev.com> References: <4f6b5b081397ba9de49725f87d9ad3e40bf30dbf.camel@cybertec.at> <5DA36CEB-A299-41C5-8C00-FC1631E6EE8E@elevated-dev.com> To: kasem adel X-Mailer: Apple Mail (2.3826.300.87.4.3) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Jan 7, 2025, at 6:50=E2=80=AFAM, kasem adel = wrote: >=20 > Kindly be informed that database size is 1.8 TB and we have an low = network bandwidth between two node 10 mbps and to transfer the data from = scratch that will take from 21 day to 30 day for this we need solution = in upgrade to prevent load data from scratch . So, best case, bzip before transfer might get you down to 3 days, maybe. = That's one alternative. Others: - Obviously, if you could get higher network bandwidth temporarily, that = would help tremendously. - Express ship DVD/NVMe/SSD with the backup. - I assume that if 10Mbps keeps up with changes, most of this data is = inactive, are there inactive tables/partitions? - Move inactive data into a separate PG cluster, use foreign data = wrappers to access it from active so that your users don't see the = split. - Upgrade cluster with inactive data locally. - Whatever the process is to move data from active to inactive, you'll = have to suspend it for the duration. - Whether it's a month or 3 days, transfer the base backup of = inactive over the slow link (keeping WAL, all the things you have to do = to make sure that a replica started against this backup will be in sync = and stream when brought up) - Proceed with upgrade of cluster with active data (presuming that it = is *much* smaller) Regardless, managing TB+ databases over a 10Mbps link is a challenge.=