From owner-freebsd-stable@freebsd.org Sat Dec 3 14:43:41 2016 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 938C1C6447D for ; Sat, 3 Dec 2016 14:43:41 +0000 (UTC) (envelope-from prvs=0145deb355=rblayzor.bulk@inoc.net) Received: from mta2.alb.inoc.net (mta2.alb.inoc.net [IPv6:2607:f058:110:2::1:2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 60772288 for ; Sat, 3 Dec 2016 14:43:41 +0000 (UTC) (envelope-from prvs=0145deb355=rblayzor.bulk@inoc.net) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=inoc.net; s=201501; h=X-Auth-Info:Message-Id:In-Reply-To:To:References:Date:Subject: Mime-Version:Content-Type:From; bh=qchlfV61AJlXeZvWF/ghLC58Z+mNC2DBZQx/3LGQCa0=; b=hbEcV5vU+/QdOWL6KZrIRCWnRd iLP3FZIhTdvnMTSs/a7C1k+vvJgIXQhuHKxB3Xy/fqTvL2qxbpuRD82PbMtdFsxekWeh3qA2/QGLc +w90nS3mOgGJy7ytnsnsGMLJkohfEPR3AUw8wdkAG11REP0itm9mE4ogSmVhIQTCQMj9ZkjhW0Vt2 sJ+6czWk+z8Qmg0uAT7tg4lEzF/TEvVpZdojJJ+A0Kc1uJbdHUerGvxJR7U6+9oQP5aoscsZE8UGq H7nbR63VzVBDNw4HwNMlt2dXsgDFNcKxqnDgVhMmPnZaqWCUF7cYxDlKTNX3Mir5trDtdvyD3o+cC zoK7T7Mg==; Received: from pool-96-236-24-232.albyny.fios.verizon.net ([96.236.24.232] helo=[10.99.1.110]) by mail.inoc.net with ESMTPA (Exim 4.87) (envelope-from ) id 1cDBXQ-000Jcm-Hf by authid for freebsd-stable@freebsd.org; Sat, 03 Dec 2016 14:43:40 +0000 From: Robert Blayzor Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.1 \(3251\)) Subject: Re: CARP master election changed in 11.0 ? Date: Sat, 3 Dec 2016 09:43:38 -0500 References: To: FreeBSD Stable In-Reply-To: Message-Id: X-Mailer: Apple Mail (2.3251) X-Auth-Info: cmJsYXl6b3JAaW5vYy5uZXQ= X-Virus-Scanned: ClamAV 0.99.2/22647/Sat Dec 3 07:29:29 2016 X-Origin-Country: US X-Anti-Abuse: Please report to abuse@inoc.net X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Dec 2016 14:43:41 -0000 Disregard, this problem has been semi-solved. For reasons unknown now it = was due to carp send error penalties being applied to one of the = servers, which are added to the advskew. Since a lagg interface is involved: carp: demoted by 10 to 10 (send error 50 on lagg0) carp: demoted by 10 to 20 (send error 50 on lagg0) But what is strange is that the two servers in the VHID have the same = exact hardware. Experiencing this send error on one but not the other=E2=80= =A6 Ultimately the work around was adjusting net.inet.carp.senderr_demotion_factor -> 10 =46rom it=E2=80=99s default of 240. Since these errors appear only at startup and not incrementing, it = doesn=E2=80=99t really look like a problem. net.inet.carp.ifdown_demotion_factor: 240 net.inet.carp.senderr_demotion_factor: 10 net.inet.carp.demotion: 20 -- inoc.net!rblayzor XMPP: rblayzor.AT.inoc.net PGP Key: 78BEDCE1 @ pgp.mit.edu > On Dec 1, 2016, at 3:10 PM, Robert Blayzor = wrote: >=20 > Did something change between 10.x and 11.0 with carp MASTER election = and advskew?=20 >=20 > I have several 10.3 servers where the master is elected based on the = member with the LOWEST advskew. >=20 > =46rom a pair of 10.3 servers: >=20 > vlan: 100 parent interface: lagg0 > carp: MASTER vhid 10 advbase 1 advskew 100 >=20 > vlan: 100 parent interface: lagg0 > carp: BACKUP vhid 10 advbase 1 advskew 110 >=20 >=20 > Deploying a new pair of 11.0-RELEASE servers, I see the opposite; = seems like the member with the HIGHEST advskew wins now: >=20 >=20 > carp: BACKUP vhid 20 advbase 1 advskew 0 > groups: lagg >=20 > carp: MASTER vhid 20 advbase 1 advskew 100 > groups: lagg >=20 >=20 >=20 > Preemption doesn=E2=80=99t seem to matter, even with preemption = enabled. (which it is). >=20 > =46rom OpenBSD, man reads: >=20 > advskew > This optional parameter specifies how much to skew the advbase when = sending CARP advertisements. By manipulating advskew, the master CARP = host can be chosen. The higher the number, the less preferred the host = will be when choosing a master. The default is 0. Acceptable values are = from 0 to 254. >=20 >=20 > And this seems true in 10.3 but reversed in 11.0 ? >=20 > -- > inoc.net!rblayzor > XMPP: rblayzor.AT.inoc.net > PGP Key: 78BEDCE1 @ pgp.mit.edu >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 > _______________________________________________ > freebsd-stable@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to = "freebsd-stable-unsubscribe@freebsd.org"