Re: Looking for software to 'enqueue' connections

From: Edmundo Robles <edmundo(at)sw-argos(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Looking for software to 'enqueue' connections
Date: 2016-08-15 20:59:00
Message-ID: CAOXzpYDPGUkoOgL-desgWMf6r7Pc8AGOZ=pzOu5BtH6p42xdXw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Adrian i have hosted in a rackspace a Debian 7 with 2G RAM.
John, the table have 8 constraints and 5 indexes.
Ilya thanks for the tip, i will search about OLTP.

On Mon, Aug 15, 2016 at 3:47 PM, Ilya Kazakevich <
Ilya(dot)Kazakevich(at)jetbrains(dot)com> wrote:

> Hello.
>
>
>
> From:
>
> http://www.pgpool.net/
>
> *pgpool-II* also has a limit on the maximum number of connections*, but
> extra connections will be queued instead of returning an error immediately.*
>
>
>
> But your configuration does not look optimal for me. Here are some things
> you may try:
>
> 1) Get rid of indexes. Use this table as OLTP, then denormalize data
> and load it to OLAP table, build indecies and analyze it.
>
> 2) Find bottleneck using your OS tools (is it I/O or CPU?) and
> improve appropriate subsystem)
>
> 3) Use several servers (multimaster configuration like
> https://wiki.postgresql.org/wiki/Bucardo)
>
>
>
> Ilya Kazakevich
>
>
>
> JetBrains
>
> http://www.jetbrains.com
>
> The Drive to Develop
>
>
>
> *From:* pgsql-general-owner(at)postgresql(dot)org [mailto:pgsql-general-owner@
> postgresql.org] *On Behalf Of *Edmundo Robles
> *Sent:* Monday, August 15, 2016 11:30 PM
> *To:* pgsql-general(at)postgresql(dot)org
> *Subject:* [GENERAL] Looking for software to 'enqueue' connections
>
>
>
> Hi!
>
> I want find a software to 'enqueue' the client connections to database,
> so if i reach the max limit the query must be holding in a queue until
> one connection is released.
>
>
>
> I have many devices (100+) saving their state to a database, each
> minute, but the table is too large more than 13,000,000 of records and
> many indexes, so, insert one record takes 3 or more minutes.
>
>
>
> Then, there is a moment at connection limit is reached :( and lose
> information
>
>
>
> I tried with pgbouncer to 'enqueue' the connections but I get no
> success, maybe I missing something...
>
>
>
> by the way:
>
> I use postgres 9.4 with max_connections 100
>
> and pgbouncer max_connections to 100 and reserve_pool_size=50
>
>
>
> I hope you can help me...
>
>
>
> thanks.
>
>
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Adrian Klaver 2016-08-15 22:58:08 Re: Looking for software to 'enqueue' connections
Previous Message Ilya Kazakevich 2016-08-15 20:47:21 Re: Looking for software to 'enqueue' connections