{"action":"created","issue":{"url":"https://api.github.com/repos/datastax/cstar_perf/issues/67","labels_url":"https://api.github.com/repos/datastax/cstar_perf/issues/67/labels{/name}","comments_url":"https://api.github.com/repos/datastax/cstar_perf/issues/67/comments","events_url":"https://api.github.com/repos/datastax/cstar_perf/issues/67/events","html_url":"https://github.com/datastax/cstar_perf/pull/67","id":94224140,"number":67,"title":"Docker automation for cstar_perf development","user":{"login":"EnigmaCurry","id":43061,"avatar_url":"https://avatars.githubusercontent.com/u/43061?v=3","gravatar_id":"","url":"https://api.github.com/users/EnigmaCurry","html_url":"https://github.com/EnigmaCurry","followers_url":"https://api.github.com/users/EnigmaCurry/followers","following_url":"https://api.github.com/users/EnigmaCurry/following{/other_user}","gists_url":"https://api.github.com/users/EnigmaCurry/gists{/gist_id}","starred_url":"https://api.github.com/users/EnigmaCurry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EnigmaCurry/subscriptions","organizations_url":"https://api.github.com/users/EnigmaCurry/orgs","repos_url":"https://api.github.com/users/EnigmaCurry/repos","events_url":"https://api.github.com/users/EnigmaCurry/events{/privacy}","received_events_url":"https://api.github.com/users/EnigmaCurry/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-07-10T06:11:00Z","updated_at":"2015-08-14T13:21:17Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/datastax/cstar_perf/pulls/67","html_url":"https://github.com/datastax/cstar_perf/pull/67","diff_url":"https://github.com/datastax/cstar_perf/pull/67.diff","patch_url":"https://github.com/datastax/cstar_perf/pull/67.patch"},"body":"**This is still a WIP - about 90% done and usable, but don't merge yet**\r\n\r\nThis is cstar_docker,  a tool to automatically setup all of cstar_perf inside of containers to make it easier to play around with cstar_perf as well as to develop on cstar_perf.\r\n\r\nExample:\r\n\r\nBuild the base image:\r\n\r\n    cstar_docker build\r\n\r\nLaunch a 3 node (+1 client node) cluster (-m says to mount your local git checkout as the code to run inside the container):\r\n\r\n    cstar_docker launch test_cluster 3 -m\r\n\r\nLaunch a single node for the frontend:\r\n\r\n    cstar_docker frontend test_frontend -m\r\n\r\nHook up the test_cluster to the frontend, so the frontend can run jobs on test_cluster:\r\n\r\n    cstar_docker associate test_frontend test_cluster\r\n\r\nLogin to the first node of test_cluster:\r\n\r\n    cstar_docker ssh test_cluster 0\r\n\r\nStart or stop clusters:\r\n\r\n    cstar_docker stop test_cluster\r\n    cstar_docker start test_cluster\r\n\r\nList all clusters (started and stopped):\r\n\r\n    cstar_docker list\r\n\r\nList info about a single cluster (node ip addresses etc):\r\n\r\n    cstar_docker info test_cluster\r\n\r\nDestroy clusters:\r\n\r\n    cstar_docker destroy test_cluster\r\n    cstar_docker destroy test_frontend\r\n\r\n    or:\r\n\r\n    cstar_docker destroy all\r\n\r\nThere are 2 default users created for the frontend:\r\n\r\nadmin@admin.com/admin\r\nuser@user.com/user\r\n "},"comment":{"url":"https://api.github.com/repos/datastax/cstar_perf/issues/comments/131104186","html_url":"https://github.com/datastax/cstar_perf/pull/67#issuecomment-131104186","issue_url":"https://api.github.com/repos/datastax/cstar_perf/issues/67","id":131104186,"user":{"login":"EnigmaCurry","id":43061,"avatar_url":"https://avatars.githubusercontent.com/u/43061?v=3","gravatar_id":"","url":"https://api.github.com/users/EnigmaCurry","html_url":"https://github.com/EnigmaCurry","followers_url":"https://api.github.com/users/EnigmaCurry/followers","following_url":"https://api.github.com/users/EnigmaCurry/following{/other_user}","gists_url":"https://api.github.com/users/EnigmaCurry/gists{/gist_id}","starred_url":"https://api.github.com/users/EnigmaCurry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EnigmaCurry/subscriptions","organizations_url":"https://api.github.com/users/EnigmaCurry/orgs","repos_url":"https://api.github.com/users/EnigmaCurry/repos","events_url":"https://api.github.com/users/EnigmaCurry/events{/privacy}","received_events_url":"https://api.github.com/users/EnigmaCurry/received_events","type":"User","site_admin":false},"created_at":"2015-08-14T13:21:17Z","updated_at":"2015-08-14T13:21:17Z","body":"And shouldn't you be on vacation? ;)\n\nOn Fri, Aug 14, 2015 at 9:20 AM, Ryan McGuire <ryan@datastax.com> wrote:\n\n> Can't you just override MAX_HEAP_SIZE and HEAP_NEWSIZE in env?\n>\n> On Fri, Aug 14, 2015 at 9:16 AM, Alan Boudreault <notifications@github.com\n> > wrote:\n>\n>> Currently, it seems that we cannot change the C* jvm memory. The C*\n>> inside the docker instance picks the default value, which is the 1/4 of the\n>> entire *host* ram. This something leads to C* being killed by the OOM:\n>>\n>> Memory cgroup out of memory: Kill process 2931\n>> (java) score 995 or sacrifice child\n>> [1549771.065308] Killed process 2931 (java) total-vm:6190592kB\n>>\n>> A line like the following doesn't seem to work, since the memory\n>> parameters will be specified twice when launching C*:\n>>\n>> \"env\": \"JVM_OPTS=\\\"$JVM_OPTS -Xms8192M\\\"\\nJVM_OPTS=\\\"$JVM_OPTS -Xmx8192M\\\"\\nJVM_OPTS=\\\"$JVM_OPTS -Xmn2048M\\\"\",\n>>\n>> —\n>> Reply to this email directly or view it on GitHub\n>> <https://github.com/datastax/cstar_perf/pull/67#issuecomment-131102011>.\n>>\n>\n>\n"}}