{"action":"closed","issue":{"url":"https://api.github.com/repos/bazelbuild/bazel/issues/2540","repository_url":"https://api.github.com/repos/bazelbuild/bazel","labels_url":"https://api.github.com/repos/bazelbuild/bazel/issues/2540/labels{/name}","comments_url":"https://api.github.com/repos/bazelbuild/bazel/issues/2540/comments","events_url":"https://api.github.com/repos/bazelbuild/bazel/issues/2540/events","html_url":"https://github.com/bazelbuild/bazel/issues/2540","id":208251596,"node_id":"MDU6SXNzdWUyMDgyNTE1OTY=","number":2540,"title":"Add per-worker configuration for number of instances and lifespan","user":{"login":"natebosch","id":7528195,"node_id":"MDQ6VXNlcjc1MjgxOTU=","avatar_url":"https://avatars3.githubusercontent.com/u/7528195?v=4","gravatar_id":"","url":"https://api.github.com/users/natebosch","html_url":"https://github.com/natebosch","followers_url":"https://api.github.com/users/natebosch/followers","following_url":"https://api.github.com/users/natebosch/following{/other_user}","gists_url":"https://api.github.com/users/natebosch/gists{/gist_id}","starred_url":"https://api.github.com/users/natebosch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natebosch/subscriptions","organizations_url":"https://api.github.com/users/natebosch/orgs","repos_url":"https://api.github.com/users/natebosch/repos","events_url":"https://api.github.com/users/natebosch/events{/privacy}","received_events_url":"https://api.github.com/users/natebosch/received_events","type":"User","site_admin":false},"labels":[{"id":287852673,"node_id":"MDU6TGFiZWwyODc4NTI2NzM=","url":"https://api.github.com/repos/bazelbuild/bazel/labels/category:%20sandboxing","name":"category: sandboxing","color":"d4c5f9","default":false},{"id":106503261,"node_id":"MDU6TGFiZWwxMDY1MDMyNjE=","url":"https://api.github.com/repos/bazelbuild/bazel/labels/type:%20feature%20request","name":"type: feature request","color":"0052cc","default":false}],"state":"closed","locked":false,"assignee":{"login":"philwo","id":504652,"node_id":"MDQ6VXNlcjUwNDY1Mg==","avatar_url":"https://avatars0.githubusercontent.com/u/504652?v=4","gravatar_id":"","url":"https://api.github.com/users/philwo","html_url":"https://github.com/philwo","followers_url":"https://api.github.com/users/philwo/followers","following_url":"https://api.github.com/users/philwo/following{/other_user}","gists_url":"https://api.github.com/users/philwo/gists{/gist_id}","starred_url":"https://api.github.com/users/philwo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philwo/subscriptions","organizations_url":"https://api.github.com/users/philwo/orgs","repos_url":"https://api.github.com/users/philwo/repos","events_url":"https://api.github.com/users/philwo/events{/privacy}","received_events_url":"https://api.github.com/users/philwo/received_events","type":"User","site_admin":false},"assignees":[{"login":"philwo","id":504652,"node_id":"MDQ6VXNlcjUwNDY1Mg==","avatar_url":"https://avatars0.githubusercontent.com/u/504652?v=4","gravatar_id":"","url":"https://api.github.com/users/philwo","html_url":"https://github.com/philwo","followers_url":"https://api.github.com/users/philwo/followers","following_url":"https://api.github.com/users/philwo/following{/other_user}","gists_url":"https://api.github.com/users/philwo/gists{/gist_id}","starred_url":"https://api.github.com/users/philwo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philwo/subscriptions","organizations_url":"https://api.github.com/users/philwo/orgs","repos_url":"https://api.github.com/users/philwo/repos","events_url":"https://api.github.com/users/philwo/events{/privacy}","received_events_url":"https://api.github.com/users/philwo/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2017-02-16T21:26:50Z","updated_at":"2018-07-19T12:40:42Z","closed_at":"2018-07-19T12:40:42Z","author_association":"CONTRIBUTOR","body":"We have global flags [`worker_quit_after_build`](https://github.com/bazelbuild/bazel/blob/bef19d10b1262e610569b4f604635eb0bea07e01/src/main/java/com/google/devtools/build/lib/worker/WorkerOptions.java#L66) and `worker_max_instances` for tuning behavior of workers. We should allow these per worker.\r\n\r\nIdeally we should be able to set a default for each worker and allow them to be overridden by mnemonic.\r\n\r\nThe Dart build process has some particularly memory intensive workers, and having 4 copies of these live (potentially in multiple workspaces) across builds is too heavy, but limiting *all* workers to fewer copies and/or killing them after builds will negatively impact performance for other workers.\r\n"}}
{"actor":{"display_login":"philwo"}}