Project

General

Profile

Actions

Feature #9189

closed

Expose client identifying metadata to MDS, e.g. hostname

Added by John Spray over 9 years ago. Updated over 9 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
other
Tags:
Backport:
Reviewed:
Affected Versions:
Component(FS):
Labels (FS):
Pull request ID:

Description

Currently, when doing e.g. a "session ls" on an MDS's admin socket, we get client IDs and IP addresses. It would be much nicer for admins trying to identify/debug/kill bad sessions if we could also tell them a hostname or other friendly identifier for the client.

This could take the form of a metadata map<string,string> included in MClientSession. The client would by default populate it with 'hostname' (or fqdn?) and 'mountpoint' keys. It should also look for an environment variable (fuse) or mount flag (kernel) that would allow users to add/override metadata. Then on the MDS side keep this metadata in Session and use it when doing output for e.g. session ls or any future session management stuff.

Actions

Also available in: Atom PDF