I got tremendous performance issues with Vagrant and Magento. I hope you might be able to help me out on this.
- Vagrant: 1.7.1
- Wordpress: 4.2.1
- Magento: 1.9.1
- Git version 1.7.10.4
- PHP 5.4.39-0+deb7u2 (cli)
- nginx/1.2.1
Vagrantfile:
Vagrant.configure(2) do |config|
config.vm.box = "puphpet/debian75-x64"
config.vm.network "private_network", type: "dhcp"
# config.vm.network :forwarded_port, host: 8080, guest: 80
config.vm.synced_folder "./www", "/vagrant/www", type: "rsync", rsync__exclude: ".git/"
config.vm.provider "virtualbox" do |v|
v.memory = 2048
v.cpus = 4
end
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
end
# config.vm.synced_folder "./www", "/vagrant/www", group: "www-data", owner: "www-data"
end
OK, so far so good. I cloned my GIT Repo into the shared folder. I'm using a Wordpress Installation with magento integration (MWI Plugin). As long as I am not activating the Magento Plugin all fine, Pageload is about 2 sec as soon as I use the Plugin things going up to 60 seconds.
I have no idea what is going wrong here, as for the git origin (live server) everything is fine.
I read a few posts about the synced folder topic. I sticked with rsync for now, seems to be the fastest option. I tried NFS as well. No real difference here.
I'm happy for any hints on this. Thanks a lot, Steven