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
Consider storing ddev db on persistent (local) storage #208
Comments
I think part of the motivation behind providing the "stop" command is to help alleviate this issue and allow shutting down the environment without data loss, but I do agree we should make it possible to retain the mysql data even if the containers are removed. This would likely be more in line with user expectations, and I would hate for people to lose data due to misunderstanding what rm currently does. Making this change does have some important considerations however:
In the meantime, we could probably add confirmation to ddev rm and warn of its destructive nature. |
A few thoughts:
Sounds like we need further investigation on LOE, OS compatibility, and performance before this can become prioritized and actionable. |
Additional thoughts:
|
Since we're in a research phase, we should get a sense of the performance impact and LOE to implement. |
Here are the results of some of Rick's favorite testing: D8 install:
After install, the general feel of the site was just fine with the host mount. I'm quite surprised that there was this little degradation (if there is any - hard to measure in this case) All that's required to change this is
|
Hi @rfay. Thanks for completing the performance tests and detailing out the specific requirements. I believe I'm tracking, but think it's important to reflect back what you're saying to ensure I don't have any gaps.
|
Two next actions before I think we can make a decision on this:
|
It's pretty easy to do an experimental PR for this if that will help sort things. |
Reviewing. Providing some resources for those that are following along https://docs.docker.com/engine/tutorials/dockervolumes/. |
After a quick scan of the Docker documentation, I'm actually biasing towards the Docker Volumes approach. A couple key points:
|
I realize we're bouncing around the conversation between multiple PRs and the issue summary. Regardless of the approach, we still need to figure out the fate of the Proposed next actions:
Regardless, unless there is a major reason to adopt the non-docker approach, I think we gained a lot from both PRs but we should go in that direction. |
Not done yet, done & redone and reverted, still needs work. |
What happened (or feature request):
Feature request: Store ddev db on persistent storage
So far I've destroyed a lot lot lot of sites. I've imported databases, and imported files Things work OK. But then I destroy them. And they aren't there when I want them.
My workflow in the past has always been to have many of my sites in dev form on my Mac workstation, always easily accessible. Even if I destroy a site the database is still in my mysql db. So I haven't been able to wean myself from that so far, because I know that at any moment I might destroy all my ddev containers.
Could we consider moving to persistent storage to avoid this?
I was reminded of this by Ten Things to Avoid in Docker Containers. NUMBER 1 is "Don’t store data in containers". We know that's going to be an issue in other products... but lo and behold I think it's an issue in ddev.
What you expected to happen:
How to reproduce it (as minimally and precisely as possible):
Anything else do we need to know:
Related source links or issues:
The text was updated successfully, but these errors were encountered: