{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/nomad/issues/1418","repository_url":"https://api.github.com/repos/hashicorp/nomad","labels_url":"https://api.github.com/repos/hashicorp/nomad/issues/1418/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/nomad/issues/1418/comments","events_url":"https://api.github.com/repos/hashicorp/nomad/issues/1418/events","html_url":"https://github.com/hashicorp/nomad/issues/1418","id":165336729,"number":1418,"title":"Client Side Allocation Directory GC","user":{"login":"a86c6f7964","id":165381,"avatar_url":"https://avatars.githubusercontent.com/u/165381?v=3","gravatar_id":"","url":"https://api.github.com/users/a86c6f7964","html_url":"https://github.com/a86c6f7964","followers_url":"https://api.github.com/users/a86c6f7964/followers","following_url":"https://api.github.com/users/a86c6f7964/following{/other_user}","gists_url":"https://api.github.com/users/a86c6f7964/gists{/gist_id}","starred_url":"https://api.github.com/users/a86c6f7964/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a86c6f7964/subscriptions","organizations_url":"https://api.github.com/users/a86c6f7964/orgs","repos_url":"https://api.github.com/users/a86c6f7964/repos","events_url":"https://api.github.com/users/a86c6f7964/events{/privacy}","received_events_url":"https://api.github.com/users/a86c6f7964/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hashicorp/nomad/labels/bug","name":"bug","color":"f7c6c7"},{"url":"https://api.github.com/repos/hashicorp/nomad/labels/client","name":"client","color":"bfdadc"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-07-13T14:34:58Z","updated_at":"2016-07-15T04:17:40Z","closed_at":null,"body":"nomad 0.4.0\r\n\r\nSince the disk fingerprint is both checking the disk for \"free\" space, and then is also being allocated for logs the logs on disk can end up counting twice.\r\n\r\nIf for instance I have 450 MB of disk space, and and 2 tasks that are set to have 10 rolling log files of 10MB each, and then I set both of those tasks to require 100MB of space. After my 2 tasks run for a long time and fill up all of the logs I can end up with resource allocation of 200/250 . Since the logs will be taking up physically 200MB on disk, and then also I will be trying to allocate 200MB worth for them. \r\n\r\nThis would mean that I could not put another task of 100MB disk allocation onto this node, because according to the resource check there is only 50MB available, but since we know that 200MB of the 250 have already been accounted for we should be able to provision the task.\r\n"},"comment":{"url":"https://api.github.com/repos/hashicorp/nomad/issues/comments/232856281","html_url":"https://github.com/hashicorp/nomad/issues/1418#issuecomment-232856281","issue_url":"https://api.github.com/repos/hashicorp/nomad/issues/1418","id":232856281,"user":{"login":"diptanu","id":21833,"avatar_url":"https://avatars.githubusercontent.com/u/21833?v=3","gravatar_id":"","url":"https://api.github.com/users/diptanu","html_url":"https://github.com/diptanu","followers_url":"https://api.github.com/users/diptanu/followers","following_url":"https://api.github.com/users/diptanu/following{/other_user}","gists_url":"https://api.github.com/users/diptanu/gists{/gist_id}","starred_url":"https://api.github.com/users/diptanu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diptanu/subscriptions","organizations_url":"https://api.github.com/users/diptanu/orgs","repos_url":"https://api.github.com/users/diptanu/repos","events_url":"https://api.github.com/users/diptanu/events{/privacy}","received_events_url":"https://api.github.com/users/diptanu/received_events","type":"User","site_admin":false},"created_at":"2016-07-15T04:17:40Z","updated_at":"2016-07-15T04:17:40Z","body":"There is also a PR which is going to land soon which is going to kill tasks when they exceed the allocated quota."}}
{"actor":{"display_login":"diptanu"}}