{"action":"closed","issue":{"url":"https://api.github.com/repos/hashicorp/nomad/issues/1010","repository_url":"https://api.github.com/repos/hashicorp/nomad","labels_url":"https://api.github.com/repos/hashicorp/nomad/issues/1010/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/nomad/issues/1010/comments","events_url":"https://api.github.com/repos/hashicorp/nomad/issues/1010/events","html_url":"https://github.com/hashicorp/nomad/issues/1010","id":144688582,"number":1010,"title":"Feature request: mark allocations pendingPlacement instead of failure if there aren't nodes available to place the allocations","user":{"login":"g0t4","id":180189,"avatar_url":"https://avatars.githubusercontent.com/u/180189?v=3","gravatar_id":"","url":"https://api.github.com/users/g0t4","html_url":"https://github.com/g0t4","followers_url":"https://api.github.com/users/g0t4/followers","following_url":"https://api.github.com/users/g0t4/following{/other_user}","gists_url":"https://api.github.com/users/g0t4/gists{/gist_id}","starred_url":"https://api.github.com/users/g0t4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/g0t4/subscriptions","organizations_url":"https://api.github.com/users/g0t4/orgs","repos_url":"https://api.github.com/users/g0t4/repos","events_url":"https://api.github.com/users/g0t4/events{/privacy}","received_events_url":"https://api.github.com/users/g0t4/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hashicorp/nomad/labels/core","name":"core","color":"000000"},{"url":"https://api.github.com/repos/hashicorp/nomad/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/hashicorp/nomad/milestones/7","html_url":"https://github.com/hashicorp/nomad/milestones/v0.4","labels_url":"https://api.github.com/repos/hashicorp/nomad/milestones/7/labels","id":1644324,"number":7,"title":"v0.4","description":null,"creator":{"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},"open_issues":7,"closed_issues":1,"state":"open","created_at":"2016-03-14T21:43:07Z","updated_at":"2016-05-28T00:02:13Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-03-30T18:58:27Z","updated_at":"2016-05-28T00:02:14Z","closed_at":"2016-05-28T00:02:13Z","body":"### Nomad version\r\nv0.3.1\r\n\r\n### Operating system and Environment details\r\ncentos 7 3.10.0-327.10.1.el7.x86_64\r\nDocker version 1.10.3, build 20f81dd\r\n\r\n### Issue\r\nWhen I have a **batch** job that has allocations that can't immediately be placed, those allocations are marked failed. Eventually new allocations are created. The queue works great in this case, but the allocation history becomes difficult to manage. \r\n\r\nOften, there are hundreds to thousands of failed allocations, with \"failed to find a node for placement\". This makes status calls to the HTTP api take lots of time to return, sometimes with results that are 8 MB in size. This isn't an issue for colocated queries, but remotely it can be a headache. \r\n\r\nWould it make more sense to just keep the allocations pending, or maybe pendingPlacement? And then in the TaskStates, add an event entry that says \"failed placement\" with the last time placement was tried?\r\n\r\nFYI, I brought this up on the mailing list too: https://groups.google.com/forum/#!topic/nomad-tool/LcvMgHN_RPU\r\n\r\n### Reproduction steps\r\nCreate a batch job with enough tasks to saturate all nodes in a cluster, with some remaining allocations that can't be immediately placed. \r\n"}}
{"actor":{"display_login":"dadgar"}}