I have an Elasticsearch cluster with Compose.io but I can't connect with Elastica Client. This is my configuration :
$elasticaClient = new \Elastica\Client(array(
'servers' => array(
array('host' => 'https://myusername:mypass@aws-us-east-1-portal2.dblayer.com', 'port' => 10050),
array('host' => 'https://myusername:mypass@aws-us-east-1-portal3.dblayer.com', 'port' => 10062)
)
));
$elasticaIndex = $elasticaClient->getIndex('test');
I got this error :
Couldn't resolve host 500 Internal Server Error
How to correctly connect to the database ?