vagrant and ansible adjustments i had to make in order to run it on a box with only 4gb of RAM
diff --git a/ansible/roles/biocache-db/tasks/main.yml b/ansible/roles/biocache-db/tasks/main.yml
index 93314e1..d8d2cb2 100644
--- a/ansible/roles/biocache-db/tasks/main.yml
+++ b/ansible/roles/biocache-db/tasks/main.yml
@@ -4,9 +4,6 @@
# - include: ../../common/tasks/cassandra.yml
# - include: ../../common/tasks/nameindex.yml
-- name: disable swap
- shell: "sudo swapoff --all"
-
- name: copy transient files to tmp (schemas etc)
copy: src={{item}} dest=/tmp
with_items:
diff --git a/ansible/roles/biocache/tasks/main.yml b/ansible/roles/biocache/tasks/main.yml
index f9dae48..8a25ca5 100644
--- a/ansible/roles/biocache/tasks/main.yml
+++ b/ansible/roles/biocache/tasks/main.yml
@@ -33,9 +33,6 @@
notify:
- restart cassandra
-- name: disable swap
- shell: "sudo swapoff --all"
-
- name: copy transient files to tmp (schemas etc)
copy: src={{item}} dest=/tmp
with_items:
diff --git a/ansible/roles/tomcat/vars/main.yml b/ansible/roles/tomcat/vars/main.yml
index e7d06e4..6a15f86 100644
--- a/ansible/roles/tomcat/vars/main.yml
+++ b/ansible/roles/tomcat/vars/main.yml
@@ -23,7 +23,7 @@ java: java-1.7.0-openjdk-devel
#
#local_repo_dir: "~/.ala-ansible"
-tomcat_java_opts: -Xmx2g -Xms2g -XX:MaxPermSize=256m -Xss256k
+tomcat_java_opts: -Xmx1g -Xms1g -XX:MaxPermSize=256m -Xss256k
cassandra_user: cassandra
diff --git a/vagrant/ubuntu/Vagrantfile b/vagrant/ubuntu/Vagrantfile
index 1002287..84b4128 100644
--- a/vagrant/ubuntu/Vagrantfile
+++ b/vagrant/ubuntu/Vagrantfile
@@ -10,7 +10,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# these machines require some memory to operate the apps
config.vm.provider "virtualbox" do |v|
- v.memory = 4096
+ v.memory = 2048
end
# totally insecure, but this is local dev: make the vagrant default the root key