Repository navigation
Host-mounted database files, fixes #208 - #337
Conversation
|
I have to say I'm getting wildly varying results from |
|
Going to kick the tires on this one. |
|
@rfay I encountered similar wild variance when working on the performance tests as well. At the time, I suspected the update to Edge didn't happen cleanly, but didn't pin it down exactly. I'm pretty sure that after performing a full docker reset, the variance stopped for me. |
|
I took this for a test spin with a clean Drupal 8 installation, and with a Commerce Kickstart installation, since I expect these two to be the most demanding. Overall, in terms of feel, I couldn't really discern much of a difference with the db data host-mounted. I poked around the admin UI watching times on the Network dev tool, and nothing really felt slower, nor did I see a big difference in the load times I was seeing. I also compared site installation of commerce kickstart, as its profile installation includes a migration of content from CSV. I posted the migration result and overrall install time here: https://docs.google.com/spreadsheets/d/1Ez9E9UTTbuwoOonqne_dfqauYYMfNMtybpiEWvLtLsE/edit#gid=0 There does seem to be an impact to write performance here, but I'm not sure if it's one we'll need to worry about, at least based on this case. We may want to try and identify some other write-intensive tasks developers might perform locally. Overall, the host mount seemed to add about 15s to the total installation, with notable but not drastic reductions in throughput on each of the migrations (number of nodes migrated per minute). |
|
My feeling is that this would be reasonable to move forward on, at least based on my experience briefly testing it. There is a performance impact using a host mount, but it is not as significant as I would have expected. With that said, this will involve some consideration to workflow changes:
|
|
@tannerjfco some answers:
Could be that we no longer need rm and stop only would be just fine. stop <= rm, rm rm. |
513b9db to
1240216
Compare
|
I'm mid-review, but wanted to respond to a recent question/comment about how to remove the db and what the future of |
SetupGoing off #337 (comment), I'm using artifacts from https://circleci.com/gh/drud/ddev/1128. Confirmed Performance Testing
Recommendations
|
f7334cc to
081d1bb
Compare
|
Regardless of if we proceed with this PR or not, there is a legitimate question regarding what the future of the
A future state of
The |
rickmanelius
left a comment
There was a problem hiding this comment.
Overall I'm 95% there on approving, but want to sit with it for just a moment. I think we've thought through all the implications and the performance (biggest conern) is negligibly affected. We would still need to file a ticket to address the future of remove, but that's not necessary to combine. Ultimately, this feature may save us from many a pissed off users that too quickly hit the nuclear button and lost hours/days of work. To that end, we may wish to consider moving the database storage to ~/.ddev/mysql and then using the ddev commands to remove them, further protecting from a repo deletion (which a user might not expect would contain the DB).
|
Remember that files are actually stored on disk with the repo, so really ddev has no business removing them. They actually might not even have been put there by ddev; I agree with making a difference between removing the config and removing the db, although people should probably already know how to remove the db in very traditional ways. But the magic of removing a folder could be wrapped in ddev. Also, that way we could make sure to stop the db container before we did it, which could help make less of a mess. |
|
I opened #340 as an alternative approach to this using named docker volumes. Personally, I feel like just relying on built in docker named volume functionality to achieve these goals rather than host mounting the DB directory is probably the way to go from a maintainability perspective. |
|
Nice! Similar to the review of this PR (#337), we'll want to see what the performance delta is as well as determine if this approach helps the end-user with data persistence (based on workflow). |
|
This was value for experimentation/feedback, but adopted a different approach in #340. Closing this one out. |
|
There were some while-I-was-there commits here that need to be grafted somewhere else, so I'll reopen this as a placeholder for getting those done. |
081d1bb to
02396fb
Compare
|
As we rework this can we make sure to pull in the language changes from https://github.com/drud/ddev/pull/349/files#diff-5c1b23b6448d5099a5a94f5b2b0685f2 ? We should make sure we're clear that ddev rm is no longer destructive. It should also probably not have a the prompt unless a remove |
…destructive remove
…ify no project vols
e2229d2 to
f83a62f
Compare
|
I rebased this against current master and triggered regular and nightly build jobs against it. IMO it just needs the
|
beeradb
left a comment
There was a problem hiding this comment.
Reading over the commits from the last few days + reviewing the MySQL docker work (https://github.com/drud/docker.mysql-local/pull/24) this looks to be ready to go.
I'm 👍 for bringing this in.
|
So it looks like there are two bullets requested by @rfay and then @tannerjfco can merge. Correct? |
|
I fixed the things I had concerns about. I guess it's probably ready. I can pull it when you think you're ready @rickmanelius unless Tanner does have something. |
|
@rfay At this time, I don't plan on a retest of the functionality from the end-user perspective unless you feel the underlying logic changed enough to warrant another pass through. |
The Problem:
OP #208 "Consider storing ddev db on host-mounted storage"
This is an experimental PR that allows people to experiment with the host-mounted database idea.
The Fix:
The Test:
You can try this out with the artifacts at https://circleci.com/gh/drud/ddev/1128#artifacts/containers/0
Please make sure to:
Automation Overview:
Related Issue Link(s):
Release/Deployment notes: