I have to setup two solr servers, so that if one of the servers goes offline, traffic can be switched to the other server at runtime.
One way is to let Solr try to connect to the server and after it times out try connecting with the other server. Is there a better way of doing this? Using 'try..catch' method takes a long time, so if there isn't a better way then is there a faster way to use 'try..catch' method?
Thanks