Skip to content

Commit

Permalink
Merge pull request netgen#38 from netgen/tune_nfs_params
Browse files Browse the repository at this point in the history
adding several nfs mount params for better performance
  • Loading branch information
emodric committed Jul 28, 2017
2 parents 58101b2 + 6a34342 commit a06d40b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Vagrantfile-nfs
Expand Up @@ -41,9 +41,13 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# argument is a set of non-required options.
if OS.windows?
config.vm.synced_folder "./ezpublish", "/var/www/ezpublish", type: "nfs"
elsif OS.mac?
config.vm.synced_folder "./ezpublish", "/var/www/ezpublish",
mount_options: ["noatime,intr,nordirplus,nolock,async,noacl,fsc,tcp"],
type: "nfs"
else
config.vm.synced_folder "./ezpublish", "/var/www/ezpublish",
mount_options: ["noatime,intr,rdirplus"],
mount_options: ["noatime,intr,nordirplus,nolock,async,noacl,fsc,tcp"],
type: "nfs"
end

Expand All @@ -59,6 +63,8 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|

# Use VBoxManage to customize the VM. For example to change memory:
vb.customize ["modifyvm", :id, "--memory", "2048"]
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"]
end

if OS.windows?
Expand Down

0 comments on commit a06d40b

Please sign in to comment.