Skip to content

Commit 10cffce

Browse files
committed
demo docs updates
1 parent 3d54aa0 commit 10cffce

File tree

5 files changed

+29
-33
lines changed

5 files changed

+29
-33
lines changed

connectors/postgres/README.md

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Copy the _sample_ directory and it's contents i.e. _yml_ files, _mappers_ and te
7575

7676
#### Configuration files
7777

78-
<details><summary>Configure logback.xml</summary>
78+
<details><summary>Configure logback.xml [OPTIONAL]</summary>
7979
<p>
8080

8181
#### logging configuration file.
@@ -177,7 +177,7 @@ Copy the _sample_ directory and it's contents i.e. _yml_ files, _mappers_ and te
177177
</p>
178178
</details>
179179

180-
<details><summary>Configure env.yml</summary>
180+
<details><summary>Configure env.yml [MANDATORY]</summary>
181181
<p>
182182

183183
#### Environment configuration file with source and target connection information.
@@ -187,7 +187,7 @@ Redis URI syntax is described [here](https://github.com/lettuce-io/lettuce-core/
187187
### Sample env.yml under redis-connect-postgres/config/samples/[postgres|loader] folder. Any of these fields (values) can be replaced by environment variables.
188188
| :memo: |
189189
|---------------|
190-
If you encounter <a href="https://debezium.io/documentation/reference/stable/connectors/postgresql.html#postgresql-wal-disk-space" target="_blank">WAL disk space consumption</a> issue with Postgres then <a href="https://github.com/redis-field-engineering/redis-connect-dist/blob/main/connectors/postgres/demo/postgres_cdc.sql#L18-L20" target="_blank">Create a heartbeat table</a> and uncomment the `heartbeat.interval.ms` and `heartbeat.action.query` properties below and enable the producer's pipeline for the `heartbeat` table by uncommenting `#- public.heartbeat # heartbeat table to keep postgres active` in `JobConfig.yml`.
190+
If you encounter <a href="https://debezium.io/documentation/reference/stable/connectors/postgresql.html#postgresql-wal-disk-space" target="_blank">WAL disk space consumption</a> issue with Postgres then <a href="https://github.com/redis-field-engineering/redis-connect-dist/blob/main/connectors/postgres/demo/postgres_cdc.sql#L18-L20" target="_blank">Create a heartbeat table</a> and uncomment the `heartbeat.interval.ms` and `heartbeat.action.query` properties below.
191191

192192
```yml
193193
connections:
@@ -216,7 +216,7 @@ connections:
216216
</p>
217217
</details>
218218

219-
<details><summary>Configure Setup.yml</summary>
219+
<details><summary>Configure Setup.yml [MANDATORY]</summary>
220220
<p>
221221

222222
#### Environment level configurations.
@@ -264,7 +264,7 @@ job:
264264
</p>
265265
</details>
266266
267-
<details><summary>Configure JobManager.yml</summary>
267+
<details><summary>Configure JobManager.yml [OPTIONAL]</summary>
268268
<p>
269269
270270
#### Configuration for Job Reaper and Job Claimer processes.
@@ -280,7 +280,7 @@ metricsReporter:
280280
</p>
281281
</details>
282282
283-
<details><summary>Configure JobConfig.yml</summary>
283+
<details><summary>Configure JobConfig.yml [MANDATORY]</summary>
284284
<p>
285285
286286
#### Job level details. Please see [writers](../../docs/writers.md) for other write stage usages.
@@ -296,7 +296,6 @@ producerConfig:
296296
connectionId: RDBConnection
297297
tables:
298298
- public.emp #schema.table
299-
#- public.heartbeat # heartbeat table to keep postgres active
300299
metricsEnabled: false
301300
pipelineConfig:
302301
eventTranslator: "${sourceValueTranslator}"
@@ -324,7 +323,7 @@ pipelineConfig:
324323
</p>
325324
</details>
326325
327-
<details><summary>Configure mapper.yml</summary>
326+
<details><summary>Configure mapper.yml [MANDATORY]</summary>
328327
<p>
329328
330329
#### mapper configuration file.
@@ -366,16 +365,6 @@ tables:
366365
- src: dept
367366
target: Department
368367
type: INT
369-
#- table: heartbeat
370-
#mapper:
371-
#id: heartbeat
372-
#processorID: heartbeat
373-
#publishBefore: false
374-
#passThrough: true
375-
#columns:
376-
#- src: id
377-
#target: id
378-
#publishBefore: false
379368
```
380369
381370
If you don't need any transformation of source columns then you can simply use passThrough option and you don't need to explicitly map each source columns to Redis target data structure.

connectors/postgres/demo/config/samples/postgres/JobConfig.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ producerConfig:
44
connectionId: RDBConnection
55
tables:
66
- public.emp #schema.table
7-
#- public.heartbeat # heartbeat table to keep postgres active
87
metricsEnabled: false
98
pipelineConfig:
109
eventTranslator: "${sourceValueTranslator}"

connectors/postgres/demo/config/samples/postgres/env.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ connections:
1717
port: 5432
1818
username: ${REDISCONNECT_SOURCE_USERNAME}
1919
password: ${REDISCONNECT_SOURCE_PASSWORD}
20-
#heartbeat.interval.ms: 10000
21-
#heartbeat.action.query: "INSERT INTO heartbeat (id, ts) VALUES (1, NOW()) ON CONFLICT(id) DO UPDATE SET ts=EXCLUDED.ts;"
20+
heartbeat.interval.ms: 10000
21+
heartbeat.action.query: "INSERT INTO heartbeat (id, ts) VALUES (1, NOW()) ON CONFLICT(id) DO UPDATE SET ts=EXCLUDED.ts;"

connectors/postgres/k8s-docs/redis-connect-postgres-stage.yaml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,16 @@ spec:
118118
path: env.yml
119119
- key: mapper1.yml
120120
path: mappers/mapper1.yml
121-
- name: custom-stage-volume
122-
configMap:
123-
name: redis-connect-postgres-config
124-
items: # define as many custom stages as you have here
125-
- key: redis-connect-custom-stage-demo-1.0-SNAPSHOT.jar
126-
path: redis-connect-custom-stage-demo-1.0-SNAPSHOT.jar
121+
# #### uncomment the following six lines if you have custom
122+
# transformation implementation and replace the jar with
123+
# your own.
124+
# ####
125+
#- name: custom-stage-volume
126+
#configMap:
127+
#name: redis-connect-postgres-config
128+
#items: # define as many custom stages as you have here
129+
#- key: redis-connect-custom-stage-demo-1.0-SNAPSHOT.jar
130+
#path: redis-connect-custom-stage-demo-1.0-SNAPSHOT.jar
127131
- name: tmpfsdir
128132
emptyDir: # node-ephemeral volume
129133
medium: Memory

connectors/postgres/k8s-docs/redis-connect-postgres-start.yaml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,16 @@ spec:
130130
path: env.yml
131131
- key: mapper1.yml
132132
path: mappers/mapper1.yml
133-
- name: custom-stage-volume
134-
configMap:
135-
name: redis-connect-postgres-config
136-
items: # define as many custom stages as you have here
137-
- key: redis-connect-custom-stage-demo-1.0-SNAPSHOT.jar
138-
path: redis-connect-custom-stage-demo-1.0-SNAPSHOT.jar
133+
# #### uncomment the following six lines if you have custom
134+
# transformation implementation and replace the jar with
135+
# your own.
136+
# ####
137+
#- name: custom-stage-volume
138+
#configMap:
139+
#name: redis-connect-postgres-config
140+
#items: # define as many custom stages as you have here
141+
#- key: redis-connect-custom-stage-demo-1.0-SNAPSHOT.jar
142+
#path: redis-connect-custom-stage-demo-1.0-SNAPSHOT.jar
139143
- name: tmpfsdir
140144
emptyDir: # node-ephemeral volume
141145
medium: Memory

0 commit comments

Comments
 (0)