{"action":"created","issue":{"url":"https://api.github.com/repos/magneticio/vamp/issues/247","labels_url":"https://api.github.com/repos/magneticio/vamp/issues/247/labels{/name}","comments_url":"https://api.github.com/repos/magneticio/vamp/issues/247/comments","events_url":"https://api.github.com/repos/magneticio/vamp/issues/247/events","html_url":"https://github.com/magneticio/vamp/issues/247","id":93091441,"number":247,"title":"Resource Allocation in marathon is not the same like defined in the blueprint","user":{"login":"zutherb","id":489474,"avatar_url":"https://avatars.githubusercontent.com/u/489474?v=3","gravatar_id":"","url":"https://api.github.com/users/zutherb","html_url":"https://github.com/zutherb","followers_url":"https://api.github.com/users/zutherb/followers","following_url":"https://api.github.com/users/zutherb/following{/other_user}","gists_url":"https://api.github.com/users/zutherb/gists{/gist_id}","starred_url":"https://api.github.com/users/zutherb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zutherb/subscriptions","organizations_url":"https://api.github.com/users/zutherb/orgs","repos_url":"https://api.github.com/users/zutherb/repos","events_url":"https://api.github.com/users/zutherb/events{/privacy}","received_events_url":"https://api.github.com/users/zutherb/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-05T08:41:55Z","updated_at":"2015-07-14T09:08:03Z","closed_at":"2015-07-14T09:08:03Z","body":"Hi,\r\n\r\ni try to setup an a/b test for my online shop example (https://github.com/zutherb/AppStash/blob/master/vamp/shop.yml). User should get a green version of the layout when they are using the Chrome browser.\r\n\r\nIt seems that the ressource allocation by marathon is not done like i have defined in the blueprint:\r\n\r\n```yaml\r\n          scale:\r\n            instances: 1\r\n            cpu: 0.1\r\n            memory: 128\r\n```\r\n\r\nWhen i am look to marathon 513MB and 0.3 CPU is used: \r\n\r\n<img width=\"1440\" alt=\"bildschirmfoto 2015-07-05 um 10 15 13\" src=\"https://cloud.githubusercontent.com/assets/489474/8510920/f7b1b826-22ff-11e5-91b5-147a010f0043.png\">\r\n\r\nFurthermore both a/b test container are initialized with the environment variables ```CHECKOUT_DESIGN=amelia```. But the standard container should have:\r\n```yaml\r\n environment_variables:\r\n            CHECKOUT_DESIGN: standard\r\n```\r\n<img width=\"1440\" alt=\"bildschirmfoto 2015-07-05 um 10 23 09\" src=\"https://cloud.githubusercontent.com/assets/489474/8510921/fa8ca538-22ff-11e5-957e-127dd0ef15c8.png\">\r\n\r\n<img width=\"1435\" alt=\"bildschirmfoto 2015-07-05 um 10 22 45\" src=\"https://cloud.githubusercontent.com/assets/489474/8510922/fabb1c2e-22ff-11e5-91f9-d13f930a2d46.png\">\r\n\r\nI am using:\r\nMarathon 0.8.2\r\nVamp 0.7.7\r\n"},"comment":{"url":"https://api.github.com/repos/magneticio/vamp/issues/comments/121173875","html_url":"https://github.com/magneticio/vamp/issues/247#issuecomment-121173875","issue_url":"https://api.github.com/repos/magneticio/vamp/issues/247","id":121173875,"user":{"login":"tnolet","id":3802923,"avatar_url":"https://avatars.githubusercontent.com/u/3802923?v=3","gravatar_id":"","url":"https://api.github.com/users/tnolet","html_url":"https://github.com/tnolet","followers_url":"https://api.github.com/users/tnolet/followers","following_url":"https://api.github.com/users/tnolet/following{/other_user}","gists_url":"https://api.github.com/users/tnolet/gists{/gist_id}","starred_url":"https://api.github.com/users/tnolet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tnolet/subscriptions","organizations_url":"https://api.github.com/users/tnolet/orgs","repos_url":"https://api.github.com/users/tnolet/repos","events_url":"https://api.github.com/users/tnolet/events{/privacy}","received_events_url":"https://api.github.com/users/tnolet/received_events","type":"User","site_admin":false},"created_at":"2015-07-14T09:08:03Z","updated_at":"2015-07-14T09:08:03Z","body":"@zutherb \r\n\r\nRegarding the environment variables: These are at this moment scoped to the cluster. This means all services in a cluster share the same environment variables. This covers the scenario when you are blue/green releasing or deploying and testing two very similar services (i.e. one with a bugfix). \r\n\r\nHowever, this does not cover the scenario when you are explicitly a/b-testing and tweaking different options with environment variables. Making this work is on our roadmap but needs some design work because you probably want both: some shared properties, some specific to your service. We will try to solve this with the \"include\" option, see https://github.com/magneticio/vamp/issues/232\r\n\r\nRegarding \"proper\" parsing: we do not check \"invalid\" keys in the DSL for now. They are silently ignored and if applicable defaults are use. You were probably seeing the default scale appears. You can tweak that in the application.conf.\r\n\r\nOnce we hit beta, we can do hard syntax checking and generate errors when parts are missing placed at the wrong level."}}