Skip to content

Commit a203b7b

Browse files
authored
chore: modify blog post format (#8)
1 parent 00191e0 commit a203b7b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

content/english/posts/2024/synching-data-between-two-clusters-using-gateway.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "Synching data between two Elasticsearch clusters using a gateway"
33
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."
55
date: 2024-12-21T09:00:00Z
66
image: "/images/posts/2024/synching-data-between-two-clusters-using-gateway/cover.jpg"
77
categories: ["Elasticsearch", "Gateway"]
@@ -78,24 +78,28 @@ curl -X POST "localhost:18000/_bulk?pretty" -H 'Content-Type: application/json'
7878
'
7979
```
8080
![synching-data-between-two-clusters](/images/posts/2024/synching-data-between-two-clusters-using-gateway/pic-1.jpg)
81+
8182
Query data from the PROD cluster.
8283
```shell
8384
# Endpoint and credentials of the PROD cluster
8485
curl 192.168.56.3:7171/test/_search?pretty -uelastic:password
8586
```
8687
![synching-data-between-two-clusters](/images/posts/2024/synching-data-between-two-clusters-using-gateway/pic-2.jpg)
88+
8789
Query data from the BACKUP cluster.
8890
```shell
8991
# Endpoint and credentials of the BACKUP cluster
9092
curl 192.168.56.3:9200/test/_search?pretty -uadmin:admin
9193
```
9294
![synching-data-between-two-clusters](/images/posts/2024/synching-data-between-two-clusters-using-gateway/pic-3.jpg)
95+
9396
Query data from the INFINI Gateway.
9497
```shell
9598
# INFINI Gateway's endpoint & credentials of PROD cluster
9699
curl 192.168.56.3:18000/test/_search?pretty -uelastic:password
97100
```
98101
![synching-data-between-two-clusters](/images/posts/2024/synching-data-between-two-clusters-using-gateway/pic-4.jpg)
102+
99103
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.
100104

101105
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

Comments
 (0)