Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change all :delegated mounts to :cached mounts to preserve existing behavior of mounts #204

Merged
merged 2 commits into from
Aug 2, 2020

Conversation

davidalger
Copy link
Collaborator

@davidalger davidalger commented Aug 2, 2020

This PR changes all :delegated usages in docker-compose configuration files to :cached which currently functions identically to :delegated and has been noted as the BC way to preserve existing behavior of delegated mounts when the new Mutagen based :delegated implementation reaches the stable channel.

Reference https://docs.docker.com/docker-for-mac/mutagen/, docker/for-mac#1592. docker/for-mac#4590 for details. As of Docker Desktop Edge 2.3.2.0 the :delegated flag on a shared volume will automatically enable synchronization (via Mutagen) dramatically changing the expected and natural behavior of currently delegated mounts. Warden is currently using delegated mounts to specifically mount into containers things which should not be synced via Mutagen too avoid a performance penalty (large quantities of media files) and as a default for mount on Mac OS systems for better default performance characteristics where Mutagen syncs are not implemented.

Given that :cached and :delegated apparently have identical implementations currently (despite Docker documentation making a distinction) the use of :cached will not functionally change anything but will allow Warden to be forward compatible with changes seen on the horizon on Docker Desktop Edge channel.

…ehavior of mounts

Reference https://docs.docker.com/docker-for-mac/mutagen/, docker/for-mac#1592. docker/for-mac#4590 for details. As of Docker Desktop Edge 2.3.2.0 the :delegated flag on a shared volume will automatically enable synchronization (via Mutagen) dramatically changing the expected and natural behavior of currently delegated mounts. Warden is currently using delegated mounts to specifically mount into containers things which should not be synced via Mutagen too avoid a performance penalty (large quantities of media files) and as a default for mount on Mac OS systems for better default performance characteristics where Mutagen syncs are not implemented.
@davidalger davidalger added the enhancement New feature or request label Aug 2, 2020
@davidalger davidalger added this to the Warden 0.8.2 milestone Aug 2, 2020
@davidalger davidalger merged commit 09dbb6d into develop Aug 2, 2020
@davidalger davidalger deleted the delegated-to-cache-mounts-on-darwin branch August 2, 2020 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant