Re: Streaming Replication Networking Best Practices?

From: Rui DeSousa <rui(dot)desousa(at)icloud(dot)com>
To: Don Seiler <don(at)seiler(dot)us>
Cc: Johannes Truschnigg <johannes(at)truschnigg(dot)info>, pgsql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: Re: Streaming Replication Networking Best Practices?
Date: 2018-05-14 21:02:47
Message-ID: 9DF82A39-C753-486C-B896-C5346D19BE58@icloud.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

> On May 14, 2018, at 4:22 PM, Don Seiler <don(at)seiler(dot)us> wrote:
>
> Ping shows a pretty solid latency of 49-50 ms.
>

Depending on your window size; that will determine the throughput (not to exceed the link speed).

TCP Window / latency = throughput; i.e. if the windows is 16kb with 50 ms latency the max throughput is 640kb/s or 5.12Mbps

16/.05 = 640kb/s

The window size will vary during the connection; it will start off small and then progress to your max setting. Now you need to determine how large you window can get and what is it actually doing; that will require observing the connection via tcpdump or similar tools. Dropped packets will prevent the window size from increasing and also cause retransmits.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Don Seiler 2018-05-14 21:26:39 Re: Streaming Replication Networking Best Practices?
Previous Message Peter Eisentraut 2018-05-14 20:33:36 Re: Streaming Replication Networking Best Practices?