pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fabio Ugo Venchiarutti <f.venchiarutti@ocado.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Network performance optimization
Date: Wed, 9 Sep 2020 11:05:22 +0000
Message-ID: <0a09ed9b-a7c1-e492-f1d2-5e42e9cdfb33@ocado.com> (raw)
In-Reply-To: <CALyUqLpWZR7y-QATrsT7vjTLhbyHgfMhMNxgRUu5eyQXnzg85Q@mail.gmail.com>
References: <CALyUqLpWZR7y-QATrsT7vjTLhbyHgfMhMNxgRUu5eyQXnzg85Q@mail.gmail.com>

On 09/09/2020 04:59, J . Mageshwaran wrote:
> Hi Team, I am performing some benchmark testing with application in aws 
> east 2 and dB in East 1. I am using pgbench for benchmark, the RTT 
> Latency between East 1 to east2 is some where between 12 to 16 ms on an 
> average. Is there any optimization that can be done to reduce the 
> latency and increase the throughout to the PostgreSQL layer?

Even if network datagrams moved at the speed of light and with no 
serialisation/forwarding delay (which they don't), you're still going to 
deal with several thousand KMs of distance; I'm positively surprised 
you're getting such short round-trip times as it stands.


If you have any control over the application code, IMO your best shot is 
to coalesce DB interactions into as few smarter DB queries as you can 
for each higher order operation (eg: RESTful API calls), as you'll be 
paying for that fixed RTT overhead for each command.




-- 
Regards

Fabio Ugo Venchiarutti
OSPCFC Network Engineering Dpt.
Ocado Technology

-- 


Notice: 
This email is confidential and may contain copyright material of 
members of the Ocado Group. Opinions and views expressed in this message 
may not necessarily reflect the opinions and views of the members of the 
Ocado Group.

If you are not the intended recipient, please notify us 
immediately and delete all copies of this message. Please note that it is 
your responsibility to scan this message for viruses.

References to the 
"Ocado Group" are to Ocado Group plc (registered in England and Wales with 
number 7098618) and its subsidiary undertakings (as that expression is 
defined in the Companies Act 2006) from time to time. The registered office 
of Ocado Group plc is Buildings One & Two, Trident Place, Mosquito Way, 
Hatfield, Hertfordshire, AL10 9UL.





view thread (4+ messages)  latest in thread

Message-ID: <0a09ed9b-a7c1-e492-f1d2-5e42e9cdfb33@ocado.com>
Permalink:  ../0a09ed9b-a7c1-e492-f1d2-5e42e9cdfb33@ocado.com/
Also on:    postgresql.org/message-id/0a09ed9b-a7c1-e492-f1d2-5e42e9cdfb33@ocado.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: f.venchiarutti@ocado.com
  Subject: Re: Network performance optimization
  In-Reply-To: <0a09ed9b-a7c1-e492-f1d2-5e42e9cdfb33@ocado.com>
  References: <CALyUqLpWZR7y-QATrsT7vjTLhbyHgfMhMNxgRUu5eyQXnzg85Q@mail.gmail.com> <0a09ed9b-a7c1-e492-f1d2-5e42e9cdfb33@ocado.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox