Linux NFS development
 help / color / mirror / Atom feed
From: "J. Bruce Fields" <bfields@fieldses.org>
To: Trond Myklebust <trond.myklebust@primarydata.com>
Cc: Chuck Lever <chuck.lever@oracle.com>,
	"Adamson, Andy" <William.Adamson@netapp.com>,
	Martin Houry <martinhoury@gmail.com>,
	Linux NFS Mailing List <linux-nfs@vger.kernel.org>
Subject: Re: "Re: [PATCH RFC Version 1 0/6] Request for Comment: NFS4.1 Session Trunking"
Date: Thu, 18 Feb 2016 09:14:47 -0500	[thread overview]
Message-ID: <20160218141447.GB4256@fieldses.org> (raw)
In-Reply-To: <CAHQdGtRO8e7LF_2E9hcSV90CsbbfkboX9VOUSiuQWRBs_EBGLA@mail.gmail.com>

On Wed, Feb 17, 2016 at 06:55:43PM -0500, Trond Myklebust wrote:
> On Wed, Feb 17, 2016 at 5:52 PM, Chuck Lever <chuck.lever@oracle.com> wrote:
> >
> >> On Feb 17, 2016, at 5:35 PM, Adamson, Andy <William.Adamson@netapp.com> wrote:
> >> The fs_locations would need to be requested by the client. I guess we reqest them at every mountâ€Ķ.
> >
> > Yep, and fetch them again every so often. There's no real
> > cache coherency protocol for this information. (That's
> > where a pNFS layout might be more valuable).
> 
> If your goal is to do session trunking, you only really need to check
> the fs_locations attribute on the root file system. (so
> GETROOTFH+GETATTR(fs_locations)). That's the natural place for a
> server to advertise its full set of IP addresses, and the session
> trunking protocol itself will allow you to winnow out any that might
> belong to a replica server.

I worry that round-robin could behave really badly if the client's path
to the two IP addresses have different performance characteristics.  But
a server should probably still be allowed to advertise those as replicas
(e.g.  maybe a slower interface is usable as a fallback?).

So maybe we should be careful about making this automatic.  Unless the
load-balancing is a little smarter than pure round robin.  Or unless we
can get some more fine-grained information (maybe someone could use
fs_location_info's preference information for this?).

--b.

> 
> You might want to refresh that info whenever the connection goes away
> on one or more addresses without a reboot so you can detect when NICs
> are going away.
> 
> Otherwise, polling every couple of hours or so for new NICs shouldn't
> be too burdensome...
> 
> Cheers,
>  Trond

  reply	other threads:[~2016-02-18 14:14 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-17 10:31 "Re: [PATCH RFC Version 1 0/6] Request for Comment: NFS4.1 Session Trunking" Martin Houry
2016-02-17 14:50 ` Adamson, Andy
2016-02-17 16:34   ` J. Bruce Fields
2016-02-17 17:49     ` Adamson, Andy
2016-02-17 18:44       ` J. Bruce Fields
2016-02-17 19:57         ` Adamson, Andy
2016-02-17 19:06   ` Chuck Lever
2016-02-17 20:59     ` J. Bruce Fields
2016-02-17 22:35       ` Adamson, Andy
2016-02-17 22:52         ` Chuck Lever
2016-02-17 23:55           ` Trond Myklebust
2016-02-18 14:14             ` J. Bruce Fields [this message]
2016-02-18 14:38               ` Martin Houry
2016-02-18 18:32               ` Trond Myklebust
2016-02-18 19:41                 ` Adamson, Andy
2016-02-18 20:39                   ` J. Bruce Fields
2016-02-18 21:29                     ` Chuck Lever
2016-02-19 15:01                       ` J. Bruce Fields
2016-02-19 16:29                         ` Chuck Lever
2016-02-18 14:05           ` J. Bruce Fields
2016-02-18 11:28   ` Martin Houry

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20160218141447.GB4256@fieldses.org \
    --to=bfields@fieldses.org \
    --cc=William.Adamson@netapp.com \
    --cc=chuck.lever@oracle.com \
    --cc=linux-nfs@vger.kernel.org \
    --cc=martinhoury@gmail.com \
    --cc=trond.myklebust@primarydata.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox