Re: Occasional giant spikes in CPU load

От: Kevin Grittner
Тема: Re: Occasional giant spikes in CPU load
Дата: ,
Msg-id: 4C2495D70200002500032B16@gw.wicourts.gov
(см: обсуждение, исходный текст)
Ответ на: Re: Occasional giant spikes in CPU load  (Craig James)
Ответы: Re: Occasional giant spikes in CPU load  (Craig James)
Список: pgsql-performance

Скрыть дерево обсуждения

indexes in partitioned tables - again  (Samuel Gendler, )
 Re: indexes in partitioned tables - again  (Robert Haas, )
  Occasional giant spikes in CPU load  (Craig James, )
   Re: Occasional giant spikes in CPU load  ("Joshua D. Drake", )
    Re: Occasional giant spikes in CPU load  (Craig James, )
     Re: Occasional giant spikes in CPU load  ("Joshua D. Drake", )
      Re: Occasional giant spikes in CPU load  (Craig James, )
       Re: Occasional giant spikes in CPU load  (David Rees, )
       Re: Occasional giant spikes in CPU load  (Tom Lane, )
       Re: Occasional giant spikes in CPU load  (Alan Hodgson, )
     Re: Occasional giant spikes in CPU load  ("Joshua D. Drake", )
   Re: Occasional giant spikes in CPU load  (Greg Smith, )
   Re: Occasional giant spikes in CPU load  (Tom Lane, )
    Re: Occasional giant spikes in CPU load  (Craig James, )
     Re: Occasional giant spikes in CPU load  (Steve Crawford, )
   Re: Occasional giant spikes in CPU load  (David Rees, )
    Re: Occasional giant spikes in CPU load  (Robert Haas, )
     Re: Occasional giant spikes in CPU load  (Craig James, )
      Re: Occasional giant spikes in CPU load  (David Rees, )
       Re: Occasional giant spikes in CPU load  (Robert Haas, )
        Re: Occasional giant spikes in CPU load  (Craig James, )
         Re: Occasional giant spikes in CPU load  ("Joshua D. Drake", )
         Re: Occasional giant spikes in CPU load  (Greg Smith, )
         Re: Occasional giant spikes in CPU load  (Tom Lane, )
          Re: Occasional giant spikes in CPU load  (Craig James, )
           Re: Occasional giant spikes in CPU load  (Tom Lane, )
            Re: Occasional giant spikes in CPU load  (Craig James, )
             Re: Occasional giant spikes in CPU load  ("Kevin Grittner", )
              Re: Occasional giant spikes in CPU load  (Craig James, )
             Re: Occasional giant spikes in CPU load  (Greg Smith, )
             Re: Occasional giant spikes in CPU load  (Tom Lane, )
              pgbench results on a new server  (Craig James, )
               Re: pgbench results on a new server  (Scott Marlowe, )
               Re: pgbench results on a new server  (Greg Smith, )
                Re: pgbench results on a new server  (Craig James, )
                 Re: pgbench results on a new server  (Merlin Moncure, )
                  Two fast searches turn slow when used with OR clause  (Craig James, )
                   Re: Two fast searches turn slow when used with OR clause  (Robert Haas, )
                 Re: pgbench results on a new server  (Greg Smith, )
           Re: Occasional giant spikes in CPU load  (Rajesh Kumar Mallah, )
         Re: Occasional giant spikes in CPU load  ("Joshua D. Drake", )
      Re: Occasional giant spikes in CPU load  (Bruce Momjian, )
    Re: Occasional giant spikes in CPU load  (Greg Smith, )
   Re: Occasional giant spikes in CPU load  ("Joshua D. Drake", )

Craig James <> wrote:

> I always just assumed that lots of backends that would be harmless
> if each one was doing very little.

Even if each is doing very little, if a large number of them happen
to make a request at the same time, you can have problems.  This is
exactly where a connection pool can massively improve both
throughput and response time.  If you can arrange it, you want a
connection pool which will put a limit on active database
transactions and queue requests to start a new transaction until one
of the pending ones finishes.

-Kevin


В списке pgsql-performance по дате сообщения:

От: "Kevin Grittner"
Дата:
Сообщение: Re: Architecting a database
От: Craig James
Дата:
Сообщение: Re: Architecting a database