- Notifications
You must be signed in to change notification settings - Fork 414
Using NFS mounted volumes for MacOSX #465
Conversation
| Thanks for the pull request, @devalih! I've created OSPR-3987 to keep track of it in JIRA. JIRA is a place for product owners to prioritize feature reviews by the engineering development teams. Feel free to add as much of the following information to the ticket:
All technical communication about the code itself will still be done via the GitHub pull request interface. As a reminder, our process documentation is here. |
jmbowman left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks potentially useful, just have some questions and comments. I see this is now the latest suggestion in docker/for-mac#1592 , would be interesting to see how much of an impact it has.
| docker-compose -f docker-compose-watchers-nfs.yml up -d | ||
| | ||
| dev.nfs.up: | check-memory ## Bring up all services with host volumes | ||
| docker-compose -f docker-compose.yml -f docker-compose-host-nfs.yml up -d |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you encounter any problems with an NFS equivalent of docker-compose-themes.yml, or just not need it? It would be nice to have that to keep functionality comparable to the default dev.up.
Also, you might find some of the changes introduced in https://github.com/edx/devstack/pull/463 useful, for starting just one service and its dependencies at a time (make dev.up.lms, etc.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm using a different theming strategy in my devstack, please feel free to add, change to my PR to align it with yours.
OmarIthawi left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @devalih for taking on this effort! It's been super annoying to run devstack on mac so far. I've added a couple of notes.
f57d667 to a254bfe Compare
OmarIthawi left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another quick review.
| Thank you @OmarIthawi |
| @jmbowman I'd love to know your thoughts about this PR, whether it looks like something that can be merged or refactored in the next couple of weeks. |
Co-Authored-By: Omar Al-Ithawi <i@omardo.com>
jmbowman left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, this can be merged as is; we need to make a few minor updates to match changes made since the PR was created, but we can do that in a separate PR later (since this doesn't change any existing behavior). I've created https://openedx.atlassian.net/browse/BOM-1194 to track that work.
| @devalih 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
| @OmarIthawi @devalih: We are considering deprecating this NFS functionality because:
Before I initiate deprecation, I was wondering if either of you could shed light on the improvements you are seeing.
Thank you! |
| Thanks @robrap. Summary: Please feel free to disable and remove this feature. Here's why:
I don't know if someone else is using NFS, so the DEPR process can be used just in case. |
| Thanks @OmarIthawi. This is useful context. Please confirm when you hear back from Ali. @jmbowman: It looks like you had run into the getcwd issue, but I haven't seen much noise around this. Thoughts? Do you think it might be fixed? |
| Summarizing from the DEPR working group discussion on this: the original osxfs Docker back end was replaced by gRPC-FUSE in Docker Desktop Community 2.4.0.0 (released on 2021-09-30), which largely eliminates the need for NFS mounts or other previous file synchronization hacks. |
To improve the performance issues found with both dev.sync.up and dev.up.
NFS is the best method we've found so far for the heavy Open edX devstack on MacOSX.
To use it, follow new README instructions on MacOS