-
Notifications
You must be signed in to change notification settings - Fork 28
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
Prometheus RSocket Proxy Client does not connect to Prometheus RSocket Proxy Server when using Spring Boot Native Images #94
Comments
I am going to upgrade to Edit: The error still occurs with |
I applied the following logging configuration to debug: logging:
level:
io.micrometer.prometheus.rsocket.PrometheusRSocketClient: trace And saw the following output for a native application:
For the java application it was working fine all the time:
Output with the recent changes in the case it is working:
I try to debug rsocket, now. |
I couldn't find the issue. spring-boot 3.4.1 is using rsocket-core 1.1.3 which supports native-image already: https://github.com/rsocket/rsocket-java/releases/tag/1.1.3 Note: The Java and Native application are configured exactly the same. (Port Maybe it would be good to upgrade the version to at lest |
I updated the native image setup and tested it again: https://github.com/klopfdreh/prometheus-rsocket-native-test - there was no issue at all, but for a local docker setup the service is missing in-between the connection from the client to the server - it seems to be some kind of a race condition. |
Updating to to
or to RSocket
Also we decreased the Pod-Count to only 1 as during the TCP-Connection the key is exchanged which might not be available on the other Pod if the load balancing is round robin. I think it should be considered to write it into the documentation that you have to use either some kind of sticky interactions or only use one Pod. Example for service: kind: Service
apiVersion: v1
metadata:
# ....
spec:
# ....
sessionAffinity: ClientIP |
I improved the client code a bit but I was not able to fix the issue within native images 100%. It is working most of the time, but sometimes it is like mentioned in the comment #94 (comment) |
Currently we are facing the issue that if you use Spring Boot Native Images, the
Prometheus RSocket Proxy Client
does run into a timeout each time it connects to thePrometheus RSocket Proxy Server
. For normal Java Application everything is working fine.I also tried to increase the timeout with the newly introduced option #86
Tested version:
2.0.0-M3
The text was updated successfully, but these errors were encountered: