Comrade
  • Introduction
  • Installation
    • Using Docker
    • Using pip
    • From Source
  • Configuration
    • Cluster Discovery
    • Parameters and Environment Variables
  • Development
  • Screens
    • Main Screen
      • Index Settings
    • REST
  • Other
    • Contributing
    • Changelog
    • Roadmap
Powered by GitBook
On this page

Was this helpful?

  1. Configuration

Cluster Discovery

Cluster discovery explained

PreviousConfigurationNextParameters and Environment Variables

Last updated 5 years ago

Was this helpful?

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 and the params key passed directly to Elasticsearch connection constructor.

Examples

Http plain connection

{
    "name": "clustername",
    "params": {
        "hosts": ["http://3.219.233.212:9200"]
    }
}

SSL and auth

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

More examples

official python client of elasticsearch
here