{"id":5432,"date":"2017-10-10T13:20:36","date_gmt":"2017-10-10T17:20:36","guid":{"rendered":"http:\/\/www.dr-chuck.com\/csev-blog\/?p=5432"},"modified":"2017-10-10T13:20:56","modified_gmt":"2017-10-10T17:20:56","slug":"speedy-amazon-compile-for-sakai","status":"publish","type":"post","link":"https:\/\/www.dr-chuck.com\/csev-blog\/2017\/10\/speedy-amazon-compile-for-sakai\/","title":{"rendered":"Speedy Amazon EC2 Compile for Sakai"},"content":{"rendered":"<p>This is mostly my own notes in my attempt to find a quick developer \/ compile option for Sakai.<\/p>\n<p>TL;DR &#8211; An EC2  c4.2xlarge with the right <strong>.bashrc<\/strong> settings is a very fast compile box for Sakai.<\/p>\n<p><strong>Methodology<br \/>\n<\/strong><br \/>\nCheck out my Sakai scripts:<\/p>\n<p><a href=\"https:\/\/github.com\/csev\/sakai-scripts\" rel=\"noopener\" target=\"_blank\">https:\/\/github.com\/csev\/sakai-scripts<br \/>\n<\/a><br \/>\nPut in all the pre-requisites &#8211; make sure to run the qmv.sh script once to get the maven repo cache<br \/>\nwarmed up before doing timing.<\/p>\n<p><strong>Base Line<br \/>\n<\/strong><br \/>\nMy baseline is my own MacBook Pro with quad processor i7 2.8 Ghz, with 1TB SSD, and 16GB RAM.  I played with the last line in the qmv.sh to change the number of threads in use using the &#8220;-T&#8221; options.<\/p>\n<p><code>mvn -T 4 -e -Dmaven.test.skip=true -Dmaven.tomcat.home=$tomcatdir $goals<br \/>\n<\/code><br \/>\nCompile time:<\/p>\n<p><code>1 thread - 4:08<br \/>\n2 threads - 2:47<br \/>\n4 threads - 1:52<br \/>\n<\/code><br \/>\n<strong>Testing on Amazon<\/strong><\/p>\n<p>AWS &#8211; c4.2xlarge, 15G RAM,  8 CPUs, 31 &#8220;ECU Units&#8221;, EBS<\/p>\n<p>Setting the MAVEN and JAVA OPTS to -Xms4096m -Xmx4096m<\/p>\n<p>Compile time:<\/p>\n<p><code>4 threads 1:25<\/code><\/p>\n<p>Setting the MAVEN and JAVA OPTS to -Xms8192m -Xmx8192m<\/p>\n<p>Compile time:<\/p>\n<p><code>6 threads 1:17<br \/>\n8 threads 1:18<\/code><\/p>\n<p>For future testing we might look at less expensive per hour boxes but this certainly is fast enough for Sakai development at $0.40 per hour.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is mostly my own notes in my attempt to find a quick developer \/ compile option for Sakai. TL;DR &#8211; An EC2 c4.2xlarge with the right .bashrc settings is a very fast compile box for Sakai. Methodology Check out my Sakai scripts: https:\/\/github.com\/csev\/sakai-scripts Put in all the pre-requisites &#8211; make sure to run the [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5432","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/posts\/5432","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/comments?post=5432"}],"version-history":[{"count":4,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/posts\/5432\/revisions"}],"predecessor-version":[{"id":5436,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/posts\/5432\/revisions\/5436"}],"wp:attachment":[{"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/media?parent=5432"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/categories?post=5432"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dr-chuck.com\/csev-blog\/wp-json\/wp\/v2\/tags?post=5432"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}