Open pirog opened 4 years ago
Re drushy sql dump for WP, we might be able to leverage https://developer.wordpress.org/cli/commands/db/export/ to see if it is any faster than straight Terminus
@dustinleblanc i did try that out and terminus remote:wp -- db export
is def faster so i think generally we want to be using terminus to remote execute the dump commands
Do Pantheon even share their images publicly? Would getting that sorted out be a pre-req' for anything else?
We're working on that
On Wed, Jun 24, 2020 at 3:27 PM Dave Hansen-Lange notifications@github.com wrote:
Do Pantheon even share their images publicly? Would getting that sorted out be a pre-req' for anything else?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/lando/lando/issues/2371#issuecomment-649020486, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA6ECCBTKZEBUXHFGAUQTVTRYJHRPANCNFSM4NYRDV2A .
Terminus does have a wrapper for rsync. See https://github.com/pantheon-systems/terminus-rsync-plugin. That said, this would need to be installed as a plugin.
@uberhacker good to know.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions and please check out this if you are wondering why we auto close issues.
Not stale.
@pirog should we close this out in favor of more current v2 planning?
To move forward on this would you want to dust this ticket off, or start a fresh-for-2024 and close this out again?
I think we will want to spin up a new ticket. We have Lando 4 service stuff coming out VERY soon which will allow us to start updating all current v3 services.
We have two other integrations rolling now. These both use their own images and have baked in tooling that is very useful for local dev (eg pulling down data and files).
The current Pantheon recipe does not really work like this. Instead we maintain our own mock images and some wrapper scripts around
terminus
to achieve similar results. This definitely works OK but is significantly disadvantaged from the way the other two integrations work in the following ways:It would be so cool to update the current or create a new Pantheon v2 recipe that worked in a similar way to the amazee and platform.sh recipes. This would provide a a more reliable and truer integration and also allow us to focus on more Lando-centric features eg PLD instead of platform parity.
Roughly, i think the two biggest things to do here would be to:
1. Use Pantheon images if possible
Have Lando use Pantheon Docker images if applicable.
The biggest engineering concern here would be making sure Lando has awareness of Fedora/RHEL/Centos containers. Currently Lando only knows how to handle
debian
andalpine
containers. This likely would not be a significant undertaking but its definitely something we would have to handle.2. Improve
terminus
for local considerationsGrabbing the Database
It would be awesome for
terminus
to have a way to stream a sql dump like howdrush sql-dump
works with a Pantheon alias.Currently Lando uses
drush sql-dump
if it can but falls back to themysql_command
provided byterminus connection:info
if it needs to.We do it this way because connecting via
terminus connection:info $SITE.$DATABASE --field=mysql_command
and runningmysqldump
directly is significantly slower than usingdrush sql-dump
. Our users demand speed so in this case we try to give it to them, however, we sacrifice a bit of stability by having complex database pull logic. It would be awesome ifterminus
could stream the database dump as fast asdrush
does so we have ONE DB DUMP command we could use acrossframeworks
.Here is some data on using both on a vanilla D7 database.
This difference grows as the database size increases and it also means that all
wordpress
frameworks are slow by default.@dustinleblanc after having revisited this after a year or so we might want to consider switching to that last
terminus remote:thing
method. I feel like that might be both more stable and faster.Pulling files
It would also be great if
terminus
had a wrapper forrsyncing
files to/from Pantheon although this is not nearly as a big a problem as the database.