Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84) (envelope-from ) id 1adKqL-0002YM-JI for pgsql-admin@arkaria.postgresql.org; Tue, 08 Mar 2016 16:50:45 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1adKqL-0005Wg-20 for pgsql-admin@arkaria.postgresql.org; Tue, 08 Mar 2016 16:50:45 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1adKoe-0002qP-8I for pgsql-admin@postgresql.org; Tue, 08 Mar 2016 16:49:00 +0000 Received: from mail-pa0-x233.google.com ([2607:f8b0:400e:c03::233]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1adKob-0006Xl-50 for pgsql-admin@postgresql.org; Tue, 08 Mar 2016 16:48:59 +0000 Received: by mail-pa0-x233.google.com with SMTP id bj10so16202619pad.2 for ; Tue, 08 Mar 2016 08:48:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=consistentstate-com.20150623.gappssmtp.com; s=20150623; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding; bh=SFGiITS1immd2rtcI42cHPLXN2yjqsMtrO9eOBIq3Ks=; b=gAnBpo+ME1zxvMU5dHk3ppREzGXT4UowO0okr0rd5xQF8GJ2+h3xTiWjoEry1BoI+0 w9RdCEVwo7RJ3F7HQS4Gub8zNorZK9GbTci/LI7RQtA7ehwOZn98LzMUXbad4TTE2LHI V3/qBQnudOTTSyCEjjSjWla9Exof9Vvm+1015snW8Kvwx0wUOEsxVDXGVDSP/dQJL2Oq BOFqiryQdH2MgoDE/+9rSJmJDqz29M9dbwumhu8Ng/7GPPnKuV6osGYGQNYiwdvnMc/P 17yzuCAjw1oFDHamzYU0t7hS8TQXhsCEupui+RdRnvK9Wg3Q07/BI1hDsfxx0kpuWU0O uHig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=SFGiITS1immd2rtcI42cHPLXN2yjqsMtrO9eOBIq3Ks=; b=gGH013bPBfYlClkopYpjn2tfLtXWnfvdlgIzOYj7LhUj0hlXEKzGjE3um0FvFGWcYw /firGlEtsDEIuU8Sy9a/in/c1Ra15rYt6dHoX27FwPEdcd5ohoEeauWS/sXZs5fqCJG/ 1h2h/mrpWufXZgXR9kV+cK3rBgJjpH1qGHFvAhfO+8SqXdo0oj2g1nyi4DFtg9C9aOeN DqLJyMa74l24+sdErF5BYC6soRcZ6SnNH1L9a1dcp/+qxsFJ6/hAGZrxIgu+GiG3UhFj h+D2F/+cNYLic9euMxNRAEeWFNAwgG+pMe6bPbr58TQjbvKR2sGxNbx3It9/P4jWk1T6 gV4A== X-Gm-Message-State: AD7BkJKoJqwCpAJocRRHu8njf7eUF2Fs6adSdhMcE/+46ipze8ox3rSh05lbaMQaOeTMFA== X-Received: by 10.66.154.233 with SMTP id vr9mr43343354pab.66.1457455734860; Tue, 08 Mar 2016 08:48:54 -0800 (PST) Received: from ?IPv6:2600:100e:b047:6670:4e34:88ff:fead:7280? ([2600:100e:b047:6670:4e34:88ff:fead:7280]) by smtp.gmail.com with ESMTPSA id x64sm6164744pfa.72.2016.03.08.08.48.52 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 08 Mar 2016 08:48:53 -0800 (PST) To: "pgsql-admin@postgresql.org" From: CS DBA Subject: D.R. Site Failover (Streaming Replication) - user access / network options Message-ID: <56DF026E.6010401@consistentstate.com> Date: Tue, 8 Mar 2016 09:48:46 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org Hi All; We are assisting a client with an Oracle to PostgreSQL conversion. They did not have any replication with Oracle due to the version they ran, however moving to PostgreSQL they want to setup a local HOT Standby and a remote / DR Site standby. Setting up the Standby's is easy enough, we've setup standby's multiple times and automated failover lots of times as well. We have in the past leveraged a number of approaches to keep a failover seamless to the app. In most DR / remote site cases we've recommended that the full stack be replicated so if we completely loose a site (or cloud region) then we switch to the secondary site, promote the secondary / DR site standby to a master and we're back in business. I do however have a few questions related to this, I'm interested to find out what others have done here, in particular how do you go about moving end users (assuming a web app is the end user entry point) to point seamlessly to the secondary site? Also how have you all dealt with the possible split brain issue (i.e. we fail over, then the primary site comes back up and existing/old connections to the old site then write to the old master) Thanks in advance for your feedback.... -- Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-admin