usergrid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From toddn...@apache.org
Subject [5/5] git commit: Fixes cassandra heap
Date Sat, 18 Oct 2014 02:19:09 GMT
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
Commit: ee0f28c7a55b6e6d986b74fdb696e80fb6116fd3
Parents: f7b7513
Author: Todd Nine <toddnine@apache.org>
Authored: Fri Oct 17 20:07:13 2014 -0600
Committer: Todd Nine <toddnine@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


Mime
View raw message