{"action":"created","issue":{"url":"https://api.github.com/repos/rancher/rancher/issues/1842","labels_url":"https://api.github.com/repos/rancher/rancher/issues/1842/labels{/name}","comments_url":"https://api.github.com/repos/rancher/rancher/issues/1842/comments","events_url":"https://api.github.com/repos/rancher/rancher/issues/1842/events","html_url":"https://github.com/rancher/rancher/issues/1842","id":102176597,"number":1842,"title":"rancher-compose.yml not being correctly generated with scaling configuration. ","user":{"login":"Rucknar","id":5539660,"avatar_url":"https://avatars.githubusercontent.com/u/5539660?v=3","gravatar_id":"","url":"https://api.github.com/users/Rucknar","html_url":"https://github.com/Rucknar","followers_url":"https://api.github.com/users/Rucknar/followers","following_url":"https://api.github.com/users/Rucknar/following{/other_user}","gists_url":"https://api.github.com/users/Rucknar/gists{/gist_id}","starred_url":"https://api.github.com/users/Rucknar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rucknar/subscriptions","organizations_url":"https://api.github.com/users/Rucknar/orgs","repos_url":"https://api.github.com/users/Rucknar/repos","events_url":"https://api.github.com/users/Rucknar/events{/privacy}","received_events_url":"https://api.github.com/users/Rucknar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-20T16:24:05Z","updated_at":"2015-08-20T16:41:03Z","closed_at":null,"body":"```\r\nRancher\tv0.32.0\r\nCattle\tv0.75.0\r\nUser Interface\tv0.40.0\r\nRancher Compose\tbeta/latest\r\n```\r\n\r\n<h1>Summary</h1>\r\nThis could be wider reaching but in this instance we have come across it under the conditions described below. When creating loadbalancer services through the GUI, when you view or export the config, the scaling configuration doesn't reflect the configuration specified when creating the service.\r\n\r\n<h1>Steps to replicate</h1>\r\n1. Create new loadbalancer service, supply port/destination service as required. Now, for 'Scale' choose 'Always run one instance of this container on every host.' \r\n2. Once created, view the config in the GUI, you will see scale defined as so `  scale: 1` without any further configuration.\r\n3. Repeat the steps but for scaling, select a number of containers. The generated config from both these services will be identical in docker-compose.yml and rancher-compose.yml. \r\n\r\n<h1>Outcome</h1>\r\nA result of the above means we can't reliably build out a service that uses the config, it's also tripping up rancher-compose but i'll raise that separately if required. "},"comment":{"url":"https://api.github.com/repos/rancher/rancher/issues/comments/133071361","html_url":"https://github.com/rancher/rancher/issues/1842#issuecomment-133071361","issue_url":"https://api.github.com/repos/rancher/rancher/issues/1842","id":133071361,"user":{"login":"deniseschannon","id":11410997,"avatar_url":"https://avatars.githubusercontent.com/u/11410997?v=3","gravatar_id":"","url":"https://api.github.com/users/deniseschannon","html_url":"https://github.com/deniseschannon","followers_url":"https://api.github.com/users/deniseschannon/followers","following_url":"https://api.github.com/users/deniseschannon/following{/other_user}","gists_url":"https://api.github.com/users/deniseschannon/gists{/gist_id}","starred_url":"https://api.github.com/users/deniseschannon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deniseschannon/subscriptions","organizations_url":"https://api.github.com/users/deniseschannon/orgs","repos_url":"https://api.github.com/users/deniseschannon/repos","events_url":"https://api.github.com/users/deniseschannon/events{/privacy}","received_events_url":"https://api.github.com/users/deniseschannon/received_events","type":"User","site_admin":false},"created_at":"2015-08-20T16:41:03Z","updated_at":"2015-08-20T16:41:03Z","body":"Thanks for the detailed issue. \r\n\r\nWhen you select \"Always run one instance of this container on every host\", the scale in the rancher-compose doesn't matter. There is a label in the docker compose called \"io.rancher.scheduler.global: true\", which is setting a global scale for the load balancer. You can read more about it here: \r\nhttp://docs.rancher.com/rancher/rancher-compose/scheduling/#global-service\r\n\r\nIn v0.32.0, if I select a load balancer with scale 2, I see in my rancher-compose that the scale is 2.\r\n\r\nExample in Rancher-compose.yml\r\n```\r\nlbtestscale:\r\n  scale: 2\r\n  load_balancer_config:\r\n    name: lbtestscale config\r\n```\r\n\r\nFinally, what's the issue that you are having with rancher-compose? "}}