From 176445e9f99d65ae506c0ccb41a0231dc7ab19b2 Mon Sep 17 00:00:00 2001 From: Kochetkov S Date: Tue, 16 Jun 2026 17:15:05 +0300 Subject: [PATCH] Tune sanitizer postgres and bump workflow image --- clusters/yc-infra-prod/infrastructure/patches/postgresql.yaml | 4 ++++ infrastructure/pg-sanitizer/base/workflowtemplate.yaml | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/clusters/yc-infra-prod/infrastructure/patches/postgresql.yaml b/clusters/yc-infra-prod/infrastructure/patches/postgresql.yaml index 5610594..6174144 100644 --- a/clusters/yc-infra-prod/infrastructure/patches/postgresql.yaml +++ b/clusters/yc-infra-prod/infrastructure/patches/postgresql.yaml @@ -44,8 +44,10 @@ spec: max_connections = 60 autovacuum = off jit = off + max_worker_processes = 32 max_parallel_workers = 4 max_parallel_maintenance_workers = 2 + max_parallel_workers_per_gather = 0 max_wal_size = 16GB checkpoint_timeout = 1h checkpoint_completion_target = 0.9 @@ -53,6 +55,8 @@ spec: max_wal_senders = 0 archive_mode = off random_page_cost = 1.1 + timescaledb.max_background_workers = 16 + timescaledb.telemetry_level = off terminationGracePeriodSeconds: 3600 customStartupProbe: exec: diff --git a/infrastructure/pg-sanitizer/base/workflowtemplate.yaml b/infrastructure/pg-sanitizer/base/workflowtemplate.yaml index 4207f57..684f146 100644 --- a/infrastructure/pg-sanitizer/base/workflowtemplate.yaml +++ b/infrastructure/pg-sanitizer/base/workflowtemplate.yaml @@ -68,7 +68,7 @@ spec: value: sts effect: NoSchedule container: - image: cr.yandex/crp3ccidau046kdj8g9q/yc-pg-sanitizer:0.1.8 + image: cr.yandex/crp3ccidau046kdj8g9q/yc-pg-sanitizer:0.1.10 imagePullPolicy: IfNotPresent command: - /usr/local/bin/company_sanitize_from_s3.sh @@ -93,6 +93,8 @@ spec: value: postgres - name: PGSSLMODE value: disable + - name: PG_ALLOW_NONLOCAL + value: "false" - name: PGRESTORE_JOBS value: "6" - name: DB_WORK_MEM