Re: Identify root-cause for intermittent spikes

2022-10-16 Thread hubert depesz lubaczewski
On Fri, Oct 14, 2022 at 10:57:00PM +0530, Sengottaiyan T wrote: > Please suggest: Is there any open-source tool available for capturing such > information? pg_cron? depesz

Re: Identify root-cause for intermittent spikes

2022-10-15 Thread Julien Rouhaud
On Fri, Oct 14, 2022 at 10:57:00PM +0530, Sengottaiyan T wrote: > > Please suggest: Is there any open-source tool available for capturing such > information? Most of the open-source tools won't work as you won't be able to install them on RDS. As far as I know the "Performance Insights" provides

Re: Identify root-cause for intermittent spikes

2022-10-14 Thread Sengottaiyan T
Thanks, Depsez. Please suggest: Is there any open-source tool available for capturing such information? On Thu, Oct 13, 2022, 14:03 hubert depesz lubaczewski wrote: > On Wed, Oct 12, 2022 at 10:46:23PM +0530, Sengottaiyan T wrote: > > Thanks, Michael. > > > > Due to reactive nature of the inter

Re: Identify root-cause for intermittent spikes

2022-10-13 Thread hubert depesz lubaczewski
On Wed, Oct 12, 2022 at 10:46:23PM +0530, Sengottaiyan T wrote: > Thanks, Michael. > > Due to reactive nature of the intermittent alerts, Is there any table which > stores the historical information / periodic snapshots captured from the > pg_stat_activity view? No. Unless you will make one, and

Re: Identify root-cause for intermittent spikes

2022-10-12 Thread Sengottaiyan T
Thanks, Rick - I will give it a try. On Wed, Oct 12, 2022 at 6:12 AM Rick Otten wrote: > I like to use pgbadger to collect data on what is happening in RDS > instances. You have to turn up a bunch of logging in RDS: > > 1. Turn on connection logging, duration logging, lock_waits, and anything >

Re: Identify root-cause for intermittent spikes

2022-10-12 Thread Sengottaiyan T
Thanks, Michael. Due to reactive nature of the intermittent alerts, Is there any table which stores the historical information / periodic snapshots captured from the pg_stat_activity view? On Tue, Oct 11, 2022 at 5:18 PM MichaelDBA wrote: > Hello, > > Your problem is probably, too many active,

Re: Identify root-cause for intermittent spikes

2022-10-11 Thread SAMEER KUMAR
On Tue, 11 Oct 2022, 22:07 Sengottaiyan T, wrote: > Hi All, >> >> I'm looking for suggestions: >> >> Environment: AWS PostgreSQL RDS instance - Version 14.3 >> Operations support gets intermittent alerts from the monitoring tool >> through AWS cloud watch metrics on Disk Queue Depth, CPU burst-cr

Re: Identify root-cause for intermittent spikes

2022-10-11 Thread Rick Otten
I like to use pgbadger to collect data on what is happening in RDS instances. You have to turn up a bunch of logging in RDS: 1. Turn on connection logging, duration logging, lock_waits, and anything else that you are interested in studying. 2. Then grab all of your postgresql logs from AWS. I w

Re: Identify root-cause for intermittent spikes

2022-10-11 Thread MichaelDBA
Hello, Your problem is probably, too many active, concurrent connections.  Get it from here the db directly: select datname, usename, application_name, substring(query, 1, 80) query  from pg_stat_activity where state in ('active','idle in transaction'); Compare the number of rows returned wi

Identify root-cause for intermittent spikes

2022-10-11 Thread Sengottaiyan T
> > Hi All, > > I'm looking for suggestions: > > Environment: AWS PostgreSQL RDS instance - Version 14.3 > Operations support gets intermittent alerts from the monitoring tool > through AWS cloud watch metrics on Disk Queue Depth, CPU burst-credit & CPU > Utilization. > I would like to understand w