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
Web interface times out easily on slow connections #1746
Comments
I have noticed this same issue on Digital Ocean, where there is sometimes very high latency. |
The timeout is currently set to 15 seconds. The content in Two things can be done to fix this problem:
|
Basically, the problem is not that much about latency but more about speed. |
I see. Thanks for the explanation. I wonder if we could gzip the data as a quick work-around? Most browsers can decode gzipped content transparently. |
That would be useful, and would also set the stage for offering gzipped JSON replies to clients, or for gzipping data before writing it to disk. |
Yes, gzipping would be huge for the web UI in general. |
It would actually be pretty easy to make our HTTP server support gzipping. |
Note that this is related to #1392. |
Assigning to @Tryneus. We'll gzip the response of the http server and see what happens. |
Working on gzip in the server now. |
This is implemented and up in review 1130. |
@Tryneus could you post some bandwidth use numbers for the web ui with and without gzip? (chrome console should easily be able to tell you) |
Right click on the top bar > task manager |
Oh, I already did that to test, but didn't want to bother typing it up. Here's what I found:
I also did some tests with the data explorer using rows from
This request hit the stream batch size, and two responses were seen: So, as you can see, we get a very good compression ratio on our stats, about 90%, while our directory and arbitrary JSON rows compress about 50%. |
👍 |
This is awesome. That should improve things a lot when managing remote clusters. |
I periodically get "You have been disconnected from the server" messages in the web interface on a certain cluster. After a few seconds it reconnects, and remains connected for a while before it happens again. I don't have any load on the server, so I don't think this is actually a server issue.
The RethinkDB cluster is a 3-node cluster running on CloudSigma in Switzerland, and I'm connecting to the web interface from our office. I think this might be due to the relatively high network latency.
ICMP ping shows round-trip times of between 250 and almost 500 ms. Could that be enough to cause the timeout?
It seems that our timeout might be too short. Or maybe we serialize requests, such that the high latency on the connection has an overly huge impact?
@neumino: Probably your domain. Any ideas?
The text was updated successfully, but these errors were encountered: