If the server does not respond in a timely manner (solr), then you should consider submitting it down and presenting an error message regardless of whether it is or not (i.e. it takes a lot of time because it is overloaded). If loading the user forever leaves :)
Most solr clients have timeout and error callbacks. If a timeout occurs, you will see an error.
If you want to find out very quickly that the server is turned off, you can put the JSP in solr, which does nothing but print a message. Then do an HTTP GET for the JSP, and if it doesn't work very fast then the server will be unavailable.
Adam gent
source share