Kaspersky Security Center Linux 支持 PostgreSQL 和 Postgres Pro DBMS。如果您使用这些 DBMS 之一,请考虑配置 DBMS 服务器参数,使 DBMS 与 Kaspersky Security Center Linux 达到最佳工作状态。
配置文件的默认路径是:/etc/postgresql/<
VERSION
>/main/postgresql.conf
PostgreSQL 和 Postgres Pro 的推荐参数:
shared_buffers = N
N =安装 DBMS 的设备的 RAM 值的 25%。如果 RAM 小于 1 GB,则保留默认值。
max_stack_depth =
最大堆栈大小(执行“ulimit -s
”命令以获取此值(以 KB 为单位)减去 1 MB 安全余量temp_buffers = 24MB
work_mem = 16MB
max_connections = 151
max_parallel_workers_per_gather = 0
maintenance_work_mem = 128MB
确保standard_conforming_strings
参数设置为其默认值on
。更新 postgresql.conf 文件后重新加载配置或重新启动服务器。有关详细信息,请参阅 PostgreSQL 文档。
如果您使用集群 Postgres DBMS,请在集群配置中为所有 DBMS 服务器指定max_connections
参数。
如果您使用 Postgres Pro 15.7 或 Postgres Pro 15.7.1,请禁用enable_compound_index_stats
参数:
enable_compound_index_stats = off
有关 PostgreSQL 和 Postgres Pro 服务器参数以及如何指定参数的详细信息,请参阅相应的 DBMS 文档。
有关如何为 PostgreSQL 和 Postgres Pro 创建和配置账户的详细信息,请参阅以下主题: 配置 PostgreSQL 和 Postgres Pro 的使用账户。
高可用性集群支持
高可用性 MariaDB 和 PostgreSQL 集群支持以下设置:
复制类型:同步。
最小节点数:3。
最大节点数:15。
服务器访问 DBMS 使用的 Postgres 角色需要具有读取以下视图的权限(默认启用):
当使用 Postgres 高可用性集群(版本 14 或更高版本)作为数据库时,数据库用户必须具有pg_read_all_stats
权限。您可以通过运行以下命令授予此权限:
GRANT pg_read_all_stats TO "%1";
其中%1
是数据库用户的名称。
用户名在管理服务器安装程序期间在KLSRV_UNATT_DBMS_LOGIN
参数中指定。