Closed
Description
I have an existing index that I try to connect to. My production environment has 3 nodes, my test environment has 1. Trying to connect to either fails with RC-1, but works on both when I connect with the beta. All nodes are running ElasticSearch 1.1. All nodes are pingable, running properly, and the index exists. Has the connection api changed? I don't see it mentioned in the docs.
static ElasticClient GetClient()
{
var uriArray = (from string ip in ConfigurationManager.AppSettings["SearchNodes"].Split(',') select new Uri(ip)).ToArray();
var connectionPool = new SniffingConnectionPool(uriArray);
var settings = new ConnectionSettings(connectionPool, ConfigurationManager.AppSettings["IndexName"]);
var client = new ElasticClient(settings);
return client;
}
The code calling that function:
var esClient = GetClient();
bool validConnection = esClient.RootNodeInfo().ConnectionStatus.Success; //This throws a MaxRetryException
Metadata
Metadata
Assignees
Labels
No labels