Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1jEO8r-0001ml-UO for pgsql-general@arkaria.postgresql.org; Wed, 18 Mar 2020 02:09:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jEO8p-0004kj-MR for pgsql-general@arkaria.postgresql.org; Wed, 18 Mar 2020 02:09:07 +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_SHA1:256) (Exim 4.89) (envelope-from ) id 1jEO8p-0004kc-Cl for pgsql-general@lists.postgresql.org; Wed, 18 Mar 2020 02:09:07 +0000 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jEO8h-0004Oa-Rp for pgsql-general@postgresql.org; Wed, 18 Mar 2020 02:09:06 +0000 Received: by mail-pf1-x444.google.com with SMTP id i13so13024874pfe.3 for ; Tue, 17 Mar 2020 19:08:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=pcapC7rXINZ+eV4p1tVs/7JUXW54VTnUMxOjgzris/I=; b=PwRgIjJlPpMQWmbfOyRuQt6CskTWnvIuLTe+yk0vgWxEoEuSFO1UBYVKTpj/gcinLW K7wt9dDt+lTV0RvfhafQTo0F0pS8T7u5mAv25RQXubdhxRpYeycoM9f3BnKR3AHnylpz lUOnCG+qZV/QXeDrb2/EAGXbMdjbccN1CaYCUtmnAi4Cox+82vIS3CoPFlPhczFd1EeQ S7GbqIUbBkjv7DYn/QdVIDFz9anzpGp6CectYnOVfqXRx11EMApJ+/jcxkkQ+xBQ0/Xa Ocj85fL6overDfKDFVLe3sbajxhYKlontH5dQLcvuhva/bEuYPHeESknYaUI+LwqtmOU BbaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=pcapC7rXINZ+eV4p1tVs/7JUXW54VTnUMxOjgzris/I=; b=d2gabvtcdq8sIPPIxzSJUZLBx+8l5HIOwAz3uGXLobb9vGTl536AxrKUd0Yt0TNHNM rmTlrptuthHLSVpNIl9dn+ifCdO7bvZg6Q4uC8/S+x/ISECWbBAYKKYW+9sQbzsKv9Km UIbIO/xNhhaNuSbPpIfhC07/hlRNIYCJPN8jsSzT7YPFvCdTBgQiCfz7brBklSG6sh7f xfjOhehXML+VJ/5DVs/sYkTHrOQ+tcHUc5qHoiPM1Gw04eo6nyoVdvv9mDaOHcEW/X6N Xj2I9YhIA7iPcWIsAtKAzSOu+7yGdrN+XIwPSO0LUB9vM7lU+k/weyPMnj/ozFyq4Wuq WMqQ== X-Gm-Message-State: ANhLgQ2pifDNT7ijTpKoV3mxHwyKHhG1pZi/yDkAg0o2gkcDeMaGnIsX iyn4oRBxCFvfdXehWxB7j0Uoc5wspBpCNHFFoZ/HQK+AOWQKv4faRlOehJkjdqleWMYdkFj9pwv +csTH6/jEcqcIvD0jS0SlsHS5QwMoCo/ARXglXIwoYv4Dxicgq/4+m/MX3QtI5FzCXvyhJSZL0r 2cHf9x/h/v/A== X-Google-Smtp-Source: ADFU+vvwqmZyulGwiXHTCFiTDX+RhBzyaLYUb1Fc3V4Ef8+M8+uw8xyE6Ol14lltyvf5+OwTVEzPFw== X-Received: by 2002:a63:112:: with SMTP id 18mr2205738pgb.116.1584497337159; Tue, 17 Mar 2020 19:08:57 -0700 (PDT) Received: from osaka.octopusnet (p3209166-ipngn19101marunouchi.tokyo.ocn.ne.jp. [153.228.2.166]) by smtp.gmail.com with ESMTPSA id e9sm4439484pfl.179.2020.03.17.19.08.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 17 Mar 2020 19:08:56 -0700 (PDT) Subject: Re: Automatic failover To: Sonam Sharma , pgsql-general References: From: Ian Barwick Message-ID: <0bfa5fdf-7a56-08e9-5b16-82f12c28c772@2ndquadrant.com> Date: Wed, 18 Mar 2020 11:08:53 +0900 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2020/03/17 19:30, Sonam Sharma wrote: > I have setup replication using repmgr. Wanted to know how much time > the slave node will take to become new primary ?? If any document, > can someone please share of auto failover. With automatic failover, > how much time the slave takes to become new primary . It's impossible to give a generic answer to this. Firstly, there will be the interval between the primary failing and whatever failover system you are using deciding to make a failover decision. This will be configurable, and will always be a trade-off between speed and certainty. Secondly it will depend on what work the standby needs to do before it completes the promotion process. Typically the standby will promote very quickly, but e.g. if it has a bunch of WAL to replay first, the process will take longer. Regards Ian Barwick -- Ian Barwick https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Training & Services