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.


Http plain connection

    "name": "clustername",
    "params": {
        "hosts": [""]

SSL and auth

    "params":  {
        "hosts": ["localhost", "otherhost"],
        "http_auth": ["user", "secret"],
        "scheme": "https",
        "port": 443

More examples here

Last updated