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 1tANVv-00FPD6-7c for pgsql-admin@arkaria.postgresql.org; Mon, 11 Nov 2024 06:03:02 +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 1tANVs-00BepK-2Y for pgsql-admin@arkaria.postgresql.org; Mon, 11 Nov 2024 06:03:00 +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 1tANVr-00BepC-EC for pgsql-admin@lists.postgresql.org; Mon, 11 Nov 2024 06:03:00 +0000 Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1tANVp-001FIF-J5 for pgsql-admin@postgresql.org; Mon, 11 Nov 2024 06:02:58 +0000 Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-a9ef275b980so478939166b.0 for ; Sun, 10 Nov 2024 22:02:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731304976; x=1731909776; darn=postgresql.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=trJxR0WxNz+sc5CSSHYsKYmk8xwmyt1xzo3F901L/UU=; b=jX+SQP+lZv3kIyhUrjVhpzi3BjUjpYuFPLcbwjqF01TXqERGMDrm31F3SPoCLTWsAG bN89OP/z3uNA83bWSXaM/I2CvGJE6ZafQ3D/jNU+heCbv6pBXovp9ox2zdsYfeKeuUpZ F6mAP2AIzSNXGuB7EVbwRXMMxG8N6YvJJ7E8TzEZ4YfY7mO2mq/t2bBnICQ3O1q2ALye YBDTcxH4/HC7mznF+wBseSEkOpi4mwjXf93373rN3PEN9NEEfmVE7tzBgISIE+YYG1Qd m/rzOucq7rj4b1W4vnbWft9rLII0eWPVvXx2/wi30f4Er6S3PoPfuBlF5CW9xUiRzF4W 2bhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731304976; x=1731909776; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=trJxR0WxNz+sc5CSSHYsKYmk8xwmyt1xzo3F901L/UU=; b=aSSIGRZYYGX966wC69dKdgN+uQRdsQ1JH2kigIDcLMcWEa+SMQyT3VR+Hx5VuD/ZSy 3Q/W91bhRna7LBqkV7UFwGi2v1p5T6VeE3OzoQlxxuzYXDAtda+xhJvqCt6tm7mL2gD7 OqsBx0Aq5WYSZ7hT7a7U44RLmXDqQ9+JeidNBUeIYQUn8uq3rOxk+qphGteBGpJo/2rq wj55ay+2jQ8QnPZlz6RXFNzfOjj2kA4iOZEQwVoyNS2VHUOPYv0W0p47vNwr6sTu6sJo v/MlC6EE3coifhpdcV5g0dKPQxhyPRmXgDiu2uMoLs0sob2BYQbz+inZjR4fnh9BzJVr XcAw== X-Gm-Message-State: AOJu0YwnHTJ45CPmrpJRM6Svu4P7SU5rSrTIfZBLliwszpA1VRPooWY+ dJEajoWIYjRBCW9EOQEucUtm+I2Z8Uawll+A5PJNZvvwZEmtATatpD1kSK9YSaIgczgZuZu2jIq D4No6KY5Qd3Q/Z1Mly3qr2RzNR4uhgWDWZD0= X-Google-Smtp-Source: AGHT+IGnUoAjgjPFdwHJUjn1n3al/NwrjdmVRXSKjgld+0nFufO6MCd4m3iOXgcEMxLnAvb8huWGl5UG48A4lqI/OqU= X-Received: by 2002:a17:907:a4e:b0:a9a:e91:68c5 with SMTP id a640c23a62f3a-a9eeff3931fmr1187016166b.33.1731304975458; Sun, 10 Nov 2024 22:02:55 -0800 (PST) MIME-Version: 1.0 From: p sn Date: Mon, 11 Nov 2024 15:02:44 +0900 Message-ID: Subject: Inquiry on Setting Up Automatic Failover with Stream Replication To: pgsql-admin@postgresql.org Content-Type: multipart/alternative; boundary="0000000000000f698006269cdad5" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000000f698006269cdad5 Content-Type: text/plain; charset="UTF-8" Hello, I am currently setting up PostgreSQL Stream Replication for a replication configuration. I am using PostgreSQL version 14.12 on a RedHat 8.9 environment, and my setup consists of a Primary-Standby replication configuration with two nodes. Due to certain constraints, I cannot add more nodes or use external nodes. Questions: 1-1. How should I configure postgresql.conf and pg_hba.conf for this setup? I would like to implement automatic failover with only these two nodes. 1-2. Is it possible to achieve this setup? If so, could you advise on the specific configuration steps needed? I would greatly appreciate any guidance from those with experience in this area. Thank you. Best regards, --0000000000000f698006269cdad5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
=C2=A0 Hello, I am currently setting up PostgreSQL Stream Replication for a replication configuration.=C2=A0

=C2=A0I am using PostgreSQL= version 14.12 on a RedHat=C2=A08= .9 environment,=C2=A0
and my setup consists of a Prima= ry-Standby replication configuration wit= h two nodes.
=C2=A0Due = to certain constraints, I cannot add more nodes or use external nodes.=C2=A0

=C2=A0 Questions:=C2=A0
=C2=A0 =C2=A0 1-1. How should I configure= postgresql.conf and pg_hba.conf= for this setup? I would like to implement automatic failover with only these two nodes.=C2=A0
=C2=A0 =C2=A0 1-2. Is it possible to achieve this setup? If so, could you advise on the specific configuration steps needed? I would greatly = appreciate any guidance from thos= e with experience in this area. Thank you.=C2=A0


=C2=A0Best regards,=C2=A0=C2=A0
--0000000000000f698006269cdad5--