Re: How Many PG_Locks are considered too many

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: How Many PG_Locks are considered too many
Дата
Msg-id 55BA2B68.6010902@gmx.net
обсуждение исходный текст
Ответ на How Many PG_Locks are considered too many  (Renato Oliveira <Renato.Oliveira@cantabcapital.com>)
Ответы Re: How Many PG_Locks are considered too many  (Renato Oliveira <Renato.Oliveira@cantabcapital.com>)
Список pgsql-admin
On 7/30/15 6:13 AM, Renato Oliveira wrote:
> We have a Nagios plugin, which monitors pg_locks and almost daily we see
> 3000 to 40000 pg_locks.
>
> Can we just ignore them, can we let them grow without worrying?
>
> How many pg_locks are considered unsafe for any given postgres server?

That depends on how many concurrent clients you have and what they are
doing.  Every table access will at least create a share lock of some
kind, so if you have a lot of activity that does a lot of things, you
will see a lot of locks, but that doesn't impact database performance in
a significant way.

I don't think monitoring the absolute number of locks is useful.  You
might want to chart it, to compare over time.  If you want to monitor
locks, you could monitor lock waits, which you can get by checking the
server log.



В списке pgsql-admin по дате отправления:

Предыдущее
От: Renato Oliveira
Дата:
Сообщение: How Many PG_Locks are considered too many
Следующее
От: Renato Oliveira
Дата:
Сообщение: Re: How Many PG_Locks are considered too many