Symfony2 +Vagrant performance - running slow - speeding up?

后端 未结 3 1387
余生分开走
余生分开走 2021-01-03 10:58

I have started using vagrant with Symfony2.* to develop Web projects. I am using Windows, performance is very slow, because nfs mount isn\'t supported.

I\'ve put cac

3条回答
  •  猫巷女王i
    2021-01-03 11:20

    I've had the same performance problems, although with developing Drupal sites (also PHP based). Lately I've had quite some success by using the new rsync folder feature, which was introduced in Vagrant 1.5.

    If you're working with a large number of files (10.000 - 100.000), I experienced that the built-in rsync-auto feature had a hard time keeping up. Switching to this neat little plugin saved my day. Just as the vagrant rsync folder feature, the gatling rsync plugin also only provides a one way sync (host -> guest). Since a lot of Drupal tools and compass generate files on guest, this plugin will help to sync the changes from guest to host.

    If you're looking for a comparison: here you can find a recent benchmark blog post on rsync vs NFS.

提交回复
热议问题