{"action":"created","issue":{"url":"https://api.github.com/repos/rancher/rancher/issues/2367","labels_url":"https://api.github.com/repos/rancher/rancher/issues/2367/labels{/name}","comments_url":"https://api.github.com/repos/rancher/rancher/issues/2367/comments","events_url":"https://api.github.com/repos/rancher/rancher/issues/2367/events","html_url":"https://github.com/rancher/rancher/issues/2367","id":112132874,"number":2367,"title":"[Load Balancer] Ability to customize haproxy options, registering sidekicks and rolling updates","user":{"login":"ndelitski","id":3070298,"avatar_url":"https://avatars.githubusercontent.com/u/3070298?v=3","gravatar_id":"","url":"https://api.github.com/users/ndelitski","html_url":"https://github.com/ndelitski","followers_url":"https://api.github.com/users/ndelitski/followers","following_url":"https://api.github.com/users/ndelitski/following{/other_user}","gists_url":"https://api.github.com/users/ndelitski/gists{/gist_id}","starred_url":"https://api.github.com/users/ndelitski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndelitski/subscriptions","organizations_url":"https://api.github.com/users/ndelitski/orgs","repos_url":"https://api.github.com/users/ndelitski/repos","events_url":"https://api.github.com/users/ndelitski/events{/privacy}","received_events_url":"https://api.github.com/users/ndelitski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-19T12:20:16Z","updated_at":"2015-10-19T16:45:27Z","closed_at":null,"body":"Greetings!\r\n\r\nActively trying to use rancher in our project, but stucked with serveral problems...\r\n1) I have a global LB service with many connected services distributed by subdomain, and i would like to customize several haproxy options for some of them. For example i have to enable `accept-proxy` and `balance source` option if rancher balancer is behind ELB and my service accepts websocket connections with socket.io.(https://medium.com/@Philmod/load-balancing-websockets-on-ec2-1da94584a5e9) If i run my own haproxy balancer how can i auto-update backend servers with autoscaling rancher services?\r\n2) I have a confd sidekick on each service, mounting config.json file into the main container, and why rancher-lb create a second record for my sidekick which obviously have no http interface(i might got wrong what sidekicks are)?\r\n<img width=\"1144\" alt=\"screenshot 2015-10-19 15 24 02\" src=\"https://cloud.githubusercontent.com/assets/3070298/10577630/79c92ea2-7675-11e5-8377-68d9aa5300c9.png\">\r\nAs you see every mail service have a configuration sidekick but it doesnt mean i want to round robin to it...\r\n```\r\nbackend 4ac22b05-78f0-4483-84a4-50f69b12ba27_0_backend                          \r\n        mode http                                                               \r\n        balance roundrobin                                                      \r\n        server 685b4bd9-3545-4b34-8575-3580338c82c8 10.42.173.134:8082  << main service\r\n        server 58977033-a399-4a85-9523-ca2e64a64db6 10.42.88.195:8082   << sidekick\r\n```\r\n3) How to proper update services under rancher-LB without killing connections and recreaing services? \r\nSingle LB with subdomain-splited services:\r\n<img width=\"344\" alt=\"screenshot 2015-10-19 14 52 23\" src=\"https://cloud.githubusercontent.com/assets/3070298/10577122/1547161e-7671-11e5-9b93-3839636d2f42.png\">\r\nI know these ways to update a service:\r\n - buggy in-service update. It only kills service\r\n - update from webapp to webapp2 doesn't make sense because i need to edit docker-compose and service name will change. I have a CI server continuously delivering container versions based on branch names, and then i need to update service with same image, same name, not changing master-1 to master-2\r\n - Fully recreate service stack and LB stack. `rancher-compose rm && rancher-compose up` - for service and lb\r\n - Using rancher-api directly. Kill all containers in service, then rancher-compose up. Like as It doesn't break service links"},"comment":{"url":"https://api.github.com/repos/rancher/rancher/issues/comments/149276843","html_url":"https://github.com/rancher/rancher/issues/2367#issuecomment-149276843","issue_url":"https://api.github.com/repos/rancher/rancher/issues/2367","id":149276843,"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-10-19T16:45:27Z","updated_at":"2015-10-19T16:45:27Z","body":"@ndelitski thanks for bringing up the issues!\r\n\r\n1) custom params for haproxy would be addressed as a part of https://github.com/rancher/rancher/issues/2171\r\n\r\n2) Sounds like a bug; only instance of a primary service should be registered to the LB. Will run the test, and update the ticket. \r\n\r\n3) InService upgrade is in the works; looks like it would satisfy most of your requirements - no services recreating, no links recreating:\r\n\r\nhttps://github.com/rancher/rancher/issues/1874\r\n\r\n"}}