C
C
Comrade
Search…
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.

Examples

Http plain connection

1
{
2
"name": "clustername",
3
"params": {
4
"hosts": ["http://3.219.233.212:9200"]
5
}
6
}
Copied!

SSL and auth

1
{
2
"params": {
3
"hosts": ["localhost", "otherhost"],
4
"http_auth": ["user", "secret"],
5
"scheme": "https",
6
"port": 443
7
}
8
}
Copied!
More examples here
Last modified 2yr ago
Copy link
Contents
Examples