Re: pgreplay log file replayer released

From: "Albe Laurenz" <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: "Dimitri Fontaine *EXTERN*" <dfontaine(at)hi-media(dot)com>, "Greg Stark" <gsstark(at)mit(dot)edu>
Cc: "pgsql-general" <pgsql-general(at)postgresql(dot)org>
Subject: Re: pgreplay log file replayer released
Date: 2010-03-23 08:19:03
Message-ID: D960CB61B694CF459DCFB4B0128514C20489C269@exadv11.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-announce pgsql-general

Dimitri Fontaine wrote:
> Greg Stark <gsstark(at)mit(dot)edu> writes:
>> Do you have a multi-threaded model that tracks which transactions each
>> query belonged to and runs them concurrently like they were in the
>> original setup? That's what I've been looking for.
>
> Tsung does that and has been doing it for… quite some time. It even
> comes with a recorder which is a PostgreSQL proxy: connect it to your
> server, connect your client to it, and let it record a session at a
> time.
>
> Then in the configuration you get to choose how many of each
> session you
> want to mix, etc.
>
> http://tsung.erlang-projects.org/

pgreplay is single-threaded, but uses asynchronous query processing,
so multiple connections can be handled simultaneously.

pgreplay will use as many connections as the original run did, and
query order and timing are retained.

This is the first time I hear of Tsung - it sounds like a good idea.

I guess it has some advantages over pgreplay; the biggest one that
I can see is that it will see things that are not logged, like
COPY data.

It seems that Tsung currently only supports "basic queries", but I
assume that this can be improved. One thing that Tsung, recording
queries as proxy, will never be able to handle are encrypted connections,
but I guess that's a minor problem.

On the usability side, Tsung will require that all clients are redirected
to the recording proxy, while pgreplay will only require that the logging
configuration settings on the server are changed. This can be an advantage
in large distributed production environments.

Yours,
Laurenz Albe

In response to

Responses

Browse pgsql-announce by date

  From Date Subject
Next Message Dimitri Fontaine 2010-03-23 11:08:48 Re: pgreplay log file replayer released
Previous Message Dimitri Fontaine 2010-03-22 19:48:51 Re: pgreplay log file replayer released

Browse pgsql-general by date

  From Date Subject
Next Message Sergio Ramazzina 2010-03-23 08:23:22 Before triggers and usage in partitioned tables
Previous Message Andreas Gaab 2010-03-23 08:13:49 Re: string functions and operators