Skip to content

Commit 0b0be34

Browse files
Merge pull request #1187 from redis/DOC-4876-rdi-set-eviction
DOC-4876 added info about how to set eviction policy and data persistence
2 parents 7a1a3f8 + f21bb9c commit 0b0be34

File tree

3 files changed

+93
-6
lines changed

3 files changed

+93
-6
lines changed

content/integrate/redis-data-integration/installation/install-k8s.md

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,38 @@ information. *This requires Redis Enterprise v6.4 or greater*.
6262
- If you are deploying RDI for a production environment then secure this database with a password
6363
and [TLS](https://en.wikipedia.org/wiki/Transport_Layer_Security).
6464
- Set the database's
65-
[eviction policy]({{< relref "/operate/rs/databases/memory-performance/eviction-policy" >}}) to `noeviction` and set
65+
[eviction policy]({{< relref "/operate/rs/databases/memory-performance/eviction-policy" >}}) to `noeviction`. Note that you can't set this using
66+
[`rladmin`]({{< relref "/operate/rs/references/cli-utilities/rladmin" >}}),
67+
so you must either do it using the admin UI or with the following
68+
[REST API]({{< relref "/operate/rs/references/rest-api" >}})
69+
command:
70+
71+
```bash
72+
curl -v -k -d '{"eviction_policy": "noeviction"}' \
73+
-u '<USERNAME>:<PASSWORD>' \
74+
-H "Content-Type: application/json" \
75+
-X PUT https://<CLUSTER_FQDN>:9443/v1/bdbs/<BDB_UID>
76+
```
77+
78+
- Set the database's
6679
[data persistence]({{< relref "/operate/rs/databases/configure/database-persistence" >}})
67-
to AOF - fsync every 1 sec.
80+
to AOF - fsync every 1 sec. Note that you can't set this using
81+
[`rladmin`]({{< relref "/operate/rs/references/cli-utilities/rladmin" >}}),
82+
so you must either do it using the admin UI or with the following
83+
[REST API]({{< relref "/operate/rs/references/rest-api" >}})
84+
commands:
85+
86+
```bash
87+
curl -v -k -d '{"data_persistence":"aof"}' \
88+
-u '<USERNAME>:<PASSWORD>' \
89+
-H "Content-Type: application/json"
90+
-X PUT https://<CLUSTER_FQDN>:9443/v1/bdbs/<BDB_UID>
91+
curl -v -k -d '{"aof_policy":"appendfsync-every-sec"}' \
92+
-u '<USERNAME>:<PASSWORD>' \
93+
-H "Content-Type: application/json" \
94+
-X PUT https://<CLUSTER_FQDN>:9443/v1/bdbs/<BDB_UID>
95+
```
96+
6897
- **Ensure that the RDI database is not clustered.** RDI will not work correctly if the
6998
RDI database is clustered, but it is OK for the target database to be clustered.
7099

content/integrate/redis-data-integration/installation/install-vm.md

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,38 @@ Use the Redis console to create the RDI database with the following requirements
203203
and TLS.
204204
- Provide the installation with the required RDI database details.
205205
- Set the database's
206-
[eviction policy]({{< relref "/operate/rs/databases/memory-performance/eviction-policy" >}}) to `noeviction` and set
206+
[eviction policy]({{< relref "/operate/rs/databases/memory-performance/eviction-policy" >}}) to `noeviction`. Note that you can't set this using
207+
[`rladmin`]({{< relref "/operate/rs/references/cli-utilities/rladmin" >}}),
208+
so you must either do it using the admin UI or with the following
209+
[REST API]({{< relref "/operate/rs/references/rest-api" >}})
210+
command:
211+
212+
```bash
213+
curl -v -k -d '{"eviction_policy": "noeviction"}' \
214+
-u '<USERNAME>:<PASSWORD>' \
215+
-H "Content-Type: application/json" \
216+
-X PUT https://<CLUSTER_FQDN>:9443/v1/bdbs/<BDB_UID>
217+
```
218+
219+
- Set the database's
207220
[data persistence]({{< relref "/operate/rs/databases/configure/database-persistence" >}})
208-
to AOF - fsync every 1 sec.
221+
to AOF - fsync every 1 sec. Note that you can't set this using
222+
[`rladmin`]({{< relref "/operate/rs/references/cli-utilities/rladmin" >}}),
223+
so you must either do it using the admin UI or with the following
224+
[REST API]({{< relref "/operate/rs/references/rest-api" >}})
225+
commands:
226+
227+
```bash
228+
curl -v -k -d '{"data_persistence":"aof"}' \
229+
-u '<USERNAME>:<PASSWORD>' \
230+
-H "Content-Type: application/json"
231+
-X PUT https://<CLUSTER_FQDN>:9443/v1/bdbs/<BDB_UID>
232+
curl -v -k -d '{"aof_policy":"appendfsync-every-sec"}' \
233+
-u '<USERNAME>:<PASSWORD>' \
234+
-H "Content-Type: application/json" \
235+
-X PUT https://<CLUSTER_FQDN>:9443/v1/bdbs/<BDB_UID>
236+
```
237+
209238
- **Ensure that the RDI database is not clustered.** RDI will not work correctly if the
210239
RDI database is clustered, but it is OK for the target database to be clustered.
211240

content/integrate/redis-data-integration/quick-start-guide.md

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,38 @@ Use the Redis console to create the RDI database with the following requirements
6060
to 250MB if you want to add a replica.
6161
- Provide the installation with the required RDI database details.
6262
- Set the database's
63-
[eviction policy]({{< relref "/operate/rs/databases/memory-performance/eviction-policy" >}}) to `noeviction` and set
63+
[eviction policy]({{< relref "/operate/rs/databases/memory-performance/eviction-policy" >}}) to `noeviction`. Note that you can't set this using
64+
[`rladmin`]({{< relref "/operate/rs/references/cli-utilities/rladmin" >}}),
65+
so you must either do it using the admin UI or with the following
66+
[REST API]({{< relref "/operate/rs/references/rest-api" >}})
67+
command:
68+
69+
```bash
70+
curl -v -k -d '{"eviction_policy": "noeviction"}' \
71+
-u '<USERNAME>:<PASSWORD>' \
72+
-H "Content-Type: application/json" \
73+
-X PUT https://<CLUSTER_FQDN>:9443/v1/bdbs/<BDB_UID>
74+
```
75+
76+
- Set the database's
6477
[data persistence]({{< relref "/operate/rs/databases/configure/database-persistence" >}})
65-
to AOF - fsync every 1 sec.
78+
to AOF - fsync every 1 sec. Note that you can't set this using
79+
[`rladmin`]({{< relref "/operate/rs/references/cli-utilities/rladmin" >}}),
80+
so you must either do it using the admin UI or with the following
81+
[REST API]({{< relref "/operate/rs/references/rest-api" >}})
82+
commands:
83+
84+
```bash
85+
curl -v -k -d '{"data_persistence":"aof"}' \
86+
-u '<USERNAME>:<PASSWORD>' \
87+
-H "Content-Type: application/json"
88+
-X PUT https://<CLUSTER_FQDN>:9443/v1/bdbs/<BDB_UID>
89+
curl -v -k -d '{"aof_policy":"appendfsync-every-sec"}' \
90+
-u '<USERNAME>:<PASSWORD>' \
91+
-H "Content-Type: application/json" \
92+
-X PUT https://<CLUSTER_FQDN>:9443/v1/bdbs/<BDB_UID>
93+
```
94+
6695
- **Ensure that the RDI database is not clustered.** RDI will not work correctly if the
6796
RDI database is clustered, but it is OK for the target database to be clustered.
6897

0 commit comments

Comments
 (0)