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 1sT4YF-00Cqkd-Ho for pgsql-admin@arkaria.postgresql.org; Sun, 14 Jul 2024 19:06:27 +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 1sT4YC-006dXQ-0D for pgsql-admin@arkaria.postgresql.org; Sun, 14 Jul 2024 19:06:24 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sT4YB-006dXH-Hk for pgsql-admin@lists.postgresql.org; Sun, 14 Jul 2024 19:06:23 +0000 Received: from mailout.easymail.ca ([64.68.200.34]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sT4Y4-0027cB-Rv for pgsql-admin@lists.postgresql.org; Sun, 14 Jul 2024 19:06:22 +0000 Received: from localhost (localhost [127.0.0.1]) by mailout.easymail.ca (Postfix) with ESMTP id 89F25E1422; Sun, 14 Jul 2024 19:06:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=elevated-dev.com; s=easymail; t=1720983973; bh=mGYAfqrgjPVcTQm3ooBad7fgBT8bc4fwBzOUU7xpZ+8=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=A7YFKYNKMkL2JNT0li0v2wI+VFmykp5qXP7v8GbO6WiCxmo9irQ5S49Bau4GOpn1E w3bZYJyyY6od1cF1eXwxOGeJ9oiKZoq4VqYIcKoSAcNcDPmnU6S+Mojea/YKN7WR8a 3cI75Td3yXeArIh5AFJcCPuIZsMC2FDVS6pIe3bK34gd90j3VKrYQwE6bV/XzdwS14 ZcQ7i7uRo6PUOVxCb+QC6pKWsZ3paxaCYzgZmG6leu0F/qXKfqcOViBY4ls88ajiNp OMEOQ4lgp6vvL/Rl/VRNdix5OMy1MOieAA8qR3KW8v9OkfLlVoLbk72PRax+dlsRxC +OsO24gY287KA== X-Virus-Scanned: Debian amavisd-new at emo08-pco.easydns.vpn Received: from mailout.easymail.ca ([127.0.0.1]) by localhost (emo08-pco.easydns.vpn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GAUfIsvq4AXc; Sun, 14 Jul 2024 19:06:13 +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 EB5B3E13C0; Sun, 14 Jul 2024 19:06:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=elevated-dev.com; s=easymail; t=1720983973; bh=mGYAfqrgjPVcTQm3ooBad7fgBT8bc4fwBzOUU7xpZ+8=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=A7YFKYNKMkL2JNT0li0v2wI+VFmykp5qXP7v8GbO6WiCxmo9irQ5S49Bau4GOpn1E w3bZYJyyY6od1cF1eXwxOGeJ9oiKZoq4VqYIcKoSAcNcDPmnU6S+Mojea/YKN7WR8a 3cI75Td3yXeArIh5AFJcCPuIZsMC2FDVS6pIe3bK34gd90j3VKrYQwE6bV/XzdwS14 ZcQ7i7uRo6PUOVxCb+QC6pKWsZ3paxaCYzgZmG6leu0F/qXKfqcOViBY4ls88ajiNp OMEOQ4lgp6vvL/Rl/VRNdix5OMy1MOieAA8qR3KW8v9OkfLlVoLbk72PRax+dlsRxC +OsO24gY287KA== Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3774.600.62\)) Subject: Re: help required for Datacenter Migration on Kubernetes Cluster From: Scott Ribe In-Reply-To: Date: Sun, 14 Jul 2024 13:06:02 -0600 Cc: pgsql-admin@lists.postgresql.org Content-Transfer-Encoding: quoted-printable Message-Id: References: To: BIPUL KHAN X-Mailer: Apple Mail (2.3774.600.62) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Jul 14, 2024, at 12:33=E2=80=AFPM, BIPUL KHAN = wrote: >=20 > Hello,=20 > We have developed and run a large-scale mobile financial system using = a microservice architecture, which includes 110 databases (big and = small). We use PostgreSQL as the primary database inside Kubernetes = via the CrunchyData operator. > Now I would like to share my problem. Our data storage has grown = significantly since 2020, and we are using Ceph (rook-Ceph). We now have = 21 TB of data. > Our current situation is critical as we urgently need to move our data = center. Our source and destination data centers have a 1 GB/s data = transfer rate. We attempted to add a new Ceph node with the same = cluster, which started data rebalancing, but it=E2=80=99s taking a = significant amount of time. This directly and severely impacts our = primary transactions, which involve reading and writing to the database. > What is the best option for moving data from one data center to a new = one? We would appreciate your expertise. Would you happento know how to = move it any other way? > It is mentioned that the two different data centers are different = Kubernetes clusters. > I would appreciate some ideas. Feel free to let me know if you need = any other adjustments! > Let me know if there are any further changes you'd like! Plan to migrate off Ceph as soon as possible. It is simply not suited = for this--yes, I am speaking from experience. The rebalancing will = hammer you when you can least afford it. WekaFS, Pure Storage, heck NFS. = Or node-local storage, XFS or ZFS. Really, just about anything else. (It = might help if you clarify whether "move our data center" really means = what I assumed, that you own hardware and are moving it, or whether = you're going to another cloud provider. You're probably going to have to migrate your databases one at a = time--even if you temporarily upgraded your bandwidth to 10Gbps you'd = have too long of a down time. So, one at a time, set up a standby = streaming replica, then when they're all populated and up-to-date, take = a very brief downtime (seconds) to switch over. This assumes that 1Gbps = can actually handle your stream of normal updates with enough room left = over to be transferring the base files. (Current versions of Crunchy = support the notion of cross-cluster replication.)=