-
Notifications
You must be signed in to change notification settings - Fork 57
Wsagent ping is getting HTTP 200 even if the route is not returning consistent HTTP 200 responses. #479
Comments
More details on the problem: When a route is created on osio it go through 3 different states: Not ready state
Flapping state
Ready state
To verify that we can use hello-openshift.yaml ( The problem is that Che is not able to detect the flapping state of the route and think that the route is ready even if it's not yet. Che only gets response status code 200s when |
have not tested yet, but we probably could have smth. like this [1] in place (use okhttp for verification) image - |
It is also does not look like a caching problem since |
@ibuziuk in the sample I've provided okttp is used too. And I confirm you that this doesn't solve the problem: using |
Headers from curl: Headers form java test running from IDE are not caught by Fiddler for some reason, so I plan to package the test with okhttp to jar and execute it from terminal. As you can see from the request headers the only thing that seems to be added by curl is |
Adding |
hmmm... all this becoming even more weird - after adding
|
it is also quite interesting to take a look at response headers:
only 503 contains |
So, it is now becoming clear that java clients add some header (most likely
|
After some investigation I think the problem is related to @l0rd I guess the easiest way to fix it would be adding [1] https://github.com/ibuziuk/route-flapping |
Well done @ibuziuk!
@l0rd <https://github.com/l0rd> I guess the easiest way to fix it would be
adding -Dhttp.keepAlive=false during che-server start-up on osio. WDYT ?
The problem with that approach is that all wsmaster TCP connections would
be affected and Che performances will be decreased. I would rather modify
the class where the ping to the wsagent are implemented and make only these
packets with ’keepAlive=false’ while the rest of the TCP packets sent by
Che would not be changed.
|
@l0rd after prod cluster update to 3.7.9 route flapping is not reproducible anymore |
PR has been sent eclipse-che/che#7898 |
@l0rd going to close this one after PR[1] to che6 branch would be merged |
PR to che6 is merged - closing |
That is the long term solution for openshiftio/openshift.io#1599 (comment)
The text was updated successfully, but these errors were encountered: