performance degradation after launching postgres cluster using pgpool-II

Поиск
Список
Период
Сортировка
Искать

performance degradation after launching postgres cluster using pgpool-II

От:
Cora Ma <machengcheng001@hotmail.com>
Дата:
Hi,

I am a freshman to postgresql, also pgpool-II. I have some performance
issues once I bring in the pgpool-II to build the pg cluster. Here I post
some system info and the configurations of postgresql and pgpool, hopping
you can help me to solve this problem.

BTW, I am using the postgres 9.2.4 installed on the Amazon AWS with debian
OS(64bits), and the version of pgpool is 3.2.7. There are two nodes in the
cluster, working in master/slave mode and replicating data using the
streaming replication feature.

Mem info:
cora@apollo:~$ free
             total       used       free     shared    buffers     cached
Mem:      31446876    7625428   23821448          0       9468    6312080
-/+ buffers/cache:    1303880   30142996
Swap:            0          0          0

Linux info:
cora@apollo:~$ cat /proc/version
Linux version 2.6.32-5-xen-amd64 (Debian 2.6.32-48squeeze1)
(dannf@debian.org) (gcc version 4.3.5 (Debian 4.3.5-4) ) #1 SMP Mon Feb 25
02:51:39 UTC 2013

The settings of postgresql(only showing the non-default parameters)
listen_addresses = '*'
port = 9797                             
max_connections = 750
ssl_renegotiation_limit = 0
shared_buffers = 15GB  
temp_buffers = 32MB
work_mem = 64MB                         
maintenance_work_mem = 128MB            
effective_io_concurrency = 1000
wal_level = hot_standby
checkpoint_segments = 32 
archive_mode = on
archive_command = 'rsync -a %p apollo:/var/lib/postgresql/9.2/archive/%f

Re: performance degradation after launching postgres cluster using pgpool-II

От:
Tatsuo Ishii <ishii@postgresql.org>
Дата:
> Before starting the cluster, one bulk updates through java code would cost
> about 1 hour to finish, but then it would take twice amount of time.

pgpool-II is not very good at handling extended protocol (mostly used
in Java). If you need to execute large updates, you'd better to
connect to PostgreSQL directly. Note that there's no problem that some
sessions connect via pgpool-II, while others directly connect
PostgreSQL.

Best regards,
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese: http://www.sraoss.co.jp

Re: performance degradation after launching postgres cluster using pgpool-II

От:
Cora Ma <machengcheng001@hotmail.com>
Дата:
Feeling a little sorry about replying you later.

Then, I want to say so many thanks for this advice, cause we pointed our jobserver to the master directly and then the performance issues resolved. My client is so curious that why pgpool doesn't support so welcome platform like java. Hoping it can get improved in the following versions.

So, besides pgpool, do you have any other solutions for postgresql cluster?

Thanks a lot,
Cora


Date: Mon, 7 Apr 2014 06:47:13 -0700
From: [hidden email]
To: [hidden email]
Subject: Re: performance degradation after launching postgres cluster using pgpool-II

> Before starting the cluster, one bulk updates through java code would cost
> about 1 hour to finish, but then it would take twice amount of time.

pgpool-II is not very good at handling extended protocol (mostly used
in Java). If you need to execute large updates, you'd better to
connect to PostgreSQL directly. Note that there's no problem that some
sessions connect via pgpool-II, while others directly connect
PostgreSQL.

Best regards,
--
Tatsuo Ishii
SRA OSS, Inc. Japan
English: http://www.sraoss.co.jp/index_en.php
Japanese: http://www.sraoss.co.jp


--
Sent via pgsql-performance mailing list ([hidden email])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-performance



To unsubscribe from performance degradation after launching postgres cluster using pgpool-II, click here.
NAML


View this message in context: RE: performance degradation after launching postgres cluster using pgpool-II
Sent from the PostgreSQL - performance mailing list archive at Nabble.com.
FAQ