From: Kenneth Marshall <ktm@rice.edu>
To: Kristian Ejvind <Kristian.Ejvind@resurs.se>
Cc: pgsql-performance@lists.postgresql.org <pgsql-performance@lists.postgresql.org>
Subject: Re: zabbix on postgresql - very slow delete of events
Date: Tue, 23 Jul 2019 07:58:03 -0500
Message-ID: <20190723125803.GD21184@aart.rice.edu> (raw)
In-Reply-To: <3EC00A37-57CF-4B43-A737-968A87B02641@contoso.com>
References: <3EC00A37-57CF-4B43-A737-968A87B02641@contoso.com>
On Tue, Jul 23, 2019 at 08:07:55AM +0000, Kristian Ejvind wrote:
> Hi
>
> This will be a rather lengthy post, just to give the full (I hope) picture. We're using Zabbix for monitoring and I'm having problems
> understanding why the deletion of rows in the events table is so slow.
>
> Zabbix: 4.2 (never mind the name of the db - it is 4.2)
> new values per second: ~400
> hosts: ~600
> items: ~45000
>
Hi Kristian,
Time series databases like Zabbix work poorly with the Housekeeper
service. We had many similar sorts of problems as our Zabbix usage
grew. Once we partitioned the big tables, turned off the Housekeeper,
and cleaned up by dropping partitions instead everything worked much,
much, much better. When we started using partitioning, we used the
old inheiritance style. Now you can use the native partitioning.
Regards,
Ken
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 using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: ktm@rice.edu, Kristian.Ejvind@resurs.se, pgsql-performance@lists.postgresql.org
Subject: Re: zabbix on postgresql - very slow delete of events
In-Reply-To: <20190723125803.GD21184@aart.rice.edu>
* 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