Re: Postgresql docker health check

Поиск
Список
Период
Сортировка
От Peter J. Holzer
Тема Re: Postgresql docker health check
Дата
Msg-id 20240314183510.qd4cgpz2cvzvzlhi@hjp.at
обсуждение исходный текст
Ответ на Postgresql docker health check  (Amna Abdul Rehman <amnaarehman18@gmail.com>)
Список pgsql-general
On 2024-03-12 15:43:13 +0100, Amna Abdul Rehman wrote:
> When my application runs overnight, I receive the error message
> 'FATAL: Sorry, too many clients already.' To address this, I increased
> the number of max_connections to 3000, 5000, and also 10000, but I
> still receive the error. Now, I'm considering implementing a health
> check. Specifically, I'd like to automatically restart the PostgreSQL
> container if this error occurs.

While implementing "emergency brakes" like this is generally a good
idea, you should investigate why you have so many connections. If you
have way more connections than you can reasonably expect, something is
wrong, And it is better to fix the root cause than to just hit
everything over the head with a hammer periodically.

        hp

--
   _  | Peter J. Holzer    | Story must make more sense than reality.
|_|_) |                    |
| |   | hjp@hjp.at         |    -- Charles Stross, "Creative writing
__/   | http://www.hjp.at/ |       challenge!"

Вложения

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

Предыдущее
От: Jan Kohnert
Дата:
Сообщение: Re: Implementing product-aggregate
Следующее
От: hassan rafi
Дата:
Сообщение: Re: Seeing high query planning time on Azure Postgres Single Server version 11.