From: | Michael Lewis <mlewis(at)entrata(dot)com> |
---|---|
To: | Justin <zzzzz(dot)graf(at)gmail(dot)com> |
Cc: | Dipanjan Ganguly <dipagnjan(at)gmail(dot)com>, "pgsql-generallists(dot)postgresql(dot)org" <pgsql-general(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Connections dropping while using Postgres backend DB with Ejabberd |
Date: | 2020-02-25 17:20:34 |
Message-ID: | CAHOFxGrxvM1ZSPpSzX2DFQqqhLS9ea99LUB=-p_pnQPmAaKHPQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin pgsql-general pgsql-hackers pgsql-performance |
work_mem can be used many times per connection given it is per sort, hash,
or other operations and as mentioned that can be multiplied if the query is
handled with parallel workers. I am guessing the server has 16GB memory
total given shared_buffers and effective_cache_size, and a more reasonable
work_mem setting might be on the order of 32-64MB.
Depending on the type of work being done and how quickly the application
releases the db connection once it is done, max connections might be on the
order of 4-20x the number of cores I would expect. If more simultaneous
users need to be serviced, a connection pooler like pgbouncer or pgpool
will allow those connections to be re-used quickly.
These numbers are generalizations based on my experience. Others with more
experience may have different configurations to recommend.
>
From | Date | Subject | |
---|---|---|---|
Next Message | Dipanjan Ganguly | 2020-02-25 19:16:52 | Re: Connections dropping while using Postgres backend DB with Ejabberd |
Previous Message | Justin | 2020-02-25 17:01:24 | Re: Connections dropping while using Postgres backend DB with Ejabberd |
From | Date | Subject | |
---|---|---|---|
Next Message | Mani Sankar | 2020-02-25 18:08:53 | Re: LDAP with TLS is taking more time in Postgresql 11.5 |
Previous Message | Adrian Klaver | 2020-02-25 17:13:04 | Re: Trigger |
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Banck | 2020-02-25 17:28:54 | Re: [Patch] Base backups and random or zero pageheaders |
Previous Message | Justin | 2020-02-25 17:01:24 | Re: Connections dropping while using Postgres backend DB with Ejabberd |
From | Date | Subject | |
---|---|---|---|
Next Message | Mani Sankar | 2020-02-25 18:08:53 | Re: LDAP with TLS is taking more time in Postgresql 11.5 |
Previous Message | Justin | 2020-02-25 17:01:24 | Re: Connections dropping while using Postgres backend DB with Ejabberd |