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 1qtSGp-00CSl3-AR for pgsql-admin@arkaria.postgresql.org; Thu, 19 Oct 2023 12:36:59 +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 1qtSGm-0012yW-02 for pgsql-admin@arkaria.postgresql.org; Thu, 19 Oct 2023 12:36:56 +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 1qtSGl-0012yK-Kd for pgsql-admin@lists.postgresql.org; Thu, 19 Oct 2023 12:36:56 +0000 Received: from mail-yw1-x1133.google.com ([2607:f8b0:4864:20::1133]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qtSGj-001G5k-4k for pgsql-admin@lists.postgresql.org; Thu, 19 Oct 2023 12:36:55 +0000 Received: by mail-yw1-x1133.google.com with SMTP id 00721157ae682-5a7cc03dee5so97059477b3.3 for ; Thu, 19 Oct 2023 05:36:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697719012; x=1698323812; darn=lists.postgresql.org; h=in-reply-to:from:references:to:content-language:subject:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=xLesyoocetEmFsZDzBYXA826BCmbeJonJS8csI78o4k=; b=FLCpGlr+/D/UoJjKmaoZAwy8SjAVVuRuRlSZCLHQ+OP8ToF7giurX2OClWHedx81oP ulkBXHwg3n7zCZLJmAvW7nSczIUdvgoSALsauV0ijicwsmaC/OFcfBpc3kkWcFjKi/d5 IG5r+KLjxY0AVZuVkTaANXjlyIfu4msgIwRPXhHY5vcgsINhAxFHeRXfFRXBfqwEZ9cq r1XRa1LLotXioYZNX/4+3lZVzxlznnOm+O2H92aWrazblrxsS5RK4wkvik5+ag71MvLj qSpX3vHAAdYDdY2mxkVysjlWun3emg7aNcCw2db6dF66NBWNc2sFothzksx0wvj3kgpD F4rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697719012; x=1698323812; h=in-reply-to:from:references:to:content-language:subject:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=xLesyoocetEmFsZDzBYXA826BCmbeJonJS8csI78o4k=; b=OJyFbrXjxuzJJKRAXXS+S1SUbebYio7SAI4p9C5uZ87gxUdBkHSaloIWz7p8Uug/6I LQsaXqhHino67KUHOgy5ICSrtV8oBDFX4kIDGAHBHF2c5pTPcfnE8DYAQXYkBCvSlOyx LNqjZZMGNFryxQtc6PELJVzPcYu8zaFLMMh/hD+C+RqS85VPUcZ/MdbC/GP4X7T+EBBZ sSjUQvqu0OZyuy+R7aLLRpPGZ0fkJ+JLAzzZHucNx8pLBcGSkgtNjUzTjeTSJOZJrVnA Nhc3ocq7blmb5Yb5pImnkRqnHdUhGiMkx4vgasGcCpINtihdugz/Ve+niTaUIJLBQYlR /gVg== X-Gm-Message-State: AOJu0YzDV6WG62b3eYYaLXUid9E9MKbTlxqMt6hKklB8PCk0zULPNaMa tALkcsw4sLqo3VLAtwEwxOPFlVMLMas= X-Google-Smtp-Source: AGHT+IEFx6KT+OkO1MbR/dTbl9nrRKXyyR9+F2qa82ZYeIXk2qeclCTNOetCe5HK5I1g7TsQrFsATg== X-Received: by 2002:a0d:db07:0:b0:5a7:b516:6eab with SMTP id d7-20020a0ddb07000000b005a7b5166eabmr2109639ywe.15.1697719011959; Thu, 19 Oct 2023 05:36:51 -0700 (PDT) Received: from ?IPV6:2600:1700:bd2c:b810:d509:606b:cffe:5a41? ([2600:1700:bd2c:b810:d509:606b:cffe:5a41]) by smtp.googlemail.com with ESMTPSA id m81-20020a0dca54000000b005a7bb193b37sm2392043ywd.27.2023.10.19.05.36.51 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 19 Oct 2023 05:36:51 -0700 (PDT) Content-Type: multipart/alternative; boundary="------------vII0W4kb88gHVK9zIsohg0ck" Message-ID: <0253c15b-a75e-4bc6-9049-8224d0ceb9e2@gmail.com> Date: Thu, 19 Oct 2023 07:36:50 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Need assistance for replication sync issue Content-Language: en-US To: pgsql-admin@lists.postgresql.org References: From: Ron In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------vII0W4kb88gHVK9zIsohg0ck Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 10/19/23 05:08, Veerendra Pulapa wrote: > Hello, > > I need some help with a database issue we’re facing. We have a situation > where our primary data center and our disaster recovery site are far > apart, and this long distance is causing delays in keeping our data > synchronized. It’s become a problem as we want our data to be as > up-to-date as possible. > > Do you have any suggestions for dealing with this kind of situation? We’ve > tried a few things, but we’re still struggling with the replication delays > caused by the high latency between the sites. > > Note: Bandwidth is very low and latency is very high. > > I’d appreciate any advice you can provide. /Never/ use /synchronous/ replication over a WAN.  Not only because "physics", as Laurenz mentions, but also because WAN links can be /slow/, and break more often than LAN links. Thus, use "async" replication instead. -- Born in Arizona, moved to Babylonia. --------------vII0W4kb88gHVK9zIsohg0ck Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit On 10/19/23 05:08, Veerendra Pulapa wrote:
Hello,

I need some help with a database issue we’re facing. We have a situation where our primary data center and our disaster recovery site are far apart, and this long distance is causing delays in keeping our data synchronized. It’s become a problem as we want our data to be as up-to-date as possible.

Do you have any suggestions for dealing with this kind of situation? We’ve tried a few things, but we’re still struggling with the replication delays caused by the high latency between the sites.

Note: Bandwidth is very low and latency is very high.

I’d appreciate any advice you can provide.

Never use synchronous replication over a WAN.  Not only because "physics", as Laurenz mentions, but also because WAN links can be slow, and break more often than LAN links.

Thus, use "async" replication instead.

--
Born in Arizona, moved to Babylonia.
--------------vII0W4kb88gHVK9zIsohg0ck--