Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B242A2009D9 for ; Thu, 19 May 2016 18:11:32 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B0E011609AE; Thu, 19 May 2016 16:11:32 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A2A34160A05 for ; Thu, 19 May 2016 18:11:31 +0200 (CEST) Received: (qmail 40244 invoked by uid 500); 19 May 2016 16:11:29 -0000 Mailing-List: contact commits-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list commits@cloudstack.apache.org Received: (qmail 39643 invoked by uid 99); 19 May 2016 16:11:28 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 May 2016 16:11:28 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id A5251DFC74; Thu, 19 May 2016 16:11:28 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: swill@apache.org To: commits@cloudstack.apache.org Date: Thu, 19 May 2016 16:11:41 -0000 Message-Id: <6a2fd2209fe043c08626d111978f210c@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [14/20] git commit: updated refs/heads/master to 88cd182 archived-at: Thu, 19 May 2016 16:11:32 -0000 Merge pull request #1486 from remibergsma/reimplement-vrrp-setting-47 Reimplement router.redundant.vrrp.interval settingGlobal setting `router.redundant.vrrp.interval` is not used any more and it is now set to a hardcoded 1. This results in a failover from master->backup when the backup doesn't hear from the master in ~3.6sec. This is a bit too tight, as we've seen failovers during live migrations. We could reproduce it in about half of the cases. Setting this to setting to 2 (tested it by hardcoding it in the systemvms) gives twice as much time and we didn't see issues any more. Instead of updating the hardcoded setting from 1 to 2, I reimplemented the global setting by sending it to the router with the cmd_line, as the non-VPC router also does. Background: Why is the maximum failover time in the example 3.6 seconds? This comes from the advertisement interval and the skew time. The default advertisement interval is 1 second (configurable in keepalived.conf). The skew time helps to keep everyone from trying to transition at once. It is a number between 0 and 1, based on the formula (256 - priority) / 256 As defined in the RFC, the backup must receive an advertisement from the master every (3 * advert_int) + skew_time seconds. If it doesn't hear anything from the master, it takes over. With a backup router priority of 100 (as in the example), the failover will happen at most 3.6 seconds after the master goes down. Source: http://www.hollenback.net/KeepalivedForNetworkReliability * pr/1486: Configure rVPC for router.redundant.vrrp.interval advert_int setting Have rVPCs use the router.redundant.vrrp.interval setting Signed-off-by: Will Stevens Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/ebc70a51 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/ebc70a51 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/ebc70a51 Branch: refs/heads/master Commit: ebc70a51e2c56de6902be7633237613fe8c2df74 Parents: 9a20ab8 9c0eee4 Author: Will Stevens Authored: Wed May 18 15:52:38 2016 -0400 Committer: Will Stevens Committed: Wed May 18 15:52:38 2016 -0400 ---------------------------------------------------------------------- .../cloud/network/router/VirtualNetworkApplianceManagerImpl.java | 3 +++ systemvm/patches/debian/config/opt/cloud/bin/cs/CsDatabag.py | 4 ++++ systemvm/patches/debian/config/opt/cloud/bin/cs/CsFile.py | 1 + systemvm/patches/debian/config/opt/cloud/bin/cs/CsRedundant.py | 3 +++ 4 files changed, 11 insertions(+) ----------------------------------------------------------------------