Re: [nfsv4] Possible change to Flex Files layout
David Noveck <davenoveck@gmail.com> Tue, 18 July 2017 12:24 UTC
Return-Path: <davenoveck@gmail.com>
X-Original-To: nfsv4@ietfa.amsl.com
Delivered-To: nfsv4@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 52176131B40 for <nfsv4@ietfa.amsl.com>; Tue, 18 Jul 2017 05:24:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level:
X-Spam-Status: No, score=-2.699 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cY9Rv2E-lcpK for <nfsv4@ietfa.amsl.com>; Tue, 18 Jul 2017 05:24:37 -0700 (PDT)
Received: from mail-it0-x22a.google.com (mail-it0-x22a.google.com [IPv6:2607:f8b0:4001:c0b::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 35305131905 for <nfsv4@ietf.org>; Tue, 18 Jul 2017 05:24:37 -0700 (PDT)
Received: by mail-it0-x22a.google.com with SMTP id h199so12181284ith.1 for <nfsv4@ietf.org>; Tue, 18 Jul 2017 05:24:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=VahKsND56faswfGB9wP9k4lK475skKa/mN2CA9K0M8A=; b=JRtAivnD3ppR9Ou8ZchlNjYmpYKEt18sbeGIAWA3VATW71m5IlhBG07LoolA7FXNFP QGf/wTDEShGZS7jeCTNjOLdEEVkaydD0LMYZXGWOoW7QoFy/LHkb1pW5KAY0zN+uteZs 9dEaPFm5H1FkVZBFo1wvQxOrhdIE4ldsoRropCn0l6CEn3ZQ5dMRXLkmL13IUByTGovP rd7TSDiCGh7pihmtpfQhLrv/EsDHjYUsSwhvSu2bNgfcGDIngEtuzrpPG4dpKqNxvyEH 3+4RRiu0a7dbOqF8zLcgCKr1nFSA1bhgIWkiPVc7neH2Sia7QW7CdOlaaCYDuOu95gqk uqSg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=VahKsND56faswfGB9wP9k4lK475skKa/mN2CA9K0M8A=; b=rHHDL3j88XnW+GBj0iu2xkA7/OblhVlojqMS/absAWBatWorkZWi+3m9F9N6Mp3Y5V UaxBuxYVUVPqOXqtinvuGm9Wox30eSeBzEg83Z+92rlZGsNOcG4TlPD3hUfm1lat51lM y6o74vj9AwV13AkljhFSBJSwCZCEGXd08EDv+e/o5qetQn/30AHhIeo1CE/dyDm5q1lL UXUSwUtsYf6CC5emBpVWx3NHa/fd5OpvWXLDMKahETubz/MyOrym0D2gOo/E/07/KgR1 7yQwdPWgacHTH4Z8PUcchicNGhAfjQ51sfWZBlB2vMj1COoSXR63QSLwmlSE9odj+yK/ RmoQ==
X-Gm-Message-State: AIVw110RDjxgp8LepBzh2ZKQuHbxz94k6qvvpmHd/yg/kebi4GahvgL9 WKz4IeL5KMkvte79yeMftpWXHhDaCQ==
X-Received: by 10.36.34.140 with SMTP id o134mr1726895ito.22.1500380676528; Tue, 18 Jul 2017 05:24:36 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.107.57.86 with HTTP; Tue, 18 Jul 2017 05:24:35 -0700 (PDT)
In-Reply-To: <B51ED720-CED2-4F9A-8FC6-16E6FB6683A0@primarydata.com>
References: <1244659329.10251491.1457494754382.JavaMail.zimbra@uoguelph.ca> <CAABAsM7hN_FSC7VUCvjOpCoJvii0PK7LvJjFy1u_dRiDtzxNZQ@mail.gmail.com> <2092494483.11935609.1457581578961.JavaMail.zimbra@uoguelph.ca> <CA+isNR+w9Qw39jfayOnmPsU74kF+-bEUL0qTG-esqA=p1QqUew@mail.gmail.com> <1985271727.13393755.1457659381248.JavaMail.zimbra@uoguelph.ca> <CA+isNRJbnPe+eFHw+k-kAii_2BcC5qiwA0oQEy31iKasoipPdQ@mail.gmail.com> <1344440686.14694101.1457748366315.JavaMail.zimbra@uoguelph.ca> <CA+isNRKnR8QdvDTk+_wcHJ2Gbg39PtR7kimG1SjUqt8aDgCQ6A@mail.gmail.com> <CADaq8jf-_mWr1ibLqq7UtyDTto2aOmY4YVTvAMSpVRaksRndQA@mail.gmail.com> <B51ED720-CED2-4F9A-8FC6-16E6FB6683A0@primarydata.com>
From: David Noveck <davenoveck@gmail.com>
Date: Tue, 18 Jul 2017 08:24:35 -0400
Message-ID: <CADaq8jeM6cZLKeVdJLeuBxW8Hk7oL2mcVudnPKUK7Xiev=B4Cw@mail.gmail.com>
To: Thomas Haynes <loghyr@primarydata.com>
Cc: Benny Halevy <bhalevy@gmail.com>, Rick Macklem <rmacklem@uoguelph.ca>, "nfsv4@ietf.org" <nfsv4@ietf.org>
Content-Type: multipart/alternative; boundary="001a1144d0ea40cb6d055496993d"
Archived-At: <https://mailarchive.ietf.org/arch/msg/nfsv4/hpPkgRTqQwywVsA6KEsDxYuMWt0>
Subject: Re: [nfsv4] Possible change to Flex Files layout
X-BeenThere: nfsv4@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: NFSv4 Working Group <nfsv4.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/nfsv4/>
List-Post: <mailto:nfsv4@ietf.org>
List-Help: <mailto:nfsv4-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/nfsv4>, <mailto:nfsv4-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 18 Jul 2017 12:24:39 -0000
Cool. On Tue, Jul 18, 2017 at 5:16 AM, Thomas Haynes <loghyr@primarydata.com> wrote: > > On Mar 12, 2016, at 4:34 PM, David Noveck <davenoveck@gmail.com> wrote: > > > Aside for the stability of written data there is the requirement for > visibility. > > Or at least potential requirements as to visibility. > > > That is, a clustered server needs to mimic as much as possible the > functional behavior of a monolithic server. > > True, but a lot of the deployments will not be clustered servers. In > fact, in many cases in which one is replicating data, the two replicas will > be far enough apart that a natural disaster is unlikely to simultaneously > affect both. > > In any case, pNFS does not strive to precisely emulate clustered server > semantics. Instead, it seeks to provide many of the benefits of clustered > operation, while allowing requirements that depend on the clients being > aware of the distributed nature of the arrangement. Use of LAYOUTCOMMIT > is an example. > > >With that in mind, the newly written data is visible to all clients in a > monolithic server regardless if its stable_how value. The application level > relies on that for close-to-open semantics. > > True. > > > This implies that in a clustered server configuration with multiple DSs, > the MDS must make sure all mirrored copies will return the new data before > the WRITE reply is sent. > > It would imply that if an MDS with multiple DS's were a clustered server > configuration. > > Since it isn't, I'd like us to consider how we might avoid a requirement > to immediately propagate writes to all replicas. Given that there may be > good reasons to have some of these hundreds or thousands of miles away from > the others, I think we want to avoid a situation in which the client writes > to the closest replica but has to wait for all replicas to receive and > reply to the write. This adds a latency of 16μs/mi based on > the distance to the farthest replica. > > I'm thinking we need something like the following to deal with this issue: > > When stable writes are done to the MDS or to a single replica (if allowed > by the appropriate layout flag), it is the responsibility of the receiving > node to propagate the written data stably, before replying to the client. > > In the corresponding cases in which unstable writes are done, the > receiving node does not have any such obligation, although it may choose to > asynchronously propagate the updates. However, once a COMMIT is replied > to, all replicas must reflect the writes that have been done, and these > data must have been committed to stable storage on all replicas. > > In order to avoid situations in which stale data is read from replicas to > which writes have not been propagated: > > > > - A client which has outstanding unstable writes made to single node > (MDS or DS) MUST do all reads from that same node. > - When writes are flushed to the server, for example to implement, > close-to-open semantics, a COMMIT must be done by the client to ensure that > up-to-date written data will be available irrespective of the particular > replica read. > > > > > > Better late than never, draft-11 will encompass Rick’s change > for FF_FLAGS_WRITE_ONE_MIRROR, your change above, and my change for error > handling in this case. > > > > >
- [nfsv4] Possible change to Flex Files layout Rick Macklem
- Re: [nfsv4] Possible change to Flex Files layout Trond Myklebust
- Re: [nfsv4] Possible change to Flex Files layout Rick Macklem
- Re: [nfsv4] Possible change to Flex Files layout Benny Halevy
- Re: [nfsv4] Possible change to Flex Files layout Rick Macklem
- Re: [nfsv4] Possible change to Flex Files layout Benny Halevy
- Re: [nfsv4] Possible change to Flex Files layout Rick Macklem
- Re: [nfsv4] Possible change to Flex Files layout Benny Halevy
- Re: [nfsv4] Possible change to Flex Files layout David Noveck
- Re: [nfsv4] Possible change to Flex Files layout Matt Benjamin
- Re: [nfsv4] Possible change to Flex Files layout Rick Macklem
- Re: [nfsv4] Possible change to Flex Files layout Rick Macklem
- Re: [nfsv4] Possible change to Flex Files layout Benny Halevy
- Re: [nfsv4] Possible change to Flex Files layout Rick Macklem
- Re: [nfsv4] Possible change to Flex Files layout Trond Myklebust
- Re: [nfsv4] Possible change to Flex Files layout Thomas Haynes
- Re: [nfsv4] Possible change to Flex Files layout David Noveck
- Re: [nfsv4] Possible change to Flex Files layout Rick Macklem