You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@usergrid.apache.org by sn...@apache.org on 2014/10/20 15:47:16 UTC

[48/50] [abbrv] git commit: Fixes cassandra heap

Fixes cassandra heap


Project: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/commit/f7b75139
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/f7b75139
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/f7b75139

Branch: refs/heads/two-dot-o-events
Commit: f7b751393b50c357ec3061f19009220aa9beae09
Parents: fc6ac11
Author: Todd Nine <to...@apache.org>
Authored: Fri Oct 17 20:06:46 2014 -0600
Committer: Todd Nine <to...@apache.org>
Committed: Fri Oct 17 20:06:46 2014 -0600

----------------------------------------------------------------------
 stack/awscluster/src/main/dist/init_instance/install_cassandra.sh | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/f7b75139/stack/awscluster/src/main/dist/init_instance/install_cassandra.sh
----------------------------------------------------------------------
diff --git a/stack/awscluster/src/main/dist/init_instance/install_cassandra.sh b/stack/awscluster/src/main/dist/init_instance/install_cassandra.sh
index 280ae40..0e7c465 100644
--- a/stack/awscluster/src/main/dist/init_instance/install_cassandra.sh
+++ b/stack/awscluster/src/main/dist/init_instance/install_cassandra.sh
@@ -39,6 +39,9 @@ cd /usr/share/usergrid/scripts
 groovy registry_register.groovy cassandra
 groovy wait_for_instances.groovy cassandra ${CASSANDRA_NUM_SERVERS}
 
+#Set or min/max heap to 8GB
+sed -i.bak s/calculate_heap_sizes\(\)/MAX_HEAP_SIZE="8G"\\nHEAP_NEWSIZE="1200M"\\n\ncalculate_heap_sizes\(\)/g /etc/cassandra/cassandra-env.sh
+
 cd /usr/share/usergrid/scripts
 groovy configure_cassandra.groovy > /etc/cassandra/cassandra.yaml
 /etc/init.d/cassandra start