Reducing bandwidth usage of database replication - Mailing list pgsql-general

From Sascha Zenglein
Subject Reducing bandwidth usage of database replication
Date
Msg-id DU2P250MB03031FEA6F1EA85D76B07832B4399@DU2P250MB0303.EURP250.PROD.OUTLOOK.COM
Whole thread Raw
Responses Re: Reducing bandwidth usage of database replication  (Ron <ronljohnsonjr@gmail.com>)
Re: Reducing bandwidth usage of database replication  (Ben Chobot <bench@silentmedia.com>)
List pgsql-general
Hi all,

I want to use the postgres-native logical replication to have multiple clients receive and send data to a central database.
Real-time is far less important than network usage, and with my current test setup it appears both instances communicate frequently if a subscription is active, even if nothing is happening.

Is there a good way to reduce data usage, for example by limiting the amount of keep-alive messages? One database will likely be idle most of the time.

I estimated the current solution to idle at around 1.4MiB per day. Ideally it would use less than 100KiB a day.

I'm also open for other solutions if anything comes to mind!

Thanks for the help!

Sascha Zenglein

Produktentwicklung

 
 

Gessler GmbH
Gutenbergring 14
63110 Rodgau
Deutschland
Tel.:  +49 6106 8709 693
Fax:  +49 6106 8709 50
 
E-Mail: zenglein@gessler.de
Web: www.gessler.de

 
Geschaeftsfuehrer: Helmut Gessler, Dipl.-Ing. Marcus Gessler
Gerichtsstand: Offenbach/Main, Amtsgericht Offenbach HRB 20857
USt.-IdNr.: DE 113 551 141
Sparkasse Dieburg, IBAN DE94 5085 2651 0057 0025 03, SWIFT HELADEF1DIE


Diese E-Mail enthaelt vertrauliche und/oder rechtlich geschuetzte Informationen.
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtuemlich erhalten haben,
informieren Sie bitte sofort den Absender und vernichten Sie diese Mail.
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail
und/oder der Inhalte dieser Mail ist nicht gestattet.

This e-mail may contain confidential and/or privileged information.
If you are not the intended recipient (or have received this e-mail in error)
please notify the sender immediately and destroy this e-mail.
Any unauthorised copying, disclosure or distribution of the material of this e-mail is strictly forbidden.
Attachment

pgsql-general by date:

Previous
From: M Tarkeshwar Rao
Date:
Subject: Migrating postgres client(libpq) library from 12.10 to 14(Need some information)
Next
From: Ron
Date:
Subject: Re: Reducing bandwidth usage of database replication