{"action":"created","issue":{"url":"https://api.github.com/repos/natsys/tempesta/issues/383","repository_url":"https://api.github.com/repos/natsys/tempesta","labels_url":"https://api.github.com/repos/natsys/tempesta/issues/383/labels{/name}","comments_url":"https://api.github.com/repos/natsys/tempesta/issues/383/comments","events_url":"https://api.github.com/repos/natsys/tempesta/issues/383/events","html_url":"https://github.com/natsys/tempesta/issues/383","id":124074168,"number":383,"title":"Large number of failures in ab benchmark tests","user":{"login":"keshonok","id":6352580,"avatar_url":"https://avatars.githubusercontent.com/u/6352580?v=3","gravatar_id":"","url":"https://api.github.com/users/keshonok","html_url":"https://github.com/keshonok","followers_url":"https://api.github.com/users/keshonok/followers","following_url":"https://api.github.com/users/keshonok/following{/other_user}","gists_url":"https://api.github.com/users/keshonok/gists{/gist_id}","starred_url":"https://api.github.com/users/keshonok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keshonok/subscriptions","organizations_url":"https://api.github.com/users/keshonok/orgs","repos_url":"https://api.github.com/users/keshonok/repos","events_url":"https://api.github.com/users/keshonok/events{/privacy}","received_events_url":"https://api.github.com/users/keshonok/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/natsys/tempesta/labels/crucial","name":"crucial","color":"ff1010"},{"url":"https://api.github.com/repos/natsys/tempesta/labels/Performance","name":"Performance","color":"f7c6c7"}],"state":"open","locked":false,"assignee":{"login":"keshonok","id":6352580,"avatar_url":"https://avatars.githubusercontent.com/u/6352580?v=3","gravatar_id":"","url":"https://api.github.com/users/keshonok","html_url":"https://github.com/keshonok","followers_url":"https://api.github.com/users/keshonok/followers","following_url":"https://api.github.com/users/keshonok/following{/other_user}","gists_url":"https://api.github.com/users/keshonok/gists{/gist_id}","starred_url":"https://api.github.com/users/keshonok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keshonok/subscriptions","organizations_url":"https://api.github.com/users/keshonok/orgs","repos_url":"https://api.github.com/users/keshonok/repos","events_url":"https://api.github.com/users/keshonok/events{/privacy}","received_events_url":"https://api.github.com/users/keshonok/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/natsys/tempesta/milestones/3","html_url":"https://github.com/natsys/tempesta/milestones/0.5.0%20Web%20Server","labels_url":"https://api.github.com/repos/natsys/tempesta/milestones/3/labels","id":1015684,"number":3,"title":"0.5.0 Web Server","description":"","creator":{"login":"krizhanovsky","id":884694,"avatar_url":"https://avatars.githubusercontent.com/u/884694?v=3","gravatar_id":"","url":"https://api.github.com/users/krizhanovsky","html_url":"https://github.com/krizhanovsky","followers_url":"https://api.github.com/users/krizhanovsky/followers","following_url":"https://api.github.com/users/krizhanovsky/following{/other_user}","gists_url":"https://api.github.com/users/krizhanovsky/gists{/gist_id}","starred_url":"https://api.github.com/users/krizhanovsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krizhanovsky/subscriptions","organizations_url":"https://api.github.com/users/krizhanovsky/orgs","repos_url":"https://api.github.com/users/krizhanovsky/repos","events_url":"https://api.github.com/users/krizhanovsky/events{/privacy}","received_events_url":"https://api.github.com/users/krizhanovsky/received_events","type":"User","site_admin":false},"open_issues":37,"closed_issues":77,"state":"open","created_at":"2015-03-10T23:31:23Z","updated_at":"2016-02-16T17:05:51Z","due_on":"2016-06-30T21:00:00Z","closed_at":null},"comments":2,"created_at":"2015-12-28T14:23:37Z","updated_at":"2016-02-16T17:11:36Z","closed_at":null,"body":"When running Tempesta under benchmark tests such as Apache's `ab` utility, the result is a very large number of failures. All of those failures are non-2xx responses. Tempesta generates error responses on internal errors, but it this case the error in question is `404` that is generated when a back end server is not available.\r\n\r\nThe issue closely correlates with how fast Tempesta restores connections to back end servers when those connections are closed. Current timeouts for re-establishing the connections with back end servers are too long to work well under high load. A different reconnect timeout algorithm is needed that would allow multiple reconnect attempts in a short time frame, and only after that would gradually increase the delay between attempts."},"comment":{"url":"https://api.github.com/repos/natsys/tempesta/issues/comments/184777105","html_url":"https://github.com/natsys/tempesta/issues/383#issuecomment-184777105","issue_url":"https://api.github.com/repos/natsys/tempesta/issues/383","id":184777105,"user":{"login":"krizhanovsky","id":884694,"avatar_url":"https://avatars.githubusercontent.com/u/884694?v=3","gravatar_id":"","url":"https://api.github.com/users/krizhanovsky","html_url":"https://github.com/krizhanovsky","followers_url":"https://api.github.com/users/krizhanovsky/followers","following_url":"https://api.github.com/users/krizhanovsky/following{/other_user}","gists_url":"https://api.github.com/users/krizhanovsky/gists{/gist_id}","starred_url":"https://api.github.com/users/krizhanovsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krizhanovsky/subscriptions","organizations_url":"https://api.github.com/users/krizhanovsky/orgs","repos_url":"https://api.github.com/users/krizhanovsky/repos","events_url":"https://api.github.com/users/krizhanovsky/events{/privacy}","received_events_url":"https://api.github.com/users/krizhanovsky/received_events","type":"User","site_admin":false},"created_at":"2016-02-16T17:11:36Z","updated_at":"2016-02-16T17:11:36Z","body":"Actually we need to try next server if a scheduled server is dead, see [Nginx's proxy_next_upstream_tries](http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_next_upstream_tries)"}}