-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Acquia Recipe Performance Issues #10
Comments
I'm having a similar experience to @mikemadison13. We're in the middle of upgrading from d8 to d9 and decided to try out the Acquia recipe (since we have to revise our .lando.yml either way) but it's incredibly slow right from the start. Page load time is several minutes, cim sync and other drush commands are equally slow, and there seem to be some other oddities where "lando pull" doesn't seem to behave as expected when specifying an environment database even when using the --on-demand flag; it seems to be copying an old DB backup instead of copying the current active DB for the specified environment. I was previously testing the d9 recipe and it seemed to have much better performance. I wonder if it's the settings I have in the landofile? I have memcache turned off but I didn't think it would make a huge difference. This is still an experiment in progress for us. I'm using: here's the lando file that I'm playing with:
|
@mikemadison13 to be clear, are you switching over that linked Landofile to be the Both of you seem savvy so you probably already know this, but make sure you've read through the Lando performance tips: https://docs.lando.dev/config/performance.html#performance |
i've basically:
|
I noticed a slow down as well and tracked it down to memcache. On the memcache conditional, I had to add an |
I don't have any memcache config in my .lando file, so I guess if Acquia is standing up a memcache container and I need something, that could be it? |
The Acquia recipe has a memcache container. This is the most recent Acquia documentation for memcache, https://docs.acquia.com/cloud-platform/performance/memcached/enable/ And on settings.php, the if will be valid, if (file_exists('/var/www/site-php')) {
require('/var/www/site-php/mysite/mysite-settings.inc');
// Memcached settings for Acquia Hosting
if (file_exists(DRUPAL_ROOT . '/sites/default/cloud-memcache-d8+.php')) {
require(DRUPAL_ROOT . '/sites/default/cloud-memcache-d8+.php');
}
} The file, the first thing it has is, if (getenv('AH_SITE_ENVIRONMENT') &&
array_key_exists('memcache', $settings) &&
array_key_exists('servers', $settings['memcache']) &&
!empty($settings['memcache']['servers'])
) { What I've had to do to regain performance is modify it to add The link to cloud-memcache-d8+.php is https://docs.acquia.com/_downloads/cloud-memcache-d8+.php |
The memcache service in If you install the memcache modules that come with the acquia recipe and go to With the settings adjusted, the memcache service is working: Adjusting this cut my page load times in half. This has been addressed in this PR: #25 We will merge and cut a new release soon. |
@labboy0276 thank you for the fix! I hadn’t dug that deep. Just had tracked it down to ‘memcache’ and had a workaround. |
@rubenvarela your insight combined with @cdubz's PR was the key to figuring it out, so thanks for the work tracking it down...this is how open source is supposed to work! |
What @rubenvarela pointed out here is very very problematic for anyone that doesn't want memcache enabled. Since Lando sets The only way I can think is to unset
I'm still testing to see if there are side affects to this. |
I'll open a separate issue. EDIT: Created: #84 |
Tell us about your setup
What is your lando version and operating system? (note that the older your version the less likely we are to reply)
Tell us about your
.lando.yml
See https://github.com/Drupal4Gov/Drupal-GovCon-2017/blob/develop/.lando.yml
Tell us about the command you were running
This project has been using the drupal9 recipe for quite some time and we recently swapped to the Acquia recipe to help test. While things "work" what I'm noticing is that after running the VM / running commands in the VM (like automated tests, code linting, etc.) the VM just starts to crawl and becomes unresponsive. Pages won't load, commands seemingly silently fail (they just hang forever). If I destroy the VM and swap back to the drupal9 recipe I don't experience this. Nothing else changes other than the recipe (and the settings for the database, of course).
I've tried a fair bit of troubleshooting when this happens.... restart Lando, restart Docker, restart the computer, destroy and rebuild the vm, etc. The behavior is consistent with the Acquia recipe (and consistently not a problem with the drupal9 recipe).
Please detail the steps we can take to replicate this bug. Be as detailed as possible.
This bug is preventing me from using the acquia recipe.
The text was updated successfully, but these errors were encountered: