Re: Replication causing publisher node to use excessive cpu over time

From: Martin Moore <martin(dot)moore(at)avbrief(dot)com>
To: <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: Replication causing publisher node to use excessive cpu over time
Date: 2017-12-04 13:00:16
Message-ID: F74C375B-5FC4-4243-9272-E60B245C9784@avbrief.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

OK, have installed perf and will report back when the problem gets noticeable.

Martin.

On 04/12/2017, 12:40, "Michael Paquier" <michael(dot)paquier(at)gmail(dot)com> wrote:

On Mon, Dec 4, 2017 at 9:03 PM, Martin Moore <martin(dot)moore(at)avbrief(dot)com> wrote:
> After a few days, it’s noticeable that the Postgres on the publisher node is constantly using a lot of cpu (26% today) and having a big impact on the system performance even when doing very little. Logging on to the subscriber and removing the subscription sees this value drop to an expect small value.

When debugging such issues, it is critical to know where the resources
are spent, and you are giving no information that can help in
understanding where CPU cycles are spent. You can do such measurements
by using perf for example.
--
Michael

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Nicola Contu 2017-12-04 13:19:32 Centos 6.9 and centos 7
Previous Message Michael Paquier 2017-12-04 12:40:54 Re: Replication causing publisher node to use excessive cpu over time