pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott Ribe <scott_ribe@elevated-dev.com>
To: Dzmitry <dzmitry.nikitsin@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: postgres crashes on insert in 40 different threads
Date: Sun, 25 Aug 2013 09:33:42 -0600
Message-ID: <9A8460E0-A087-4002-8153-A7A295C45E4D@elevated-dev.com> (raw)
In-Reply-To: <CE3F9538.12BA0%dzmitry.nikitsin@gmail.com>
References: <CE3F9538.12BA0%dzmitry.nikitsin@gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>

On Aug 25, 2013, at 2:04 AM, Dzmitry <dzmitry.nikitsin@gmail.com> wrote:

> Ok,thank you, it's a good point. Need to review & make fixes with what I
> have. 

Yes, as suggested I would try just reducing first.

Where connection pooling could help is if your load across all those rails apps is not spread out evenly, but varies over time such that there is *no* single small number of workers that is right for all conditions. Because the same comments about no benefit from tons of threads applies to the pg server as well: so 110 connections simultaneously doing work is not likely to be better than some smaller number...

-- 
Scott Ribe
scott_ribe@elevated-dev.com
http://www.elevated-dev.com/
(303) 722-0567 voice






-- 
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin



view thread (21+ messages)

Message-ID: <9A8460E0-A087-4002-8153-A7A295C45E4D@elevated-dev.com>
Permalink:  ../9A8460E0-A087-4002-8153-A7A295C45E4D@elevated-dev.com/
Also on:    postgresql.org/message-id/9A8460E0-A087-4002-8153-A7A295C45E4D@elevated-dev.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: scott_ribe@elevated-dev.com, dzmitry.nikitsin@gmail.com
  Subject: Re: postgres crashes on insert in 40 different threads
  In-Reply-To: <9A8460E0-A087-4002-8153-A7A295C45E4D@elevated-dev.com>
  References: <CE3F9538.12BA0%dzmitry.nikitsin@gmail.com> <9A8460E0-A087-4002-8153-A7A295C45E4D@elevated-dev.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox