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

Configurable media export and file synchronisation #10

Merged
merged 22 commits into from
Sep 27, 2017

Conversation

thisisandrew
Copy link
Contributor

https://ampersand.atlassian.net/browse/BESBAU-131

Adds 2 custom steps:

Media Export
-> rsyncs images to configurable location, logs output
-> MySQL reconnect is handled in core (n.b. wasn't hooked into previously - this is achieved simply by having a separate step)
Threshold Check
-> checks the read count of the previous step (i.e. what you're trying to export) is above a configurable threshold. Can create separate services injecting different thresholds (e.g. minimum products/attributes) which you just drop after the step you want to check (documentation on how to do this is in readme)
n.b. modules using this will need some config - https://github.com/AmpersandHQ/bes-akeneo/pull/57/files

@thisisandrew
Copy link
Contributor Author

dank00 and others added 4 commits September 26, 2017 16:33
by putting it onto the exception message directly
to match what is currently done manually
@convenient convenient merged commit 45a1b9d into master Sep 27, 2017
@convenient convenient deleted the feature/media-export branch September 27, 2017 14:44
@maraboshi
Copy link

@convenient @thisisandrew

Please note that rsync won't work on AWS where Magento shares the images using the EFS.

rsync is used because it can also copy just the difference instead the complete file or directory content, this behaviour does not work with NFS.

In BES we have full access on the server that hosts the NFS service, so we can rsync to the disk by using plain SSH from one server to another, then the server will also share that directory tree using NFS to the Magento servers.

In AWS we use EFS which is a service so rsync will just copy every time all the files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants