Closed kostalihas closed 2 years ago
I don't think this is an issue with this bundle.
Did you solve this in the meantime? It seems you can enable failover
on the Loadbalancer
plugin:
https://github.com/solariumphp/solarium/blob/master/src/Plugin/Loadbalancer/Loadbalancer.php#L47
when I add multiple solr server as endpoint and using a single solarium client to fire query on any solr server; I add replication master/slave to solr. for now I taste when the server for onecore(master or slave) is failed the client/solarium must use the available endpoint.
I get this ERROR:
Message: Solr HTTP error: HTTP request failed, Failed connect to 127.0.0.1:8983; No error because i stop solr in port 8983 and solr is running at slave core in port 9000, in this case iam looking for to connect to localhost2 if localhost is not running. This is my code:
when the key localhost is not running and the key localhost2 is runing in port 9000 i get this Message Solr HTTP error: HTTP request failed, Failed connect to 127.0.0.1:8983; No error
ANd the output of $client->getEndpoint();