Magento – Recommended developer environments

developmentmagento2performance

I'm aware this might not fall strictly into the stack exchange rules, however there seems to be growing frustration within the magento 2 world of development, but somewhere needs to try help people as the magento team are always shutting down tickets regarding performance.

This question is not about performance on production servers, so please no recommendations for things like varnish, redis, minifying/concatenating files etc.

What have people found to be the most optimal setups for having a fast streamlined magento 2.2+ development environment, for both Windows and OSX.

Keeping in mind the following

  • Docker
  • Vagrant
  • Mamp/Wamp
  • Native binaries with apache/nginx
  • Grunt/Asset generation performance
  • Postgres, MySQL, Maria etc

Personally we've found they've all been slow in the ways we've attempted, including using Laravel Valet, Vagrant, OSX apache/php-fcgi – and they're all terrible.

What have others found to be good setups as certain users seem to think we all must just be doing it wrong, without shedding any light onto their solutions.

Best Answer

My solution is migrating to Linux without virtualization.

Equip:

  • ProBook 470 G0
  • i5 3230 IvyBridge (quite powerful but outdated)
  • RAM 12GB (8+4)
  • Kingston SSDNOW v300 120GB (for OS and servers) + HDD 500 (no matter in this case)

Env:

  • Ubuntu 16.04
  • Mysql or MariaDb or Percona
  • PHP-FPM 7.1
  • XDebug 2.6
  • PHPSTORM 17.3

Results (reloading homepage)

Preconditions:

  • Magento CE 2.2.3 with sample data
  • no custom modules
  • cache disabled
  • after static content deploy -f

with xdebug enabled ~10 seconds

with xdebug disabled ~7 seconds

And this is 3 times faster than it was on windows.

P.S. I'm not sure this is the best solution, but I feel much better after doing that. I also was wondered that nginx allows to run different php-fpm-es depending on hosts settings. this is really cool. Now I even don't need to switch between PHP versions.

Related Topic