Skip to content

guide: Using a shared cache in networked filesystems (NAS/NFS, etc) #4303

Description

@skshetry

Report

It seems that there have been more questions regarding NAS/NFS being slow. And the common fix that we suggest is to set index.dir and state.dir to a directory in a non-networked filesystem.

dvc config state.dir /path/to/state
dvc config index.dir /path/to/index

It'd be nice to have a page to mention this, say why we need to do this, etc.

Activity

  1. dberenbaum commented on Feb 10, 2023

    @dberenbaum
    Contributor

    @skshetry I think it can be part of #103?

    @jorgeorpinel Can we include this after we do the major cloud providers?

  2. shcheklein commented on Feb 27, 2023

    @shcheklein
    Contributor
  3. jorgeorpinel commented on Mar 8, 2023

    @jorgeorpinel
    Contributor

    Good idea (and it's a task in #2866). I can certainly start it, not sure how it will look as it's not technically a remote storage type but we'll see.

  4. added
    A: docsArea: user documentation (gatsby-theme-iterative)
    C: guideContent of /doc/user-guide
    on Mar 11, 2023
  5. dberenbaum commented on Mar 11, 2023

    @dberenbaum
    Contributor

    Good point, @jorgeorpinel. On second thought, I don't think it makes sense to mix it with #103 since it's not about remote storage, and NAS/NFS are simpler as remote storage (don't have to worry about checkouts, temp directories, sqlite databases, etc.).

    I think we need a page in the data management guide about caching, which could include:

  6. jorgeorpinel commented on Mar 12, 2023

    @jorgeorpinel
    Contributor

    A cache guide sounds more appropriate 👍🏼 NFS is already mentioned in the remote guide.

  7. dberenbaum commented on Apr 4, 2023

    @dberenbaum
    Contributor

    Now that it looks like we no longer need to recommend any specific setup for NFS, I'm not so sure this is needed. Closing for now, although maybe coming back to a cache guide in the future would make sense.

  8. shcheklein commented on Apr 4, 2023

    @shcheklein
    Contributor

    One item that might be important still for this scenario is using symlinks, not sure it's worth creating a separate page for this though.

  9. dberenbaum commented on Apr 4, 2023

    @dberenbaum
    Contributor

    @shcheklein One thought was to move https://dvc.org/doc/user-guide/how-to/share-a-dvc-cache to the bottom of https://dvc.org/doc/user-guide/data-management/large-dataset-optimization since I think they are both related to how to handle large amounts of data in the cache and cover most of these topics, but I wasn't sure the effort is worth it (edit: actually concern is not really about effort but whether it's impactful) to move more stuff around. WDYT?

  10. shcheklein commented on Apr 4, 2023

    @shcheklein
    Contributor

    Yep, not a huge priority. Also we can just always add a link from one thing to another- it's faster. I'm just worried that even in basic scenarios ppl might not be realizing that DVC is copying files. We used to have a warning in such cases in DVC but I don't think it exist anymore.

  11. added
    p2-nice-to-haveLess of a priority at the moment. We don't usually deal with this immediately.
    and removed
    p1-importantActive priorities to deal within next sprints
    on May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A: docsArea: user documentation (gatsby-theme-iterative)C: guideContent of /doc/user-guidep2-nice-to-haveLess of a priority at the moment. We don't usually deal with this immediately.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions