0

I have a very large site I'm attempting to migrate from D7 to D8 but am experiencing significant performance issues. We have around 35,000 users, so I don't expect this to be fast, but if I don't make any changes the migration will take several weeks to complete which is obviously not an option considering we can't shut down our site for multiple weeks... Here's my experience so far

I ran a test migration of the site via the UI which ended up stalling out when processing the d7_entity_reference_translation:user__user migration. I ended up having to use drush to finish out the migration via drush migrate-import.

After cleaning everything up post-migration (took about a week), we decided that it would be better to just keep this instance up and running and only re-migrate users and their data before going live considering that's the only data that will have changed since the initial migration. Specifically, we plan on running these user-data related migrations using drush: d7_user, d7_entity_reference_translation:user__user, d7_google_analytics_user_settings, and d7_legal_accepted.

  • The d7_user migration took about 14 hours, not great, but it was consistent and worked.
  • The d7_entity_reference_translation:user__user translation is where we ran into performance issues. During the first hour, it processed about 3000 users (on par with the rate d7_user migrated. However, it's slowly become slower and slower. Currently, I am sitting at the 24 hour mark and it's only processed 25K users and in the last 3.5 hours it only processed 2000 users. Therefore, it started at a rate of about 3000/hr, and after 24 hours it's down to only about 500/hr.

I've attempted the following and seen some improvements, but nothing significant:

  • Increased the max_execution_time in php.ini settings to around 600 seconds instead of 60 (little difference)
  • Increased the memory_limit up from 128M to a few GBs (note, this instance is isolated to just this task at the time, so it's okay for us to use more memory). This seemed to work a little, but obviously not enough.

What other adjustments can be made or tips anyone might have to mitigate this performance issue?

3
  • Look into drupal.org/sandbox/onkeltem/2828817 – Ryan Hartman Apr 2 at 21:38
  • 1
    FWIW I checked the moderation tools after seeing your bounty notice - there's no pattern of any person (or persons) downvoting your questions. You can safely assume they're from multiple different, unrelated people. I understand that won't help with the frustration of receiving downvotes, but at least you know you're not being targeted – Clive Apr 3 at 15:14
  • I can confirm what @Clive said: There is nobody who is taking your questions as personal issue. Furthermore, down-votes on questions don't stop users from answering them. – kiamlaluno Apr 4 at 11:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.