Common Dataset Organization and Policy

This document covers the specific format and policies governing the shared datasets in /datasets, project GPFS space available on the login node lsst-dev01 and on all of the compute nodes of the Verification Cluster.

Format

All data added to /datasets must adhere to the following format (caps are tokens): /datasets/<camera>/[REPO|RERUN|PREPROCESSED|SIM|RAW|CALIB] | /datasets/REFCATS where

  • REPO = repo (butler root)
  • RERUN = REPO/rerun/PUBLIC | REPO/rerun/PRIVATE (processed results)
  • PUBLIC = <ticket>/PRIVATE | <tag>/PRIVATE (ex. ‘HSC-RC’; RFC needed for new tags)
  • PRIVATE = private/<user> | “” (see details below)
  • PREPROCESSED = preprocessed/<label>/ | preprocessed/<label>/<date>/ (ex. ‘dr9’)
  • SIM = <ticket>_<date>/ | <user>/<ticket>/
  • RAW = raw/<survey-name>/ (where actual files live)
  • CALIB = calib/default/ | calib/label/ (ex. master20161025)
  • REFCATS = refcats/<type>/<label> (ex. astrometry_net_data/sdss-dr8, htm/gaia_DR1_v1)

Some data resides within /datasets which does not adhere to this format; they are provided for general consumption though not as verification data. The following are currently exempted:

  • /datasets/all-sky
  • /datasets/public_html

Immutability/Sharing

NCSA is working on a simple procedure for making the data both shared and safe. The process is TBD (reiterating on the design to emphasize simplicity). Essentially, it consists of applying default DAC permission sets and GPFS immutability. Until the self-service commands are available, it is sufficient to ask Greg Daues to lock down or unlock a repo. Illustration:

Steps to add to datasets

  1. (you) RFC if necessary per policy
  2. (you) Ask for write access to a new rerun|new camera|ref cat| directory
  3. Directory created, write permissions given
  4. (you) Populate and organize data (as per policy), ask to have it locked down
  5. Sharing and immutability applied

Steps to modify/remove from datasets

  1. (you) RFC if necessary per policy
  2. (you) Ask for write access to existing rerun|new camera|ref cat| directory
  3. Write permissions given, immutability removed
  4. (you) Reorganize, ask to have it locked down
  5. Sharing and immutability reapplied (to parent directory, as applicable)

Policy

Formatting exists to make data sets easier to consume for the DM project at large. Policy exists to enforce the format and serves to inform whenever policy must change. The following policies serve to both enforce and inform:

  • /datasets Format Changes

    Future needs will certainly require format changes. We must go through the RFC process to change the format.

  • /datasets additions/changes/deletions

    • Additions / modifications / deletions of any non-private data requires an RFC (strictly for input for naming convention, organization, etc)
    • Additions / modifications /deletions of private data can be performed without a RFC

The RFC allows a gate to confirm that things are compliant and necessary. The RFC should include:

  • Description and reason for addition/change/deletion
  • Target top-level-directory for location of addition/change/deletion
  • Organization of data
  • Other necessary domain knowledge as identified by project members relating to the contents of the data

All local non-private data governed by this RFC must reside within /datasets proper; symbolic links to local non-private data residing on alternate file systems are prohibited. This does not prohibit the use of remote URI’s, when supported through the butler, that point to external public repos although this does require the RFC process for addition/deletion of the URI-repo. This is due to operational concerns including immutability, sharing permissions, developer change of positions / jobs, etc.

Responsibilities on ingest or maintenance

  • Ticket creator is responsible for butler-ization of dataset (or delegation of responsibility).
  • Responsibility for maintaining usable datasets is a DM-wide effort.

Regardless of the reason for the RFC (implementaiton or maintenance), as part of implementing the RFC, any relevant information from the RFC should be transfered to a human readable file located in the root level of the dataset called README.txt. There is no limit to how much information can be put in README.txt, however at the minimum, it should contain:

  • A description of the instrument and observatory that produced the data
  • The percieved purpose of the dataset
  • At least a high level summary of the selection criteria for the dataset
  • The primary point of contact for questions about the dataset. Name is sufficient, but email would be appreciated.
  • If preprocessed, a description of the preprocessed data products available
  • If a subset is preprocessed, a description of how the subset was created (and why)

Caveats / Implementation Details for PRIVATE

  • private/ is created with the sticky bit to allow user managed contents
  • private/ only contains symbolic links pointing out of datasets or contains sub directories containing symbolic links (for organization)
  • No data resides in private/ or subdirectories
  • No access or recovery is offered from private/ other than that provided by the target file system
  • It is a user responsibility to make the private rerun repo shared, or not, and allow, or disallow, sub rerun directories from other users
  • Data retention in private/ is not guaranteed (points to scratch, points to home and user leaves, user erroneously deletes repo, etc)
  • Data in private/ is not immutable
  • private/ entries do not require Jira tickets for creation/deletion/modification

In other words, if:

  • you need to do some private work that you don’t want to disappear, symlink into ~/.
  • you need to so some private work that does not fit into your home quota (to be 1TB), symlink to /scratch/ (180 days purge).
  • you need something to be maintained/shared/immutable/managed, create a ticket and move to PUBLIC.
  • you place actual data in private/, you will be asked to move/delete/clean it in some way.

Examples on Running Tasks with the Common Dataset

For each cameara, there is one single URI as the main butler repo root (/datasets/<camera>/repo).

Currently our task framework tools support putting outputs in a new repo by specifying a path (--output) or specifying a symbolic name for outputs to go to a common place (--rerun).

To use --rerun for private runs, you can create a link without a ticket: /datasets/hsc/repo/rerun/private/jalt/first_attempt -> /scratch/jalt/rerun_output_location and then you can run tasks:

processXXX.py /datasets/hsc/repo/ --rerun private/jalt/first_attempt ...