From: | Dipanjan Ganguly <dipagnjan(at)gmail(dot)com> |
---|---|
To: | pgsql-admin(at)lists(dot)postgresql(dot)org, pgsql-general(at)lists(dot)postgresql(dot)org, pgsql-hackers(at)lists(dot)postgresql(dot)org, pgsql-performance(at)lists(dot)postgresql(dot)org |
Subject: | Connections dropping while using Postgres backend DB with Ejabberd |
Date: | 2020-02-25 16:28:38 |
Message-ID: | CAFpiWLT43Nr0C-LneFcJ9B4uzjVb+MUV+tBq=HXDDB7XG9hCjQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin pgsql-general pgsql-hackers pgsql-performance |
Greetings,
I was trying to use postgresql database as a backend with Ejabberd XMPP
server for load test (Using TSUNG).
Noticed, while using Mnesia the “simultaneous users and open TCP/UDP
connections” graph in Tsung report is showing consistency, but while using
Postgres, we see drop in connections during 100 to 500 seconds of runtime,
and then recovering and staying consistent.
I have been trying to figure out what the issue could be without any
success. I am kind of a noob in this technology, and hoping for some help
from the good people from the community to understand the problem and how
to fix this. Below are some details..
· Postgres server utilization is low ( Avg load 1, Highest Cpu
utilization 26%, lowest freemem 9000)
Tsung graph:
[image: image.png]
Graph 1: Postgres 12 Backen
[image: image.png]
Graph 2: Mnesia backend
· Ejabberd Server: Ubuntu 16.04, 16 GB ram, 4 core CPU.
· Postgres on remote server: same config
· Errors encountered during the same time: error_connect_etimedout
(same outcome for other 2 tests)
· *Tsung Load: *512 Bytes message size, user arrival rate 50/s,
80k registered users.
· Postgres server utilization is low ( Avg load 1, Highest Cpu
utilization 26%, lowest freemem 9000)
· Same tsung.xm and userlist used for the tests in Mnesia and
Postgres.
*Postgres Configuration used:*
shared_buffers = 4GB
effective_cache_size = 12GB
maintenance_work_mem = 1GB
checkpoint_completion_target = 0.9
wal_buffers = 16MB
default_statistics_target = 100
random_page_cost = 4
effective_io_concurrency = 2
work_mem = 256MB
min_wal_size = 1GB
max_wal_size = 2GB
max_worker_processes = 4
max_parallel_workers_per_gather = 2
max_parallel_workers = 4
max_parallel_maintenance_workers = 2
max_connections=50000
Kindly help understanding this behavior. Some advice on how to fix this
will be a big help .
Thanks,
Dipanjan
From | Date | Subject | |
---|---|---|---|
Next Message | Justin | 2020-02-25 17:01:24 | Re: Connections dropping while using Postgres backend DB with Ejabberd |
Previous Message | dbatoCloud Solution | 2020-02-25 14:26:48 | Dear Admin |
From | Date | Subject | |
---|---|---|---|
Next Message | Adrian Klaver | 2020-02-25 16:53:59 | Re: Trigger |
Previous Message | Adrian Klaver | 2020-02-25 16:14:59 | Re: Trigger |
From | Date | Subject | |
---|---|---|---|
Next Message | Konstantin Knizhnik | 2020-02-25 16:40:54 | Re: Yet another vectorized engine |
Previous Message | Tomas Vondra | 2020-02-25 16:00:51 | Re: Parallel copy |
From | Date | Subject | |
---|---|---|---|
Next Message | Justin | 2020-02-25 17:01:24 | Re: Connections dropping while using Postgres backend DB with Ejabberd |
Previous Message | Adrian Klaver | 2020-02-25 15:54:31 | Re: LDAP with TLS is taking more time in Postgresql 11.5 |