Comment on page
Cluster Discovery
Cluster discovery explained
The discovery system behind Comrade is pretty simple.
During startup the service lists the content of clusters (configurable) folder and load all the files that ends with .json.
Each json have the connection information for a single cluster. Comrade uses the official python client of elasticsearch and the params key passed directly to Elasticsearch connection constructor.
{
"name": "clustername",
"params": {
"hosts": ["http://3.219.233.212:9200"]
}
}
{
"params": {
"hosts": ["localhost", "otherhost"],
"http_auth": ["user", "secret"],
"scheme": "https",
"port": 443
}
}
Last modified 4yr ago