From users-return-7335-archive-asf-public=cust-asf.ponee.io@trafficserver.apache.org Mon Nov 5 17:50:16 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 4FA18180670 for ; Mon, 5 Nov 2018 17:50:16 +0100 (CET) Received: (qmail 88473 invoked by uid 500); 5 Nov 2018 16:50:15 -0000 Mailing-List: contact users-help@trafficserver.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@trafficserver.apache.org Delivered-To: mailing list users@trafficserver.apache.org Received: (qmail 88463 invoked by uid 99); 5 Nov 2018 16:50:15 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Nov 2018 16:50:15 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id CBDD31A5462 for ; Mon, 5 Nov 2018 16:50:14 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.199 X-Spam-Level: * X-Spam-Status: No, score=1.199 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=pobox.com; domainkeys=pass (1024-bit key) header.from=pdm@pobox.com header.d=pobox.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 7uyONoLOTL1v for ; Mon, 5 Nov 2018 16:50:13 +0000 (UTC) Received: from pb-smtp2.pobox.com (pb-smtp2.pobox.com [64.147.108.71]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id C629D5F419 for ; Mon, 5 Nov 2018 16:50:12 +0000 (UTC) Received: from pb-smtp2.pobox.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id 262FA1147C6 for ; Mon, 5 Nov 2018 11:50:06 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=mime-version :references:in-reply-to:from:date:message-id:subject:to :content-type; s=sasl; bh=+yDPI54zOc1jXEKweNhpRIxFTas=; b=UPhKrr 4I/YLEV4a6Xk1S1tFzZqrFW+SbYj3Z7Y1+LIgsS95HxjpSSpULs3IRSWrvjt9EVC syBu4H7FXrVVCi0vyqvFE8rXbBzejm677IZDpt1futVdel58nma7nLoX1mbOdQms t4r5Ff9qyk4byO4MVVVocWJxIeP4BF/xVlEaU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=mime-version :references:in-reply-to:from:date:message-id:subject:to :content-type; q=dns; s=sasl; b=p7b9NOTO8uhBsPtmYFpFSpDLMHhO8yjp lpHFS+uaPDLPWm3+nkugsVNsVf69okjpsjHY8igynFx9CiZlgKC+hUTP11BhSLJ5 4Z86oM6CL9sYJtcDw1OCNyxvuimMn/WNiaajgKRxIC9gS24Y1TYYFW+w2Ei9qCwv oBki+7h0nWk= Received: from pb-smtp2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp2.pobox.com (Postfix) with ESMTP id 1D2EB1147C5 for ; Mon, 5 Nov 2018 11:50:06 -0500 (EST) Received: from mail-it1-f170.google.com (unknown [209.85.166.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pb-smtp2.pobox.com (Postfix) with ESMTPSA id 7A8131147C4 for ; Mon, 5 Nov 2018 11:50:05 -0500 (EST) Received: by mail-it1-f170.google.com with SMTP id v11so7402385itj.0 for ; Mon, 05 Nov 2018 08:50:05 -0800 (PST) X-Gm-Message-State: AGRZ1gI1Xigz+BYikAsR2XWmKLSkHfc5SemxiHGvK+ubD2prbXbKSEPx GiO/B5Q7WGtxCJGbi/cyEcIBVPOGiSCN80xE4U8NqA== X-Google-Smtp-Source: AJdET5dlTgacEgcQecPLJCRH+zbRRsdOnkYtoAbf4v57moE5Fnvm2EIn4CSedHB8+sWBWh5TiGXHyaHUkZDFQ77uXck= X-Received: by 2002:a02:984e:: with SMTP id x14-v6mr19697589jaj.41.1541436604687; Mon, 05 Nov 2018 08:50:04 -0800 (PST) MIME-Version: 1.0 References: <1540283519772-0.post@n7.nabble.com> <1540390140210-0.post@n7.nabble.com> <1540711825542-0.post@n7.nabble.com> <1541424327320-0.post@n7.nabble.com> In-Reply-To: <1541424327320-0.post@n7.nabble.com> From: Phillip Moore Date: Mon, 5 Nov 2018 10:49:53 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: ATS 7.1 graceful shutdown - client connections To: users@trafficserver.apache.org Content-Type: multipart/alternative; boundary="0000000000004467260579edad41" X-Pobox-Relay-ID: D8A947B4-E11A-11E8-8256-BFB3E64BB12D-57275388!pb-smtp2.pobox.com --0000000000004467260579edad41 Content-Type: text/plain; charset="UTF-8" We have a tool that we use to take nodes in and out of service. Basically it either creates or removes a server_enabled file. This causes our L4 load balancer to remove the ATS node from its pool. In addition to facilitate draining in ATS header_rewrite plugin config we have this: # close keepalive sessions if server is disabled cond %{SEND_RESPONSE_HDR_HOOK} cond %{ACCESS:/path/to/server_enabled} [NOT,OR] set-header Connection "close" Caveat is this doesn't work with HTTP/2 I'm told, but we don't do that so this works nicely for us. I can't take credit for the header_rewrite trick, I believe it came from Yahoo. -- Phillip On Mon, Nov 5, 2018 at 7:25 AM ezko wrote: > Thanks Jermy, > this sounds like a much simpler solution. > > > > > > -- > Sent from: http://apache-traffic-server.24303.n7.nabble.com/ > --0000000000004467260579edad41 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

We have a tool that we use to ta= ke nodes in and out of service. Basically it either creates or removes a se= rver_enabled file. This causes our L4 load balancer to remove the ATS node = from its pool.=C2=A0 In addition to facilitate draining in ATS header_rewri= te plugin config we have this:

# close keepal= ive sessions if server is disabled
cond %{SEND_RESPONSE_HDR_HOOK}=
cond %{ACCESS:/path/to/server_enabled}=C2=A0 =C2=A0 [NOT,OR]
set-header Connection "close"

Caveat is this doesn't work with HTTP/2 I'm told, but we don'= ;t do that so this works nicely for us. I can't take credit for the hea= der_rewrite trick, I believe it came from Yahoo.

-= -
Phillip


On Mon, Nov 5, 2018 at 7:25 AM ezko <erez.koler@harmonicinc.com> wrote:
=
Thanks Jermy,
this sounds like a much simpler solution.=C2=A0





--
Sent from: http://apache-traffic-server.24303.n7.na= bble.com/
--0000000000004467260579edad41--