-
Notifications
You must be signed in to change notification settings - Fork 11
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
Attempt next available server returned by Locate v2 API when receiving '503 Service Unavailable' #15
Comments
Hello, @hardikbhalodi - there are a combination of factors resulting in this message.
Because load on target servers can fluctuate, the errors may appear random from the client perspective. Because load may be higher in some regions than others, the frequency of these errors may be higher or lower for some users than others based only on location, number of users, and available server capacity. So, on one level, the ndt-server is doing the right thing here. On another, we could be doing a better job differentiating between upload and download tests. And, this community supported library (ndt7-client-android) should do a better job trying the next available server (if in fact it does not today). @hardikbhalodi - we would welcome changes to the ndt7-client-android library to try the next available server. This would make the client more resilient to transient load on target servers by trying the next available server. FYI: @robertodauria - this may be helped by adding support to the tx controller to differentiate upload from download. m-lab/ndt-server#334 |
The transmit controller now distinguishes between upload or download tests. Upload requests should not be impacted by recent download measurements. But, the first connection for download could still be subject to the transmit controller and the connection closed. So, all NDT clients should support trying the next available service URL returned by the Locate API. |
java.net.ProtocolException: Expected HTTP 101 response but was '503 Service Unavailable'
This happening randomly!
The text was updated successfully, but these errors were encountered: