pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jakub Olczyk <jwo@disroot.org>
To: pgsql-admin@lists.postgresql.org
Subject: Re: benchmarking proposed config
Date: Fri, 21 Feb 2020 10:55:14 +0100
Message-ID: <20200221105514.084cb730@el-t490> (raw)
In-Reply-To: <1E6E0384-D13F-419E-ABC9-7BC52B001A68@killerbytes.com>
References: <1E6E0384-D13F-419E-ABC9-7BC52B001A68@killerbytes.com>

Hi Scott,

On Thu, 20 Feb 2020 09:12:09 -0700
Scott Ribe <scott_ribe@killerbytes.com> wrote:

> Does anyone have suggestions for a utility that would easily let us
> mirror all queries to a "shadow" PG cluster, so that we can compare
> performance of our current production config against a new proposed
> config with our actual production traffic?

I am not sure if this would be an acceptable solution for you but there
is an open source utility called pgreplay[1]. Here is the description:

> pgreplay reads a PostgreSQL log file (*not* a WAL file), extracts the
> SQL statements and executes them in the same order and relative time
> against a PostgreSQL database cluster. 

This of course means that you'd need to have a fairly "chatty" log
configuration, but maybe it could work for your needs?


Cheers,
jwo


[1]: https://github.com/laurenz/pgreplay





view thread (4+ messages)  latest in thread

Message-ID: <20200221105514.084cb730@el-t490>
Permalink:  ../20200221105514.084cb730@el-t490/
Also on:    postgresql.org/message-id/20200221105514.084cb730@el-t490

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: jwo@disroot.org, pgsql-admin@lists.postgresql.org
  Subject: Re: benchmarking proposed config
  In-Reply-To: <20200221105514.084cb730@el-t490>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox