Re: pg_basebackup blocking all queries with horrible performance
От
Lonni J Friedman
Тема
Re: pg_basebackup blocking all queries with horrible performance
Дата
Msg-id
CAP=oouF_gTLJvxQ8tK8czZ_wRF3Xt63j40LJnBfbHE26qfOYgg@mail.gmail.com
Ответ на
Re: pg_basebackup blocking all queries with horrible performance (Jerry Sievers)
Список
Дерево обсуждения
pg_basebackup blocking all queries with horrible performance Lonni J Friedman <netllama@gmail.com>
Re: pg_basebackup blocking all queries with horrible performance Lonni J Friedman <netllama@gmail.com>
Re: pg_basebackup blocking all queries with horrible performance Magnus Hagander <magnus@hagander.net>
Re: pg_basebackup blocking all queries with horrible performance Lonni J Friedman <netllama@gmail.com>
Re: pg_basebackup blocking all queries with horrible performance Jerry Sievers <gsievers19@comcast.net>
Re: pg_basebackup blocking all queries with horrible performance Lonni J Friedman <netllama@gmail.com>
Re: pg_basebackup blocking all queries with horrible performance Craig Ringer <ringerc@ringerc.id.au>
Re: pg_basebackup blocking all queries with horrible performance Lonni J Friedman <netllama@gmail.com>
Re: pg_basebackup blocking all queries with horrible performance Fujii Masao <masao.fujii@gmail.com>
Re: pg_basebackup blocking all queries with horrible performance Tom Lane <tgl@sss.pgh.pa.us>
Re: pg_basebackup blocking all queries with horrible performance Magnus Hagander <magnus@hagander.net>
Re: pg_basebackup blocking all queries with horrible performance Fujii Masao <masao.fujii@gmail.com>
Re: pg_basebackup blocking all queries with horrible performance Magnus Hagander <magnus@hagander.net>
Re: pg_basebackup blocking all queries with horrible performance Fujii Masao <masao.fujii@gmail.com>
Re: pg_basebackup blocking all queries with horrible performance Fujii Masao <masao.fujii@gmail.com>
Re: pg_basebackup blocking all queries with horrible performance Magnus Hagander <magnus@hagander.net>
Re: pg_basebackup blocking all queries with horrible performance Fujii Masao <masao.fujii@gmail.com>
Re: pg_basebackup blocking all queries with horrible performance Magnus Hagander <magnus@hagander.net>
Re: pg_basebackup blocking all queries with horrible performance Lonni J Friedman <netllama@gmail.com>
Re: pg_basebackup blocking all queries with horrible performance Fujii Masao <masao.fujii@gmail.com>
Re: pg_basebackup blocking all queries with horrible performance Lonni J Friedman <netllama@gmail.com>
Re: pg_basebackup blocking all queries with horrible performance Magnus Hagander <magnus@hagander.net>
Re: pg_basebackup blocking all queries with horrible performance Simon Riggs <simon@2ndQuadrant.com>
Re: pg_basebackup blocking all queries with horrible performance Lonni J Friedman <netllama@gmail.com>
Re: pg_basebackup blocking all queries with horrible performance Scott Marlowe <scott.marlowe@gmail.com>
could not rename temporary statistics file "pg_stat_tmp/pgstat.tmp"
to "pg_stat_tmp/pgstat.stat": No such file or directory Fabricio <fabrixio1@hotmail.com>
Re: could not rename temporary statistics file
"pg_stat_tmp/pgstat.tmp" to "pg_stat_tmp/pgstat.stat": No such file or directory Magnus Hagander <magnus@hagander.net>
On Thu, Jun 7, 2012 at 5:07 PM, Jerry Sievers wrote: > Lonni J Friedman writes: > >> On Thu, Jun 7, 2012 at 12:40 PM, Magnus Hagander wrote: >> >>> On Thu, Jun 7, 2012 at 8:04 PM, Lonni J Friedman wrote: >>>> On Thu, Jun 7, 2012 at 10:41 AM, Lonni J Friedman wrote: >>>>> Greetings, >>>>> I have a 4 server postgresql-9.1.3 cluster (one master doing streaming >>>>> replication to 3 hot standby servers). All of them are running >>>>> Fedora-16-x86_64. >>>>> >>>>> http://wiki.postgresql.org/wiki/Lock_Monitoring >>>> >>>> err, i included that URL but neglected to explain why. On a different >>>> list someone suggested that I verify that there were no locks that >>>> were blocking things, and I did so, and found no locks. >>>> >>>> So I'm still at a loss why pg_basebackup is killing perf, and would >>>> appreciate pointers on how to debug it or at least reduce its impact >>>> on performance if that is possible. >>>> >>> >>> My guess would be that you are overloading your I/O system. You should >>> look at values from iostat and vmstat from when the system works fine >>> and when you run pg_basebackup, that should give you a hint in the >>> right direction. >> >> ok, thanks. i'll take a look at that. If this turns out to be the >> issue, is there some way to get pg_basebackup to run more slowly, so >> that it has less impact? Or could I do this with ionice on the >> pg_basebackup process? > > You might try stopping pg_basebackup in place with SIGSTOP and check > if problem goes away. SIGCONT and you should start having > sluggishness again. > > If verified, then any sort of throttling mechanism should work. I'm certain that the problem is triggered only when pg_basebackup is running. Its very predictable, and goes away as soon as pg_basebackup finishes running. What do you mean by a throttling mechanism?
В списке pgsql-admin по дате отправления
От: Jerry Sievers
Дата: