Re: multi-master pgbench? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: multi-master pgbench?
Date
Msg-id 29687.1345557467@sss.pgh.pa.us
Whole thread Raw
In response to multi-master pgbench?  (Tatsuo Ishii <ishii@postgresql.org>)
Responses Re: multi-master pgbench?
List pgsql-hackers
Tatsuo Ishii <ishii@postgresql.org> writes:
> I am thinking about to implement "multi-master" option for pgbench.
> Supose we have multiple PostgreSQL running on host1 and host2.
> Something like "pgbench -c 10 -h host1,host2..." will create 5
> connections to host1 and host2 and send queries to host1 and host2.
> The point of this functionality is to test some cluster software which
> have a capability to create multi-master configuration.

Why wouldn't you just fire up several copies of pgbench, one per host?

The main reason I'm dubious about this is that it's demonstrable that
pgbench itself is the bottleneck in many test scenarios.  That problem
gets worse the more backends you try to have it control.  You can of
course "solve" this with multiple threads in pgbench, but as soon as you
do that there's no functional benefit over just running several copies.
        regards, tom lane



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: Large number of open(2) calls with bulk INSERT into empty table
Next
From: "Kevin Grittner"
Date:
Subject: Re: temporal support patch