Re: database lagging

From: Pepe TD Vo <pepevo(at)yahoo(dot)com>
To: Avinash Kumar <avinash(dot)vallarapu(at)gmail(dot)com>
Cc: "pgsql-admin(at)lists(dot)postgresql(dot)org" <pgsql-admin(at)lists(dot)postgresql(dot)org>
Subject: Re: database lagging
Date: 2021-07-23 19:28:23
Message-ID: 2031576315.606187.1627068503597@mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

yes, I'm running replication database.  Parameters below are on both master and slave's postgresql.conf
wal_level = replicasynchronous_commit = onsynchronous_standby_names ='*'
server storage is fine.  Plenty of spaces on pg_wal (local), only 5% used from 80G.  Look like only all write have problems and read is ok.

Bach-Nga

No one in this world is pure and perfect.  If you avoid people for their mistakes you will be alone. So judge less, love, and forgive more.To call him a dog hardly seems to do him justice though in as much as he had four legs, a tail, and barked, I admit he was, to all outward appearances. But to those who knew him well, he was a perfect gentleman (Hermione Gingold)
**Live simply **Love generously **Care deeply **Speak kindly.*** Genuinely rich *** Faithful talent *** Sharing success

On Friday, July 23, 2021, 03:11:58 PM EDT, Avinash Kumar <avinash(dot)vallarapu(at)gmail(dot)com> wrote:

Hi, 
On Fri, Jul 23, 2021 at 2:52 PM Pepe TD Vo <pepevo(at)yahoo(dot)com> wrote:

I am doing CIS Benchmart on Postgreql 12.  After alter parameters and when I tried to create a new role.  It's lagging and didn't prompt out the result, until I hit the ctl C key.  Even alter role.  All I needed to hit ctl C key if not, it hung there for ever.  Is there a way to fix it?
postgres=# create role appuser;^CCancel request sentCREATE ROLE
I would only expect such a behaviour when there is Synchronous Replication enabled but the Standby is not reachable. 
Check the parameters : synchronous_mode combined with synchronous_standby_names. 

postgres=# ALTER ROLE appuser NOSUPERUSER;^CCancel request sentALTER ROLE
 postgres=# ALTER ROLE appuser NOREPLICATION;^CCancel request sentALTER ROLE
postgres=# ALTER ROLE appuser NOCREATEROLE;^CCancel request sentALTER ROLE
postgres=# ALTER ROLE appuser NOHERIT;^CCancel request sentALTER ROLE

--
Regards,
Avinash VallarapuCEO,MigOps Inc.Email: avi(at)migops(dot)com

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Vijaykumar Jain 2021-07-23 19:43:55 Re: database lagging
Previous Message Stephen Frost 2021-07-23 19:23:12 Re: What's the dfifference between pg_start_backup+copy+pg_stop_backup+WAL vs. pg_start_backup+pg_stop_backup+copy+WAL?