{"action":"created","issue":{"url":"https://api.github.com/repos/edx/configuration/issues/2451","labels_url":"https://api.github.com/repos/edx/configuration/issues/2451/labels{/name}","comments_url":"https://api.github.com/repos/edx/configuration/issues/2451/comments","events_url":"https://api.github.com/repos/edx/configuration/issues/2451/events","html_url":"https://github.com/edx/configuration/pull/2451","id":115614077,"number":2451,"title":"Add a swapfile role to edx_sandbox playbook","user":{"login":"bradenmacdonald","id":945577,"avatar_url":"https://avatars.githubusercontent.com/u/945577?v=3","gravatar_id":"","url":"https://api.github.com/users/bradenmacdonald","html_url":"https://github.com/bradenmacdonald","followers_url":"https://api.github.com/users/bradenmacdonald/followers","following_url":"https://api.github.com/users/bradenmacdonald/following{/other_user}","gists_url":"https://api.github.com/users/bradenmacdonald/gists{/gist_id}","starred_url":"https://api.github.com/users/bradenmacdonald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradenmacdonald/subscriptions","organizations_url":"https://api.github.com/users/bradenmacdonald/orgs","repos_url":"https://api.github.com/users/bradenmacdonald/repos","events_url":"https://api.github.com/users/bradenmacdonald/events{/privacy}","received_events_url":"https://api.github.com/users/bradenmacdonald/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-11-06T23:50:37Z","updated_at":"2015-11-30T20:45:03Z","closed_at":"2015-11-30T20:44:20Z","pull_request":{"url":"https://api.github.com/repos/edx/configuration/pulls/2451","html_url":"https://github.com/edx/configuration/pull/2451","diff_url":"https://github.com/edx/configuration/pull/2451.diff","patch_url":"https://github.com/edx/configuration/pull/2451.patch"},"body":"We (OpenCraft) are running into occasional out-of-memory issues with sandboxes on some VMs.\r\n\r\nThis is a simple import of [Kamal Nasser's ansible `swapfile` role](https://github.com/kamaln7/ansible-swapfile) (MIT licensed), which will enable a swapfile for the `edx_sandbox` playbook by default. It is enabled by default with `SWAPFILE_SIZE = 2GB` but can easily be disabled by setting `SWAPFILE_SIZE = false`\r\n\r\nThe role is unmodified from the upstream version except that a couple variables are capitalized differently to fit better with edX ansible conventions.\r\n\r\nTest instructions: You can test this on any VM by running:\r\n```\r\nansible-playbook -i localhost, -c local run_role.yml -e role=swapfile -e \"SWAPFILE_SIZE=2GB\"\r\n```\r\n\r\n**Project / Deadline**: This is an OpenCraft project  with no specific deadline and is just a community contribution.\r\n\r\n**Questions for edX reviewer**:\r\n- Should this be enabled or disabled by default?\r\n- Any comments on importing an external ansible galaxy role like this? Should I keep the `galaxy_info` or not?"},"comment":{"url":"https://api.github.com/repos/edx/configuration/issues/comments/160756303","html_url":"https://github.com/edx/configuration/pull/2451#issuecomment-160756303","issue_url":"https://api.github.com/repos/edx/configuration/issues/2451","id":160756303,"user":{"login":"bradenmacdonald","id":945577,"avatar_url":"https://avatars.githubusercontent.com/u/945577?v=3","gravatar_id":"","url":"https://api.github.com/users/bradenmacdonald","html_url":"https://github.com/bradenmacdonald","followers_url":"https://api.github.com/users/bradenmacdonald/followers","following_url":"https://api.github.com/users/bradenmacdonald/following{/other_user}","gists_url":"https://api.github.com/users/bradenmacdonald/gists{/gist_id}","starred_url":"https://api.github.com/users/bradenmacdonald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradenmacdonald/subscriptions","organizations_url":"https://api.github.com/users/bradenmacdonald/orgs","repos_url":"https://api.github.com/users/bradenmacdonald/repos","events_url":"https://api.github.com/users/bradenmacdonald/events{/privacy}","received_events_url":"https://api.github.com/users/bradenmacdonald/received_events","type":"User","site_admin":false},"created_at":"2015-11-30T20:45:03Z","updated_at":"2015-11-30T20:45:03Z","body":"@smarnach @mtyaka You may want to know that this has been merged."}}