pglogical
pglogical copied to clipboard
spurious walsender activity
- say we have 2 separate databases:
-
main_data
- configured for replication, all tables are part ofdefault
replication set -
unit_test
- not configured for replication at all
- we observe the following spurious
walsender
activity:
- when a test client produces heavy
insert
activity intounit_test
, say at 50% cpu load - then all
walsender
processes representingmain_data
nodes show 5% cpu load each - as expected, no data are transmitted, and no tables are updated on the
main_data
peer nodes
- we realize that some process somewhere need to read
wal
and filter out proper events, but 5% cpu for eachwalsender
processes, wheninsert
happens into unrelated / non-replicated database seems like some omission in the replication design
Hi Andrei,
Do you have a proposed patch that fixes the problem you have detailed. Sounds like, perhaps, we just need a high level if test somewhere to say "don't bother checking all of the details in this database if it is not part of a replication set".
--Luss
need a high level if test somewhere to say "don't bother checking
yes, that was exactly my thought as well