Hi All, Something I am thinking about doing is utilising the placement policy engine to insert custom metadata tags upon file creation, based on which fileset the creation occurs in. This might be to facilitate Research Data Management tasks that could happen later in the data lifecycle. I am also thinking about allowing users to specify additional custom metadata tags (maybe through a fancy web interface) and also potentially give users control over creating new filesets (e.g. for scientists running new experiments). So… pretend this is a placement policy on my GPFS driven data-ingest platform: RULE 'RDMTEST' SET POOL 'instruments’ FOR FILESET ('%GPFSRDM%10.01013%RDM%0ab34906-5357-4ca0-9d19-a470943db30a%RDM%8fc2395d-64c0-4ebd-8c71-0d2d34b3c1c0') WHERE SetXattr ('user.rdm.parent','0ab34906-5357-4ca0-9d19-a470943db30a') AND SetXattr ('user.rdm.ingestor','8fc2395d-64c0-4ebd-8c71-0d2d34b3c1c0') RULE 'DEFAULT' SET POOL 'data' The fileset name can be meaningless (as far as the user is concerned), but would be linked somewhere nice that they recognise – say /gpfs/incoming/instrument1. The fileset, when it is created, would also be an AFM cache for its ‘home’ counterpart which exists on a much larger (also GPFS driven) pool of storage… so that my metadata tags are preserved, you see. This potentially user driven activity might look a bit like this: - User logs in to web interface and creates new experiment - Filesets (system-generated names) are created on ‘home’ and ‘ingest’ file systems and linked into the directory namespace wherever the user specifies - AFM relationships are set up and established for the ingest (cache) fileset to write back to the AFM home fileset (probably Independent Writer mode) - A set of ‘default’ policies are defined and installed on the cache file system to tag data for that experiment (the user can’t change these) - The user now specifies additional metadata tags they want added to their experiment data (some of this might be captured through additional mandatory fields in the web form for instance) - A policy for later execution by mmapplypolicy on the AFM home file system is created which looks for the tags generated at ingest-time and applies the extra user-defined tags There’s much more that would go on later in the lifecycle to take care of automated HSM tiering, data publishing, movement and cataloguing of data onto external non GPFS file systems, etc. but I won’t go in to it here. My GPFS related questions are: When I install a placement policy into the file system, does the file system need to quiesce? My suspicion is yes, because the policy needs to be consistent on all nodes performing I/O, but I may be wrong. What is the specific limitation for having a policy placement file no larger than 1MB? Cheers, Luke. Luke Raimbach Senior HPC Data and Storage Systems Engineer The Francis Crick Institute Gibbs Building 215 Euston Road London NW1 2BE E: luke.raimbach@crick.ac.uk<mailto:luke.raimbach@crick.ac.uk> W: www.crick.ac.uk<http://www.crick.ac.uk/> The Francis Crick Institute Limited is a registered charity in England and Wales no. 1140062 and a company registered in England and Wales no. 06885462, with its registered office at 215 Euston Road, London NW1 2BE.
Yes, you can do this. In release 4.1.1 you can write SET POOL 'x' ACTION(setXattr(...)) FOR FILESET(...) WHERE ... which looks nicer to some people than WHERE ( ... ) AND setXattr(...) Answers: (1) No need to quiesce. As the new policy propagates, nodes begin using it. So there can be a transition time when node A may be using the new policy but Node B has not started using it yet. If that is undesirable, you can quiesce. (2) Yes, 1MB is a limit on the total size in bytes of your policy rules. Do you have a real need for more? Would you please show us such a scenario? Beware that policy rules take some cpu cycles to evaluate... So if for example, if you had several thousand SET POOL rules, you might notice some impact to file creation time. --marc of GPFS From: Luke Raimbach <Luke.Raimbach@crick.ac.uk> ... RULE 'RDMTEST' SET POOL 'instruments’ FOR FILESET ('%GPFSRDM%10.01013%RDM%0ab34906-5357-4ca0-9d19-a470943db30a%RDM%8fc2395d-64c0-4ebd-8c71-0d2d34b3c1c0') WHERE SetXattr ('user.rdm.parent','0ab34906-5357-4ca0-9d19-a470943db30a') AND SetXattr ('user.rdm.ingestor','8fc2395d-64c0-4ebd-8c71-0d2d34b3c1c0') RULE 'DEFAULT' SET POOL 'data' ... (1) When I install a placement policy into the file system, does the file system need to quiesce? My suspicion is yes, because the policy needs to be consistent on all nodes performing I/O, but I may be wrong. ... (2) What is the specific limitation for having a policy placement file no larger than 1MB? ...
I can see exactly where Luke’s suggestion would be applicable. We might have several hundred active research projects which would have some sort of internal identifier, so I can see why you’d want to do this sort of tagging as it would allow a policy scan to find files related to specific projects (for example). Simon From: Marc A Kaplan <makaplan@us.ibm.com<mailto:makaplan@us.ibm.com>> Reply-To: gpfsug main discussion list <gpfsug-discuss@gpfsug.org<mailto:gpfsug-discuss@gpfsug.org>> Date: Thursday, 18 June 2015 14:18 To: gpfsug main discussion list <gpfsug-discuss@gpfsug.org<mailto:gpfsug-discuss@gpfsug.org>>, "luke.raimbach@crick.ac.uk<mailto:luke.raimbach@crick.ac.uk>" <luke.raimbach@crick.ac.uk<mailto:luke.raimbach@crick.ac.uk>> Subject: Re: [gpfsug-discuss] Placement Policy Installation and RDM Considerations (2) Yes, 1MB is a limit on the total size in bytes of your policy rules. Do you have a real need for more? Would you please show us such a scenario? Beware that policy rules take some cpu cycles to evaluate... So if for example, if you had several thousand SET POOL rules, you might notice some impact to file creation time.
Hi Marc, Thanks for the pointer to the updated syntax. That indeed looks nicer. (1) Asynchronous policy propagation sounds good in our scenario. We don’t want to potentially interrupt other running experiments by having to quiesce the filesystem for a new one coming online. It is useful to know that you could quiesce if desired. Presumably this is a secret flag one might pass to mmchpolicy? (2) I was concerned about the evaluation time if I tried to set all extended attributes at creation time. That’s why I thought about adding a few ‘system’ defined tags which could later be used to link the files to an asynchronously applied policy on the home cluster. I think I calculated around 4,000 rules (dependent on the size of the attribute names and values), which might limit the number of experiments supported on a single ingest file system. However, I can’t envisage we will ever have 4,000 experiments running at once! I was really interested in why the limitation existed from a file-system architecture point of view. Thanks for the responses. Luke. From: Marc A Kaplan [mailto:makaplan@us.ibm.com] Sent: 18 June 2015 14:19 To: gpfsug main discussion list; Luke Raimbach Subject: Re: [gpfsug-discuss] Placement Policy Installation and RDM Considerations Yes, you can do this. In release 4.1.1 you can write SET POOL 'x' ACTION(setXattr(...)) FOR FILESET(...) WHERE ... which looks nicer to some people than WHERE ( ... ) AND setXattr(...) Answers: (1) No need to quiesce. As the new policy propagates, nodes begin using it. So there can be a transition time when node A may be using the new policy but Node B has not started using it yet. If that is undesirable, you can quiesce. (2) Yes, 1MB is a limit on the total size in bytes of your policy rules. Do you have a real need for more? Would you please show us such a scenario? Beware that policy rules take some cpu cycles to evaluate... So if for example, if you had several thousand SET POOL rules, you might notice some impact to file creation time. --marc of GPFS From: Luke Raimbach <Luke.Raimbach@crick.ac.uk<mailto:Luke.Raimbach@crick.ac.uk>> ... RULE 'RDMTEST' SET POOL 'instruments’ FOR FILESET ('%GPFSRDM%10.01013%RDM%0ab34906-5357-4ca0-9d19-a470943db30a%RDM%8fc2395d-64c0-4ebd-8c71-0d2d34b3c1c0') WHERE SetXattr ('user.rdm.parent','0ab34906-5357-4ca0-9d19-a470943db30a') AND SetXattr ('user.rdm.ingestor','8fc2395d-64c0-4ebd-8c71-0d2d34b3c1c0') RULE 'DEFAULT' SET POOL 'data' ... (1) When I install a placement policy into the file system, does the file system need to quiesce? My suspicion is yes, because the policy needs to be consistent on all nodes performing I/O, but I may be wrong. ... (2) What is the specific limitation for having a policy placement file no larger than 1MB? ... The Francis Crick Institute Limited is a registered charity in England and Wales no. 1140062 and a company registered in England and Wales no. 06885462, with its registered office at 215 Euston Road, London NW1 2BE.
(1) There is no secret flag. I assume that the existing policy is okay but the new one is better. So start using the better one ASAP, but why stop the system if you don't have to? The not secret way to quiesce/resume a filesystem without unmounting is fsctl <fsname> {suspend | suspend-write | resume}; (2) The policy rules text is passed as a string through a GPFS rpc protocol (not a standard RPC) and the designer/coder chose 1MB as a safety-limit. I think it could be increased, but suppose you did have 4000 rules, each 200 bytes - you'd be at 800KB, still short of the 1MB limit. (x) Personally, I wouldn't worry much about setting, say 10 extended attribute values in each rule. I'd worry more about the impact of having 100s of rules. (y) When designing/deploying a new GPFS filesystem, consider explicitly setting the inode size so that all anticipated extended attributes will be stored in the inode, rather than spilling into other disk blocks. See mmcrfs ... -i InodeSize. You can build a test filesystem with just one NSD/LUN and test your anticipated usage. Use tsdbfs ... xattr ... to see how EAs are stored. Caution: tsdbfs display commands are harmless, BUT there are some patch and patch-like subcommands that could foul up your filesystem. From: Luke Raimbach <Luke.Raimbach@crick.ac.uk> Hi Marc, Thanks for the pointer to the updated syntax. That indeed looks nicer. (1) Asynchronous policy propagation sounds good in our scenario. We don’t want to potentially interrupt other running experiments by having to quiesce the filesystem for a new one coming online. It is useful to know that you could quiesce if desired. Presumably this is a secret flag one might pass to mmchpolicy? (2) I was concerned about the evaluation time if I tried to set all extended attributes at creation time. That’s why I thought about adding a few ‘system’ defined tags which could later be used to link the files to an asynchronously applied policy on the home cluster. I think I calculated around 4,000 rules (dependent on the size of the attribute names and values), which might limit the number of experiments supported on a single ingest file system. However, I can’t envisage we will ever have 4,000 experiments running at once! I was really interested in why the limitation existed from a file-system architecture point of view. Thanks for the responses. Luke.
participants (4)
-
James Davis -
Luke Raimbach -
Marc A Kaplan -
Simon Thompson (Research Computing - IT Services)
