Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id EEDF9B5DBDC for ; Sun, 3 Jul 2011 04:35:24 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 20106-01 for ; Sun, 3 Jul 2011 07:35:18 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mail.postgresql.org (Postfix) with ESMTP id 4781DB5DBC8 for ; Sun, 3 Jul 2011 04:35:18 -0300 (ADT) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1QdHD3-00065i-Oh for pgsql-admin@postgresql.org; Sun, 03 Jul 2011 00:35:17 -0700 Date: Sun, 3 Jul 2011 00:35:17 -0700 (PDT) From: jenopob To: pgsql-admin@postgresql.org Message-ID: <1309678517759-4546630.post@n5.nabble.com> Subject: How to auto swtich the roles of primary and standby MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.778 tagged_above=-10 required=5 tests=BAYES_00=-1.9, URI_HEX=1.122 X-Spam-Level: X-Archive-Number: 201107/22 X-Sequence-Number: 37801 hi all my architecture follows as: Master/Slave with Streaming Replication and pgpool-II version of pgpool-II is pgpool-II.3.0.4 version of PostgreSQL is 9.0.2 http://postgresql.1045698.n5.nabble.com/file/n4546630/pgpool-II.png I want to confirm some questions as follows: 1.how about the performance of the architecture ,about what params should I pay most attention to 2.when the primary server goes down , pgpool will execute the command :failover_command and then the standby server becomes the new primary,this is no problem, but when I restart former primary ,what should pgpool do to change the former primary server to new standby ,any command like failover_command to execute? the content of http://www.postgresql.org/docs/9.1/static/warm-standby-failover.html say should recreate the new standby ,but I have no idea about this , could pgpool-II manage the process ,I also find the command failback_command(command to execute when attaching a new node) at pgpool.conf ,I am not sure this command can do something correctly to change the former primary to new standby the question most like http://postgresql.1045698.n5.nabble.com/Switchover-of-Master-and-Slave-roles-td4462251.html thanks for any help jenopob -- View this message in context: http://postgresql.1045698.n5.nabble.com/How-to-auto-swtich-the-roles-of-primary-and-standby-tp4546630p4546630.html Sent from the PostgreSQL - admin mailing list archive at Nabble.com.