-
Notifications
You must be signed in to change notification settings - Fork 657
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
reactor_netty_http_server_connections_total with negative values #2956
Comments
violetagg
added a commit
that referenced
this issue
Nov 2, 2023
… close happens before connection open Fixes #2956
Thanks again, Now works with snap, no more negative values. I also managed to add CONNECTION_OPENED and CONNECTION_CLOSED total counts, which helps to monitor connection pool activity.
|
@jtorkkel Great! Thanks for the testing! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks,
I still see that total metrics is not working correctly, luckily I was able to "repro it".
Issue seems to happen with standard metrics too
I enabled all netty logs
logging.level.reactor.netty=TRACE
and noticed that someone tried to open non-TLS connection to TLS port. Turn out that I had browser window opened which tried to open Prometheus endpoint without TLS.But same can be triggered by calling actuator endpoint without TLS.
I added logging to recordTlsHandshakeTime/recordServerConnectionOpened/recordServerConnectionClosed/recordServerConnectionActive/recordServerConnectionInactive.
When TLS fails it can be seen that Opened is not called at all but Closed is called.
In success case it can be seen that Opened is called after TLS successful only.
Maybe Opened should be called before TLS already.
In success case also active is increased after TLS, maybe should be also called "before" TLS
Originally posted by @jtorkkel in #2940 (comment)
The text was updated successfully, but these errors were encountered: