Score:0

Elasticsearch php client : server priority

us flag

Actual configuration: Consider a cluster of Elasticsearch 6.8 servers. Each server node has a cluster of ETL nodes (PHP Elasticsearch client). All the ETLs are configured to connect to all Elasticsearches.

  • Datacenter A
    • Elasticsearch server
    • ETL nodes
  • Datacenter B
    • Elasticsearch server
    • ETL nodes
  • ...

Question: Is there a way to tell the ETL nodes to import primarily to their local Elasticsearch server, and if down only, to any other one ?

Aknowledgements:

  • The first idea would be that on the ETLs, only the local server is configured. But in case of outage (or why not in case of overload) there would be no backup.
  • I also thinked about geo-DNS-ing, but the result is the same.
  • Using a load-balancer may solve the overload problem by conception, but will direct all the traffic across the datacenters, wich is what i don't want and would not change much to the actual.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.