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

Possible to calculate CCU (Concurrent User) in each vHost? #36

Closed
kietnlt opened this issue Mar 21, 2016 · 5 comments
Closed

Possible to calculate CCU (Concurrent User) in each vHost? #36

kietnlt opened this issue Mar 21, 2016 · 5 comments

Comments

@kietnlt
Copy link

kietnlt commented Mar 21, 2016

Dear,
Is it possible to calculate CCU (concurrent user ) in each vHost using Nginx Modules VTS ?

Thanks for your help,
My sincere,
Tuan Kiet,

@vozlt
Copy link
Owner

vozlt commented Mar 22, 2016

Hi.
Please see the issues/21.

@kietnlt
Copy link
Author

kietnlt commented Mar 22, 2016

Thanks so much for your help.
But I think the variable "Total Active Connection" is not CCU because it means how many sessions user interacting with web server. For example, If one user opens two sessions concurrently, the " Total active connection" is 2 but CCU is only 1, i think that.
If there have any mistaken in my options, would you like to give me the favors ?

@vozlt
Copy link
Owner

vozlt commented Mar 23, 2016

You're right.
Do you maybe want to count the number of unique IP addresses per second?
The above feature has not been implemented.

@kietnlt
Copy link
Author

kietnlt commented Mar 28, 2016

Hi,
Thanks for your help. The module you write is very interesting. It helps me so much in my project to monitor Nginx server. The variable "Total active connections" sum up Request per seconds in each vHost, doesn't it ?
Best regards,
Tuan Kiet.

@vozlt
Copy link
Owner

vozlt commented Mar 28, 2016

Yes, probably I think so if the keepalive is disabled(keepalive_timeout 0).
The variable ngx_stat_active(active) increased only one per a tcp connection and decreased when a tcp connection is closed.
FYI, See the ngx_http_stub_status_module and status variables in issue/35.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants