In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Connection slots and WAL senders, a new feature of PG 12, is described in detail as follows:
Move max_wal_senders out of max_connections for connection slot handling.Since its introduction, max_wal_senders is counted as part of max_connections when it comes to define how many connection slots can be used for replication connections with a WAL sender context. This can lead to confusion for some users, as it could be possible to block a base backup or replication from happening because other backend sessions are already taken for other purposes by an application, and superuser-only connection slots are not a correct solution to handle that case.This commit makes max_wal_senders independent of max_connections for its handling of PGPROC entries in ProcGlobal, meaning that connection slots for WAL senders are handled using their own free queue, like autovacuum workers and bgworkers.
In PostgreSQL, client connections are rejected if the number of client connections exceeds the size set by the max_connections parameter.
Psql: FATAL: sorry, too many clients already
In order to deal with this situation, PG 11 or previous versions provide superuser_reserved_connections parameters, which provide a back door for super users (administrators), but only for super users, but not for replication users. If the maximum number of connections is exceeded, then the replication will make an error when it needs to connect, resulting in the destruction of the HA environment.
In order to ensure the "HA" of the HA environment, in PG 12, the resources needed for replication connections are managed separately, and the same Array (ProcGlobal) is no longer shared with ordinary client connections (max_connections control). At the same time, this feature requires that the max_wal_senders of the standby cannot be less than the max_wal_senders of the host, otherwise it may lead to failure.
references
Postgres 12 highlight-Connection slots and WAL senders
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.