{"action":"created","issue":{"url":"https://api.github.com/repos/eBayClassifiedsGroup/PanteraS/issues/236","repository_url":"https://api.github.com/repos/eBayClassifiedsGroup/PanteraS","labels_url":"https://api.github.com/repos/eBayClassifiedsGroup/PanteraS/issues/236/labels{/name}","comments_url":"https://api.github.com/repos/eBayClassifiedsGroup/PanteraS/issues/236/comments","events_url":"https://api.github.com/repos/eBayClassifiedsGroup/PanteraS/issues/236/events","html_url":"https://github.com/eBayClassifiedsGroup/PanteraS/issues/236","id":194089620,"number":236,"title":"HAProxy performance issues","user":{"login":"cookandy","id":6495064,"avatar_url":"https://avatars.githubusercontent.com/u/6495064?v=3","gravatar_id":"","url":"https://api.github.com/users/cookandy","html_url":"https://github.com/cookandy","followers_url":"https://api.github.com/users/cookandy/followers","following_url":"https://api.github.com/users/cookandy/following{/other_user}","gists_url":"https://api.github.com/users/cookandy/gists{/gist_id}","starred_url":"https://api.github.com/users/cookandy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cookandy/subscriptions","organizations_url":"https://api.github.com/users/cookandy/orgs","repos_url":"https://api.github.com/users/cookandy/repos","events_url":"https://api.github.com/users/cookandy/events{/privacy}","received_events_url":"https://api.github.com/users/cookandy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-07T16:01:48Z","updated_at":"2016-12-08T12:18:39Z","closed_at":null,"body":"Hi,\r\n\r\nI have a simple node application running in Marathon.  I am using ApacheBench to do a simple load test against my app.  When I go direct to the application via the marathon port, i.e. `ab -n 6000 -c 300 -k \"http://10.134.23.59:31700/\"` I see numbers like\r\n\r\n```\r\nRequests per second:    1053.19 [#/sec] (mean)\r\nRequests per second:    1104.31 [#/sec] (mean)\r\nRequests per second:    1069.48 [#/sec] (mean)\r\n```\r\n\r\nHowever, when I go through HAProxy,  i.e. `ab -H \"Host: myapp.service.consul\" -n 6000 -c 300 -k \"http://10.134.23.59/\"` I see numbers like\r\n\r\n```\r\nRequests per second:    699.89 [#/sec] (mean)\r\nRequests per second:    752.43 [#/sec] (mean)\r\nRequests per second:    747.10 [#/sec] (mean)\r\n```\r\n\r\nWhich is around `300 req/sec` worse than when going direct to the application.  \r\n\r\nI was wondering if you notice any performance issues when routing requests through HAProxy as I do...\r\n"},"comment":{"url":"https://api.github.com/repos/eBayClassifiedsGroup/PanteraS/issues/comments/265727128","html_url":"https://github.com/eBayClassifiedsGroup/PanteraS/issues/236#issuecomment-265727128","issue_url":"https://api.github.com/repos/eBayClassifiedsGroup/PanteraS/issues/236","id":265727128,"user":{"login":"sielaq","id":7736325,"avatar_url":"https://avatars.githubusercontent.com/u/7736325?v=3","gravatar_id":"","url":"https://api.github.com/users/sielaq","html_url":"https://github.com/sielaq","followers_url":"https://api.github.com/users/sielaq/followers","following_url":"https://api.github.com/users/sielaq/following{/other_user}","gists_url":"https://api.github.com/users/sielaq/gists{/gist_id}","starred_url":"https://api.github.com/users/sielaq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sielaq/subscriptions","organizations_url":"https://api.github.com/users/sielaq/orgs","repos_url":"https://api.github.com/users/sielaq/repos","events_url":"https://api.github.com/users/sielaq/events{/privacy}","received_events_url":"https://api.github.com/users/sielaq/received_events","type":"User","site_admin":false},"created_at":"2016-12-08T12:18:39Z","updated_at":"2016-12-08T12:18:39Z","body":"Did you tired with fabio instead ? it should works much better since there is any additional  iptables redirects in between. (we use iptables to switch HAproxy instances - so we can smoothly change HAproxy config when HAproxy is reloaded)\r\n\r\nTry also this ApacheBench check directly to HAproxy  on port 8660 or 8550 - omitting iptables balancer."}}
{"actor":{"display_login":"sielaq"}}