{"action":"created","issue":{"url":"https://api.github.com/repos/rancher/rancher/issues/2092","labels_url":"https://api.github.com/repos/rancher/rancher/issues/2092/labels{/name}","comments_url":"https://api.github.com/repos/rancher/rancher/issues/2092/comments","events_url":"https://api.github.com/repos/rancher/rancher/issues/2092/events","html_url":"https://github.com/rancher/rancher/issues/2092","id":107753783,"number":2092,"title":"Service with global deployment strategy: add max_count and odd_count","user":{"login":"alena1108","id":1562176,"avatar_url":"https://avatars.githubusercontent.com/u/1562176?v=3","gravatar_id":"","url":"https://api.github.com/users/alena1108","html_url":"https://github.com/alena1108","followers_url":"https://api.github.com/users/alena1108/followers","following_url":"https://api.github.com/users/alena1108/following{/other_user}","gists_url":"https://api.github.com/users/alena1108/gists{/gist_id}","starred_url":"https://api.github.com/users/alena1108/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alena1108/subscriptions","organizations_url":"https://api.github.com/users/alena1108/orgs","repos_url":"https://api.github.com/users/alena1108/repos","events_url":"https://api.github.com/users/alena1108/events{/privacy}","received_events_url":"https://api.github.com/users/alena1108/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/rancher/rancher/labels/kind/feature","name":"kind/feature","color":"c7def8"}],"state":"open","locked":false,"assignee":{"login":"alena1108","id":1562176,"avatar_url":"https://avatars.githubusercontent.com/u/1562176?v=3","gravatar_id":"","url":"https://api.github.com/users/alena1108","html_url":"https://github.com/alena1108","followers_url":"https://api.github.com/users/alena1108/followers","following_url":"https://api.github.com/users/alena1108/following{/other_user}","gists_url":"https://api.github.com/users/alena1108/gists{/gist_id}","starred_url":"https://api.github.com/users/alena1108/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alena1108/subscriptions","organizations_url":"https://api.github.com/users/alena1108/orgs","repos_url":"https://api.github.com/users/alena1108/repos","events_url":"https://api.github.com/users/alena1108/events{/privacy}","received_events_url":"https://api.github.com/users/alena1108/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2015-09-22T16:43:36Z","updated_at":"2015-11-23T23:27:59Z","closed_at":null,"body":"Global deployment strategy for the service means that service will end up having one instance deployed per host in the system. We should add a cap to number of instances deployed. So say you define a service with strategy=global and max_count=2. It means that when there are 3 hosts in the system, only 2 of them will get service instances deployed.\r\n\r\nAlso need to add odd_count parameter. If specified along with global flag, odd number of instances will get deployed. For example, if there are 10 hosts in the system, only 9 instances will get deployed.\r\n\r\n@ibuildthecloud ^^"},"comment":{"url":"https://api.github.com/repos/rancher/rancher/issues/comments/159102701","html_url":"https://github.com/rancher/rancher/issues/2092#issuecomment-159102701","issue_url":"https://api.github.com/repos/rancher/rancher/issues/2092","id":159102701,"user":{"login":"alena1108","id":1562176,"avatar_url":"https://avatars.githubusercontent.com/u/1562176?v=3","gravatar_id":"","url":"https://api.github.com/users/alena1108","html_url":"https://github.com/alena1108","followers_url":"https://api.github.com/users/alena1108/followers","following_url":"https://api.github.com/users/alena1108/following{/other_user}","gists_url":"https://api.github.com/users/alena1108/gists{/gist_id}","starred_url":"https://api.github.com/users/alena1108/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alena1108/subscriptions","organizations_url":"https://api.github.com/users/alena1108/orgs","repos_url":"https://api.github.com/users/alena1108/repos","events_url":"https://api.github.com/users/alena1108/events{/privacy}","received_events_url":"https://api.github.com/users/alena1108/received_events","type":"User","site_admin":false},"created_at":"2015-11-23T23:27:59Z","updated_at":"2015-11-23T23:27:59Z","body":"@ibuildthecloud do we still need this feature? "}}