Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exvars parameter not working on round-robin #2

Merged
merged 1 commit into from
Jan 25, 2016

Conversation

kumatch
Copy link
Contributor

@kumatch kumatch commented Jan 23, 2016

Probably EXVARS offset initialization is missing before worker setting.

% cat example.yml
domain: http://example.com/
actions:
    - path: /
exvars:
    - name: _
      file: query.txt
query_params:
    _: "%(_)%"
% cat query.txt
0
1
2
3
4
5
6
7
8
9
% gohakai -n 6 -c 1 -verbose example.yml
2016/01/23 14:42:42 GET /?_=2
2016/01/23 14:42:42 264.747322ms 200 -1
2016/01/23 14:42:42 GET /?_=3
2016/01/23 14:42:43 130.533739ms 200 -1
2016/01/23 14:42:43 GET /?_=4
2016/01/23 14:42:43 130.3825ms 200 -1
2016/01/23 14:42:43 GET /?_=5
2016/01/23 14:42:43 130.348627ms 200 -1
2016/01/23 14:42:43 GET /?_=6
2016/01/23 14:42:43 130.851899ms 200 -1
2016/01/23 14:42:43 GET /?_=6
2016/01/23 14:42:43 134.467815ms 200 -1

request count:6, concurrency:1, time:0.92312[s], 6.499678[req/s]
SUCCESS 6
FAILED 0
Average response time[ms]: 153.555317
% gohakai -n 6 -c 3 -verbose example.yml
2016/01/23 14:43:08 GET /?_=4
2016/01/23 14:43:08 GET /?_=4
2016/01/23 14:43:08 GET /?_=4
2016/01/23 14:43:09 256.174155ms 200 -1
2016/01/23 14:43:09 GET /?_=6
2016/01/23 14:43:09 264.199258ms 200 -1
2016/01/23 14:43:09 GET /?_=6
2016/01/23 14:43:09 270.398372ms 200 -1
2016/01/23 14:43:09 GET /?_=6
2016/01/23 14:43:09 125.287722ms 200 -1
2016/01/23 14:43:09 135.216033ms 200 -1
2016/01/23 14:43:09 143.228253ms 200 -1

request count:6, concurrency:3, time:0.41444[s], 14.477213[req/s]
SUCCESS 6
FAILED 0
Average response time[ms]: 199.0839655

@kumatch
Copy link
Contributor Author

kumatch commented Jan 23, 2016

Here are fixed executions.

% /gohakai -n 6 -verbose example.yml  [~/tmp/gohakai]
2016/01/23 15:09:10 GET /?_=0
2016/01/23 15:09:10 255.574113ms 200 -1
2016/01/23 15:09:10 GET /?_=1
2016/01/23 15:09:10 125.457012ms 200 -1
2016/01/23 15:09:10 GET /?_=2
2016/01/23 15:09:10 126.139929ms 200 -1
2016/01/23 15:09:10 GET /?_=3
2016/01/23 15:09:10 125.3506ms 200 -1
2016/01/23 15:09:10 GET /?_=4
2016/01/23 15:09:10 125.445957ms 200 -1
2016/01/23 15:09:10 GET /?_=5
2016/01/23 15:09:11 128.83025ms 200 -1

request count:6, concurrency:1, time:0.88867[s], 6.751668[req/s]
SUCCESS 6
FAILED 0
Average response time[ms]: 147.7996435
% gohakai -n 6 -c 3 -verbose example.yml
2016/01/23 15:09:37 GET /?_=0
2016/01/23 15:09:37 GET /?_=1
2016/01/23 15:09:37 GET /?_=2
2016/01/23 15:09:37 251.786056ms 200 -1
2016/01/23 15:09:37 GET /?_=3
2016/01/23 15:09:37 265.252213ms 200 -1
2016/01/23 15:09:37 GET /?_=4
2016/01/23 15:09:37 276.889878ms 200 -1
2016/01/23 15:09:37 GET /?_=5
2016/01/23 15:09:37 123.600336ms 200 -1
2016/01/23 15:09:37 130.622302ms 200 -1
2016/01/23 15:09:37 138.45361ms 200 -1

request count:6, concurrency:3, time:0.41713[s], 14.384028[req/s]
SUCCESS 6
FAILED 0
Average response time[ms]: 197.76739916666668

@hhatto
Copy link
Member

hhatto commented Jan 25, 2016

Thanks!!

hhatto added a commit that referenced this pull request Jan 25, 2016
exvars parameter not working on round-robin
@hhatto hhatto merged commit 113ab45 into KLab:master Jan 25, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants