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:17 UTC

[49/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/ee0f28c7
Tree: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/tree/ee0f28c7
Diff: http://git-wip-us.apache.org/repos/asf/incubator-usergrid/diff/ee0f28c7

Branch: refs/heads/two-dot-o-events
Commit: ee0f28c7a55b6e6d986b74fdb696e80fb6116fd3
Parents: f7b7513
Author: Todd Nine <to...@apache.org>
Authored: Fri Oct 17 20:07:13 2014 -0600
Committer: Todd Nine <to...@apache.org>
Committed: Fri Oct 17 20:14:57 2014 -0600

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


http://git-wip-us.apache.org/repos/asf/incubator-usergrid/blob/ee0f28c7/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 0e7c465..3d55c6d 100644
--- a/stack/awscluster/src/main/dist/init_instance/install_cassandra.sh
+++ b/stack/awscluster/src/main/dist/init_instance/install_cassandra.sh
@@ -39,8 +39,9 @@ cd /usr/share/usergrid/scripts
 groovy registry_register.groovy cassandra
 groovy wait_for_instances.groovy cassandra ${CASSANDRA_NUM_SERVERS}
 
+#TODO make this configurable for the box sizes
 #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
+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