Pgpool Feat and Devel
Pgpool Feat and Devel
Development
Tatsuo Ishii
pgpool Global Development Group
SRA OSS, Inc. Japan
Agenda
● Developers
● History
● Existing pgpool project
● Ongoing pgpool-II project
● Demonstration
Who are we?
● pgpool Global Development Group
– Tatsuo Ishii(SRA OSS, Inc. Japan)
– Devrim Gunduz(Command Prompt, Inc.)
– Yoshiyuki Asaba(SRA OSS, Inc. Japan)
– Taiki Yamaguchi(SRA OSS, Inc. Japan)
– pgpoo-II development team
● In addition to Tatsuo, Yoshiyuki and Taiki:
– Tomoaki Sato, Yoshiharu Mori, Kaori Inaba (all from SRA
OSS, Inc. Japan)
Taiki Yoshiharu
PCP Query rewriting
Query Cache Parallel execution
pgpool engin
developer
Yoshiyuki
Tatsuo Project leader
Enhance Our Boss pgpool
pgpool-I “Green Turtle” developer
pgpool
developer
pgpool
parent process
pre-fork
pgpool PostgreSQL
child process backend process
pgpool.conf
PostgreSQL
user1/db1
user1/db1
PostgreSQL
user1/db1
user1/db1
PostgreSQL
user1/db1
user1/db1 PostgreSQL
PostgreSQL
user3/db3 user2/db2
user3/db3
PostgreSQL
user3/db3 user2/db2
PostgreSQL
query
pgpool
query
PostgreSQL
lock
wait
lock
PostgreSQL
pgpool Query
PostgreSQL
PostgreSQL
pgpool
PostgreSQL
Client
SQL Query
Parser Cache
Communication
pgpoolAdmin Query pgpool
Manager
Rewriting Catalog
pgpool-II System DB
PostgreSQL
DB node
2006/07/09 Tronto Copyright(c) 2006 pgpool DG 20
pgpool-I and pgpool-II mode
replication
parallel query
load balance
fail over
virtually compatible with pgpool
pgpoo-I pgpoo-II
mode mode
pgpool
PostgreSQL
pgpool
System DB
PostgreSQL
INSERT
pgpool-II
with parallel query
Parallel query
layer
pgpool-II pgpool-II
with replication with replication
Replication
and load
balance
layer
0.6
0.5 ● pgpool-II is 7 times
0.4
0.3 faster at the best
0.2
0.1
(32 concurrent
0
1 2 4 8 16 32
users)
concurrent users
1750
1500
1250
● pgpool-II is 9 times
1000
750
faster at the best
500
250
(16 concurrent
0
1 2 4 8 16 32
users)
concurrent users
600
500 ● pgpool-II is 18
400
300 times faster at the
200
100
best (32
0
1 2 4 8 16 32
concurrent users)
concurrent users
45
(900M rows)
40 ● SELECT a1.abalance
35
FROM accounts as a1
30
,accounts as a2
25
WHERE a1.aid = :aid1
TPS
20
and a2.aid = :aid2
15
10 ● pgpool-II is faster
5 only when at 8
0
1 2 4 8 concurrent users
concurrent users