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

how to monitor h2 workers ? #159

Open
catalindevops opened this issue Apr 26, 2018 · 8 comments
Open

how to monitor h2 workers ? #159

catalindevops opened this issue Apr 26, 2018 · 8 comments

Comments

@catalindevops
Copy link

hello,

I upgraded apache to 2.4.25 from debian 9 sources and enbled http2 and my monitoring tools shows that number of requests per second dropped from 250 rps to 40-50 rps. I'm using zabbix and netdata and both interrogate mod_status from apache . I read that http2 has his own workers which don't appear in mod status, so my question is if there something that i can use to monitor number of requests ?
I presume that those 40-50 maybe are http 1.1 requests

Please help :(

@icing
Copy link
Owner

icing commented Apr 26, 2018

I guess, someone needs to implement that functionality then.

@catalindevops
Copy link
Author

I know, what i don't understand is why when this module http2 was added, the status module was not modified to also monitor the h2workers or to offer some alternative to monitor the h2workers.

@icing
Copy link
Owner

icing commented Apr 26, 2018

If you'd had a time machine, that knowledge could be useful in changing the past, I agree.

@icing
Copy link
Owner

icing commented Apr 28, 2018

Looking forward: do you know which data exactly they screen-scrape from mod_status? Because I see h2 requests being reports on my 2.4 instance, as in:

...
Total accesses: 186990 - Total Traffic: 159.3 MB
CPU Usage: u19.44 s20.9 cu0 cs0 - 224% CPU load
10400 requests/sec - 8.9 MB/second - 893 B/request
...

(From a freshly started server running h2 load tests, no h1 requests)

So, can you specify exactly what you are missing? Otherwise, this might be more a question for zabbix or netdata?

@catalindevops
Copy link
Author

This is strange because i'm try also to do a load test using h2load from nghttp2 and monitor apache status with apache2ctl status and my number of requests per seconds is not changing.

..........
Apache Server Status for localhost (via ::1)

Server Version: Apache/2.4.25 (Debian) OpenSSL/1.0.2l
Server MPM: prefork
Server Built: 2017-09-19T18:58:57


Current Time: Thursday, 03-May-2018 10:15:23 CEST
Restart Time: Thursday, 03-May-2018 06:46:07 CEST
Parent Server Config. Generation: 1
Parent Server MPM Generation: 0
Server uptime: 3 hours 29 minutes 16 seconds
Server load: 16.73 11.57 6.52
Total accesses: 32747 - Total Traffic: 118.4 MB
CPU Usage: u151.61 s46.76 cu0 cs0 - 1.58% CPU load
2.61 requests/sec - 9.7 kB/second - 3791 B/request
102 requests currently being processed, 8 idle workers

@icing
Copy link
Owner

icing commented May 3, 2018

Hmm, can you compile a recent 2.4.x release? Such as 2.4.33 or there are also supposed to be such packages in debian sid and there is an ubuntu ppa as well. Just want to exclude that we are not comparing apples and oranges.

@catalindevops
Copy link
Author

With mod http2 enabled number of requests per second from apache2ctl status is not changing at all, but when i disabled the http2 module and restart apache, number of requests is changing, this is my behavior now

@catalindevops
Copy link
Author

Ok, i will compile a new version and come back with a result

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