Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tyMot-005kBK-Na for pgsql-admin@arkaria.postgresql.org; Sat, 29 Mar 2025 03:25:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tyMor-003cFl-Nx for pgsql-admin@arkaria.postgresql.org; Sat, 29 Mar 2025 03:25:13 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1tyMor-003cFc-Ct for pgsql-admin@lists.postgresql.org; Sat, 29 Mar 2025 03:25:13 +0000 Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tyMop-001jGk-0U for pgsql-admin@lists.postgresql.org; Sat, 29 Mar 2025 03:25:12 +0000 Received: by mail-pl1-x629.google.com with SMTP id d9443c01a7336-227914acd20so61362465ad.1 for ; Fri, 28 Mar 2025 20:25:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1743218710; x=1743823510; darn=lists.postgresql.org; h=in-reply-to:references:to:from:subject:message-id:date :content-transfer-encoding:mime-version:sender:from:to:cc:subject :date:message-id:reply-to; bh=B2RIHqZ0sKpUQJQv0BRg7aHxDAThgFpbV3Ud63KAQcQ=; b=PBdIeWiswpqsyEGVPvzFmVN0qWvgHkdTT/SdS4ODXtOGZ7VnLQv1vaZMj+N8pcclkd KJLvIKtNzCZRpJcPtIenq26oY1oQ/cGf/o66r0P8C0MX4qcW3VceDlDve4CbwuhLwpJa 721jEz8PKbpfp68/ct4fmrnujq4cLm+NpAOvaHOWAouQ4ubO8w5b44GKYhHGtKoN5+xE ZAfjjSXHuJOMt1hz3EvsadyqeNksyIl9LvOpLxT6Er9Q1ymHvBE7ecjoCQnlntZsgOUo IrMfCVCVpQ3LFsUqAOMhN2MyvptLLLJ9bInSoQAADZroYsVwXehQpD9dYbZ09j9MVFcj gMYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1743218710; x=1743823510; h=in-reply-to:references:to:from:subject:message-id:date :content-transfer-encoding:mime-version:sender:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=B2RIHqZ0sKpUQJQv0BRg7aHxDAThgFpbV3Ud63KAQcQ=; b=q86Sz9A8AxDmgGPkf84WMtBG7ejqGtaPunTkiGm/0Bd7gJpbG7VNx0FDpq2lzVqtSR /rwg+dzw816hwYMRkDxn9dKUWKTtEUFOUU9+fdXsHyjX5/PiEsnulkgN3jsD2Ra6EOtX 3zwjhLWhIosKEWMdDiwQxWX4UulP+BLOb3hflH4mht+9TnNPcFbjouD1BSCaXEJ0j9nL xZPmKG5mUZDX4LEVTOpZ48sDdxknIOFIW7UGF5FgOSE4Fz01/2B0OPSzsJtwHryf2S8x imlERsi1ci+BzwCS+RTpykxH4fViAJnfhR6KrADswbMfuRwRBDADQN/gUh98+OEMpyVK C3Kg== X-Forwarded-Encrypted: i=1; AJvYcCXJSPTND8xKJHm3/1iMzs6RdpgNwc7ClVHP9kquG02LOJq2U5evbTqvSNbaMio1CVTvp0MLqegWeYSROg==@lists.postgresql.org X-Gm-Message-State: AOJu0Yzd3co+cDY6obQwEwEijlmU4v1vPH9+0cjztSHyrAvPRQCy9lGH B9NfQsK5PK6lqLg334l+sdjZDQP0Z0SLmTA5t8dPOhnaZlWMTZMK X-Gm-Gg: ASbGncuLsuAbHoCH5oSTkSBFh0Fs2ucLbuxkHUrXyxMj+tN0xXffGsFwfY4RMkoEPKe OFm+vcBPcdYI89iy/WoEJ6PuZAPWzOk0JhVEt6aGpranEgky24PFzaOKvY9YWRK2qJcnwPKpUaa 7WKlrK3AfmeAQNXwrEvohQzahvakKI1PYP6Hsy9FZeCvceX57NSgVljYzJHJDNr4sdSN3ICbM4Y BMm4BJePGF+N+f7QmNVzC5KJt64XsW7obyk2qIjaKt8dmGAdqfGEcczcqrm0jx+KXx8vxZChsCy G8S25JbgjU40VO8xEHrTiOc1soknFa20a21A+YrVNeTMrIN18Sz0p6dm X-Google-Smtp-Source: AGHT+IEyU+dur1VPGw5hQfvBTIPG9pJEp9u69QyQKuv9lHoTyAc1JHFYtgoTe9gJNg8gyB81kNzO6g== X-Received: by 2002:a05:6a20:c998:b0:1ee:b5f4:b1d7 with SMTP id adf61e73a8af0-2009ec9b471mr3026218637.7.1743218709597; Fri, 28 Mar 2025 20:25:09 -0700 (PDT) Received: from localhost ([2601:644:8000:ee20:c090:a7c:4bd8:1550]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-af93ba10da3sm2403253a12.66.2025.03.28.20.25.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 28 Mar 2025 20:25:09 -0700 (PDT) Sender: Gurjeet Singh Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Fri, 28 Mar 2025 20:25:08 -0700 Message-Id: Subject: Re: Failover and vacuum From: "Gurjeet Singh" To: "Raj" , "Pgsql-admin" X-Mailer: aerc 0.20.1 References: In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu Mar 27, 2025 at 10:40 AM PDT, Raj wrote: > Hi > > Have 2 nodes ( primary and standby postgres 15.6) in openshift kubernete= s. > > Patroni setup. 300gb data. No failover since last six months. Suddenly > after failover, there were lot of issues such as too many connections and > slowness. > > Is it due to not analyze done in new node? There isn't enough information in your message for anyone to take an educated guess. If you see evidence of vacuum not being performed on certain tables for a while, yes that may explain queries taking too long, which may cause other symptoms. If analyze hasn't been performed for a while, then you may see suboptimal plans for the queries. But, again, you haven't provided enough information, so you may not get very helpful answers. Best regards, Gurjeet http://Gurje.et