|
1 | 1 | ---
|
2 | 2 | title: "Synching data between two Elasticsearch clusters using a gateway"
|
3 | 3 | meta_title: "Synching data between two ES clusters"
|
4 |
| -description: "Introducing the request replication feature of the NFINI Gateway." |
| 4 | +description: "Introducing the request replication feature of the INFINI Gateway." |
5 | 5 | date: 2024-12-21T09:00:00Z
|
6 | 6 | image: "/images/posts/2024/synching-data-between-two-clusters-using-gateway/cover.jpg"
|
7 | 7 | categories: ["Elasticsearch", "Gateway"]
|
@@ -78,24 +78,28 @@ curl -X POST "localhost:18000/_bulk?pretty" -H 'Content-Type: application/json'
|
78 | 78 | '
|
79 | 79 | ```
|
80 | 80 | 
|
| 81 | + |
81 | 82 | Query data from the PROD cluster.
|
82 | 83 | ```shell
|
83 | 84 | # Endpoint and credentials of the PROD cluster
|
84 | 85 | curl 192.168.56.3:7171/test/_search?pretty -uelastic:password
|
85 | 86 | ```
|
86 | 87 | 
|
| 88 | + |
87 | 89 | Query data from the BACKUP cluster.
|
88 | 90 | ```shell
|
89 | 91 | # Endpoint and credentials of the BACKUP cluster
|
90 | 92 | curl 192.168.56.3:9200/test/_search?pretty -uadmin:admin
|
91 | 93 | ```
|
92 | 94 | 
|
| 95 | + |
93 | 96 | Query data from the INFINI Gateway.
|
94 | 97 | ```shell
|
95 | 98 | # INFINI Gateway's endpoint & credentials of PROD cluster
|
96 | 99 | curl 192.168.56.3:18000/test/_search?pretty -uelastic:password
|
97 | 100 | ```
|
98 | 101 | 
|
| 102 | + |
99 | 103 | Whether you are querying data from the PROD cluster or the BACKUP cluster, you will receive the same data. You also have the option to query data directly from the INFINI Gateway, which by default forwards search requests to the PROD cluster.
|
100 | 104 |
|
101 | 105 | In case the PROD cluster is not accessible, it will automatically redirect search requests to the BACKUP cluster. The gateway not only supports replicating write data requests but also supports delete and update data requests.
|
|
0 commit comments