]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
Reduce VM memory consumption 43/head
authorSébastien Han <sebastien.han@enovance.com>
Fri, 14 Mar 2014 09:47:06 +0000 (10:47 +0100)
committerSébastien Han <sebastien.han@enovance.com>
Fri, 14 Mar 2014 09:47:06 +0000 (10:47 +0100)
We now have 7 virtual machines in the Vagrant sandbox. This takes a lot
of memory. This might be a problem for some laptop and whon't help
testings.

Signed-off-by: Sébastien Han <sebastien.han@enovance.com>
Vagrantfile

index bd2989227eb3369a046752029b4dde8e3655408d..0331e933711f2d21c4afae826ad7a3e6295ff431 100644 (file)
@@ -11,12 +11,18 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
   config.vm.define :rgw do |rgw|
     rgw.vm.network :private_network, ip: "192.168.0.2"
     rgw.vm.host_name = "ceph-rgw"
+    rgw.vm.provider :virtualbox do |vb|
+      vb.customize ["modifyvm", :id, "--memory", "192"]
+    end
   end
 
   (0..2).each do |i|
     config.vm.define "mon#{i}" do |mon|
       mon.vm.hostname = "ceph-mon#{i}"
       mon.vm.network :private_network, ip: "192.168.0.1#{i}"
+      mon.vm.provider :virtualbox do |vb|
+        vb.customize ["modifyvm", :id, "--memory", "192"]
+      end
     end
   end
 
@@ -29,6 +35,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
         osd.vm.provider :virtualbox do |vb|
           vb.customize [ "createhd", "--filename", "disk-#{i}-#{d}", "--size", "1000" ]
           vb.customize [ "storageattach", :id, "--storagectl", "SATA Controller", "--port", 3+d, "--device", 0, "--type", "hdd", "--medium", "disk-#{i}-#{d}.vdi" ]
+          vb.customize ["modifyvm", :id, "--memory", "192"]
         end
       end
     end