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

count requests in (fast|http)router #36

Merged
merged 2 commits into from
Oct 29, 2012
Merged

count requests in (fast|http)router #36

merged 2 commits into from
Oct 29, 2012

Conversation

prymitive
Copy link
Contributor

This patch restores requests counting in fastrouter and httprouter after porting to new api

Concurrency Level:      4
Time taken for tests:   1.968 seconds
Complete requests:      1000
Failed requests:        0
Write errors:           0
Total transferred:      97412000 bytes
HTML transferred:       97197000 bytes
Requests per second:    508.17 [#/sec] (mean)
Time per request:       7.871 [ms] (mean)
Time per request:       1.968 [ms] (mean, across all concurrent requests)
Transfer rate:          48341.72 [Kbytes/sec] received

"nodes": [
    {
        "name": "172.16.200.55:3001",
        "modifier1": 0,
        "modifier2": 0,
        "last_check": 1351504817,
        "requests": 1000,
        "tx": 0,
        "cores": 2,
        "load": 0,
        "weight": 1,
        "wrr": 0,
        "ref": 0,
        "failcnt": 0,
        "death_mark": 0
    }
]

@prymitive
Copy link
Contributor Author

Wait a second, I'll have weird stats for high concurrency levels

@prymitive
Copy link
Contributor Author

I almost got the rebase procedure right.

Concurrency Level:      700
Time taken for tests:   20.987 seconds
Complete requests:      10000
Failed requests:        0
Write errors:           0
Total transferred:      974258010 bytes
HTML transferred:       972107580 bytes
Requests per second:    476.49 [#/sec] (mean)
Time per request:       1469.067 [ms] (mean)
Time per request:       2.099 [ms] (mean, across all concurrent requests)
Transfer rate:          45334.68 [Kbytes/sec] received

Fastrouter:
"nodes": [
    {
        "name": "172.16.200.55:3001",
        "modifier1": 0,
        "modifier2": 0,
        "last_check": 1351507151,
        "requests": 10002,
        "tx": 0,
        "cores": 2,
        "load": 0,
        "weight": 1,
        "wrr": 0,
        "ref": 0,
        "failcnt": 0,
        "death_mark": 0
    }
]

Backend:
"requests":5240,
"requests":4762,

So FastRouter and backend counters are consistent, I guess that those 2 extra requests are retries or something (although I don't have any errors in my logs)

unbit added a commit that referenced this pull request Oct 29, 2012
count requests in (fast|http)router
@unbit unbit merged commit 7e93525 into unbit:master Oct 29, 2012
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