Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3175861rwb; Mon, 15 Aug 2022 20:09:44 -0700 (PDT) X-Google-Smtp-Source: AA6agR6c2gWwvTw1Hf7+p8IkJRC0V1wlDMCKXu6f/d6x0LimXf3wmpEDXu7qTnIhrcu/itiSVIo0 X-Received: by 2002:a17:903:110e:b0:171:3afa:e68c with SMTP id n14-20020a170903110e00b001713afae68cmr19757641plh.12.1660619384427; Mon, 15 Aug 2022 20:09:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660619384; cv=none; d=google.com; s=arc-20160816; b=lsezxXVnF0uX55avYAkcbMViJVcwJrWABPKKLeti7lesVsEh/FNbLzJIXHJ22c58Z1 8wZoFjQg3QI7Pbs41QwSVs4mW2ujaSLR7pkyRXCV/prawgOq05tRncsPTCIBZ03oYS0z WYI4rtlV+qU61n8OKRsejcaP1CoY4YJkvKABJC2q3Lhha23oU6KtVwaAhWEJPampIt7l oh3ZPoyvTwpxUJ7J6VHBy2v1KIqyZ221iMSmV6Jc0UpgbUrTbKkZ/RUD4KkYusDhuO5V Yz18/xwDNNIkHn4mVmeY6wgDSmaeRh8LWu9S1NmtOl4NgmsBIudXltLc1ow+Do2G3HRj lexg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:to:from:mime-version :content-transfer-encoding:dkim-signature:dkim-signature; bh=f4bV4pg5qfI7MODxICvvonQuhRljk8XLa+9qPluYqt8=; b=u4KetzDvDpx3V6wizQQHwh9bvARJLlv5k3hDIx1XaPYqecJhPq3NQVVhu0OYiHk2Vs BIvN68jSE/oBnIoNhJL4yF6AutpNKC3p6x99EybN7M7uZ5s9/Azt5lvchM+s3lHGMy+J d//WUsziXp9nDZi16lsj1NRaqlJSw0oltPPnethyxFl+uZCa1I+mbpuVpAYdmyiO2qp2 jHBNrWTupr0my37FX8xiBo6Be+4gjc1HCSd0Au/dmTn4xKhs5MWLgDGDfbDEdqh8ZmMP vWEILg9WDLuP6eQEvPzSxUQzlcB3qDZA9WAvDwLGuNyeMZLEA62FU7JetC2JpmhtnHJx njGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=ANP7ESBY; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=cfoH3Cul; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o19-20020a170902e29300b0016d82eb9202si10602799plc.578.2022.08.15.20.09.19; Mon, 15 Aug 2022 20:09:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=ANP7ESBY; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=cfoH3Cul; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230057AbiHPDEV (ORCPT + 99 others); Mon, 15 Aug 2022 23:04:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232985AbiHPDDr (ORCPT ); Mon, 15 Aug 2022 23:03:47 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F1C12E0E35 for ; Mon, 15 Aug 2022 16:35:44 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 7BD3820DA3 for ; Mon, 15 Aug 2022 23:35:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1660606541; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=f4bV4pg5qfI7MODxICvvonQuhRljk8XLa+9qPluYqt8=; b=ANP7ESBYJCi84MZhHSdYEUHyj7Ui2IZwldc20ZtBhUCG3nWDwQHFLBO+PCvOSr8QoisgzU SqFKfACWlIUjNp8R51ZaEIIZGNYpqj/rJjyRP58xcdSJQBUcMh5bPZP19s750hH9bUCPhk ohSTjWQlIAJMh8tvTW8b7r/BF3GRARM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1660606541; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=f4bV4pg5qfI7MODxICvvonQuhRljk8XLa+9qPluYqt8=; b=cfoH3CulazAh/qooez6YUectvVsaHPhzxerf0Yh68GOU7+OsWG/XX0zEFd6Oe7LnQVRijc GvOfZF1OAdadbDDg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id E66EB13A99 for ; Mon, 15 Aug 2022 23:35:40 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id zBHzJ0zY+mLQLgAAMHmgww (envelope-from ) for ; Mon, 15 Aug 2022 23:35:40 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 From: "NeilBrown" To: Linux NFS Mailing List Subject: Thoughts on mount option to configure client lease renewal time. Date: Tue, 16 Aug 2022 09:35:07 +1000 Message-id: <166060650771.5425.13177692519730215643@noble.neil.brown.name> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Currently the Linux NFS renews leases at 2/3 of the lease time advised by the server. Some server vendors (Not Exactly Targeting Any Particular Party) recommend very short lease times - as short a 5 seconds in fail-over configurations. This means 1.7 seconds of jitter in any part of the system can result in leases being lost - but it does achieve fast fail-over. If we could configure a 5 second lease-renewal on the client, but leave a 60 second lease time on the server, then we could get the best of both worlds. Failover would happen quickly, but you would need a much longer load spike or network partition to cause the loss of leases. As v4.1 can end the grace period early once everyone checks in, a large grace period (which is needed for a large lease time) would rarely be a problem. So my thought is to add a mount option "lease-renew=5" for v4.1+ mounts. The clients then uses that number providing it is less than 2/3 of the server-declared lease time. What do people think of this? Is there a better solution, or a problem with this one? NeilBrown