We're updating the issue view to help you get more done. 

Auth performance tests are failing due to errored requests

Description

Most of the auth performance tests are currently failing due to errored requests. The response that is coming from the server is 502 bad request. Is it possible that the server under test/ELB simply cannot handle such concurrency?

1 2 3 09:32:09 INFO: Current: 20 vu 480 succ 18 fail 0.040 avg rt / Cumulative: 0.071 avg rt, 0% failures 09:32:10 INFO: Current: 20 vu 590 succ 7 fail 0.034 avg rt / Cumulative: 0.071 avg rt, 0% failures 09:32:11 INFO: Current: 20 vu 501 succ 8 fail 0.038 avg rt / Cumulative: 0.070 avg rt, 0% failures
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 <httpSample t="16" lt="16" ts="1507666311369" s="false" lb="GetServiceToken" rc="502" rm="Bad Gateway" tn="get-service-token 1-3" dt="text" de="" by="330" ng="20" na="20"> <responseHeader class="java.lang.String">HTTP/1.1 502 Bad Gateway Content-Type: text/html Date: Tue, 10 Oct 2017 20:11:51 GMT Server: nginx/1.12.1 Content-Length: 173 Connection: keep-alive </responseHeader> <requestHeader class="java.lang.String">Connection: keep-alive Authorization: Basic dHJ1c3RlZC1jbGllbnQ6c2VjcmV0 Content-Type: application/x-www-form-urlencoded Content-Length: 29 Host: perftest.openlmis.org User-Agent: Apache-HttpClient/4.5.3 (Java/1.8.0_131) </requestHeader> <responseData class="java.lang.String">&lt;html&gt;&#xd; &lt;head&gt;&lt;title&gt;502 Bad Gateway&lt;/title&gt;&lt;/head&gt;&#xd; &lt;body bgcolor=&quot;white&quot;&gt;&#xd; &lt;center&gt;&lt;h1&gt;502 Bad Gateway&lt;/h1&gt;&lt;/center&gt;&#xd; &lt;hr&gt;&lt;center&gt;nginx/1.12.1&lt;/center&gt;&#xd; &lt;/body&gt;&#xd; &lt;/html&gt;&#xd; </responseData> <cookies class="java.lang.String"></cookies> <method class="java.lang.String">POST</method> <queryString class="java.lang.String">grant_type=client_credentials</queryString> <java.net.URL>https://perftest.openlmis.org/api/oauth/token</java.net.URL> </httpSample>

Environment

None

Status

Assignee

Unassigned

Reporter

Sebastian Brudziński

Labels

Components

Priority

Major