{"action":"created","issue":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/64580","repository_url":"https://api.github.com/repos/kubernetes/kubernetes","labels_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/64580/labels{/name}","comments_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/64580/comments","events_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/64580/events","html_url":"https://github.com/kubernetes/kubernetes/issues/64580","id":328316434,"node_id":"MDU6SXNzdWUzMjgzMTY0MzQ=","number":64580,"title":"kube-proxy iptables random routing is inefficient","user":{"login":"stonefury","id":4722084,"node_id":"MDQ6VXNlcjQ3MjIwODQ=","avatar_url":"https://avatars2.githubusercontent.com/u/4722084?v=4","gravatar_id":"","url":"https://api.github.com/users/stonefury","html_url":"https://github.com/stonefury","followers_url":"https://api.github.com/users/stonefury/followers","following_url":"https://api.github.com/users/stonefury/following{/other_user}","gists_url":"https://api.github.com/users/stonefury/gists{/gist_id}","starred_url":"https://api.github.com/users/stonefury/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stonefury/subscriptions","organizations_url":"https://api.github.com/users/stonefury/orgs","repos_url":"https://api.github.com/users/stonefury/repos","events_url":"https://api.github.com/users/stonefury/events{/privacy}","received_events_url":"https://api.github.com/users/stonefury/received_events","type":"User","site_admin":false},"labels":[{"id":116712108,"node_id":"MDU6TGFiZWwxMTY3MTIxMDg=","url":"https://api.github.com/repos/kubernetes/kubernetes/labels/sig/network","name":"sig/network","color":"d2b48c","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-05-31T22:16:06Z","updated_at":"2018-07-14T18:31:53Z","closed_at":"2018-06-06T23:23:42Z","author_association":"NONE","body":"I've learned recently that userspace routing was replaced with iptables routing in k8s, and iptables uses random pod selection for load balancing.\r\n\r\nThis means most of the time we have pods that are idle.  If it were round-robin then we would guarantee to distribute evenly.\r\n\r\nIs this random selection the only option we have available right now?  \r\n\r\nThanks\r\n\r\n/sig network"},"comment":{"url":"https://api.github.com/repos/kubernetes/kubernetes/issues/comments/405041655","html_url":"https://github.com/kubernetes/kubernetes/issues/64580#issuecomment-405041655","issue_url":"https://api.github.com/repos/kubernetes/kubernetes/issues/64580","id":405041655,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNTA0MTY1NQ==","user":{"login":"Jeffwan","id":4739316,"node_id":"MDQ6VXNlcjQ3MzkzMTY=","avatar_url":"https://avatars2.githubusercontent.com/u/4739316?v=4","gravatar_id":"","url":"https://api.github.com/users/Jeffwan","html_url":"https://github.com/Jeffwan","followers_url":"https://api.github.com/users/Jeffwan/followers","following_url":"https://api.github.com/users/Jeffwan/following{/other_user}","gists_url":"https://api.github.com/users/Jeffwan/gists{/gist_id}","starred_url":"https://api.github.com/users/Jeffwan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jeffwan/subscriptions","organizations_url":"https://api.github.com/users/Jeffwan/orgs","repos_url":"https://api.github.com/users/Jeffwan/repos","events_url":"https://api.github.com/users/Jeffwan/events{/privacy}","received_events_url":"https://api.github.com/users/Jeffwan/received_events","type":"User","site_admin":false},"created_at":"2018-07-14T18:31:53Z","updated_at":"2018-07-14T18:31:53Z","author_association":"NONE","body":"@thockin \r\n\r\nI use socket to connect to  a cluster IP which has many backend pods listening on same port. I notice random is totally not guaranteed. I disable sticky session on Service level (by default) but I am wondering if iptable proxy mode has something in-built to reuse address of backend pod. \r\n\r\nI send ~1000 request and they all go to same pod. "}}
{"actor":{"display_login":"Jeffwan"}}