Skip to content

Commit fcbc634

Browse files
authored
docs: separate ingest data step w some single-sourcing (rough-cut) (#33926)
1 parent a495984 commit fcbc634

32 files changed

+965
-1271
lines changed

doc/user/config.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ weight = 12
6767
[[menu.main]]
6868
identifier = "reference"
6969
name = "Reference"
70-
weight = 15
70+
weight = 80
7171

7272
[[menu.main]]
7373
name = "SQL commands"
@@ -83,7 +83,7 @@ weight = 100
8383
[[menu.main]]
8484
identifier = "releases-previews"
8585
name = "Releases"
86-
weight = 65
86+
weight = 80
8787

8888
[[menu.main]]
8989
identifier = "changelogs"
@@ -99,10 +99,10 @@ url = "https://materialize.com/changelog/"
9999
[[menu.main]]
100100
identifier = "about"
101101
name = "About"
102-
weight = 70
102+
weight = 90
103103

104104
[[menu.main]]
105-
name = "Security overview"
105+
name = "Materialize Cloud Security and Compliance"
106106
parent = "about"
107107
url = "https://materialize.com/security-overview"
108108
weight = 25

doc/user/content/ingest-data/cdc-cockroachdb.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,8 @@ scenarios, we recommend separating your workloads into multiple clusters for
8989

9090
{{% kafka/cockroachdb/create-a-cluster %}}
9191

92-
### 2. Start ingesting data
92+
### 2. Create a connection
9393

94-
[//]: # "TODO(morsapaes) Incorporate all options for network security and
95-
authentication later on. Starting with a simplified version that is consistent
96-
with the PostgreSQL/MySQL guides and can be used to model other Kafka-relate
97-
integration guides after."
9894

9995
Now that you've created an ingestion cluster, you can connect Materialize to
10096
your Kafka broker and start ingesting data. The exact steps depend on your
@@ -137,6 +133,8 @@ guidance.
137133
);
138134
```
139135
136+
## 3. Start ingesting data
137+
140138
1. Use the [`CREATE SOURCE`](/sql/create-source/) command to connect Materialize
141139
to your Kafka broker and start ingesting data from the target topic:
142140
@@ -153,15 +151,15 @@ guidance.
153151
By default, the source will be created in the active cluster; to use a
154152
different cluster, use the `IN CLUSTER` clause.
155153

156-
### 3. Monitor the ingestion status
154+
### 4. Monitor the ingestion status
157155

158156
{{% kafka/cockroachdb/check-the-ingestion-status %}}
159157

160-
### 4. Create a view
158+
### 5. Create a view
161159

162160
{{% ingest-data/ingest-data-kafka-debezium-view %}}
163161

164-
### 5. Create an index on the view
162+
### 6. Create an index on the view
165163

166164
{{% ingest-data/ingest-data-kafka-debezium-index %}}
167165

doc/user/content/ingest-data/mysql/amazon-aurora.md

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ configuration of resources for an SSH tunnel. For more details, see the
282282

283283
## C. Ingest data in Materialize
284284

285-
### 1. (Optional) Create a cluster
285+
### 1. (Optional) Create a source cluster
286286

287287
{{< note >}}
288288
If you are prototyping and already have a cluster to host your MySQL
@@ -293,14 +293,10 @@ scenarios, we recommend separating your workloads into multiple clusters for
293293

294294
{{% mysql-direct/create-a-cluster %}}
295295

296-
### 2. Start ingesting data
296+
### 2. Create a connection
297297

298-
[//]: # "TODO(morsapaes) MySQL connections support multiple SSL modes. We should
299-
adapt to that, rather than just state SSL MODE REQUIRED."
300-
301-
Now that you've configured your database network, you can connect Materialize to
302-
your MySQL database and start ingesting data. The exact steps depend on your
303-
networking configuration, so start by selecting the relevant option.
298+
Once you have configured your network, create a connection in Materialize per
299+
your networking configuration.
304300

305301
{{< tabs >}}
306302

@@ -318,15 +314,23 @@ networking configuration, so start by selecting the relevant option.
318314

319315
{{< /tabs >}}
320316

317+
### 3. Start ingesting data
318+
319+
{{% include-example file="examples/ingest_data/mysql/create_source_cloud" example="create-source" %}}
320+
321+
{{% include-example file="examples/ingest_data/mysql/create_source_cloud" example="create-source-options" %}}
322+
323+
{{% include-example file="examples/ingest_data/mysql/create_source_cloud" example="schema-changes" %}}
324+
321325
[//]: # "TODO(morsapaes) Replace these Step 6. and 7. with guidance using the
322326
new progress metrics in mz_source_statistics + console monitoring, when
323327
available (also for PostgreSQL)."
324328
325-
### 3. Monitor the ingestion status
329+
### 4. Monitor the ingestion status
326330
327331
{{% mysql-direct/check-the-ingestion-status %}}
328332
329-
### 4. Right-size the cluster
333+
### 5. Right-size the cluster
330334
331335
{{% mysql-direct/right-size-the-cluster %}}
332336

doc/user/content/ingest-data/mysql/amazon-rds.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -304,15 +304,13 @@ scenarios, we recommend separating your workloads into multiple clusters for
304304

305305
{{% mysql-direct/create-a-cluster %}}
306306

307-
### 2. Start ingesting data
307+
### 2. Create a connection
308308

309309
[//]: # "TODO(morsapaes) MySQL connections support multiple SSL modes. We should
310310
adapt to that, rather than just state SSL MODE REQUIRED."
311311
312-
Now that you've configured your database network and created an ingestion
313-
cluster, you can connect Materialize to your MySQL database and start
314-
ingesting data. The exact steps depend on your networking configuration, so
315-
start by selecting the relevant option.
312+
Once you have configured your network, create a connection in Materialize per
313+
your networking configuration.
316314
317315
{{< tabs >}}
318316
@@ -330,15 +328,23 @@ start by selecting the relevant option.
330328
331329
{{< /tabs >}}
332330
331+
### 3. Start ingesting data
332+
333+
{{% include-example file="examples/ingest_data/mysql/create_source_cloud" example="create-source" %}}
334+
335+
{{% include-example file="examples/ingest_data/mysql/create_source_cloud" example="create-source-options" %}}
336+
337+
{{% include-example file="examples/ingest_data/mysql/create_source_cloud" example="schema-changes" %}}
338+
333339
[//]: # "TODO(morsapaes) Replace these Step 6. and 7. with guidance using the
334340
new progress metrics in mz_source_statistics + console monitoring, when
335341
available (also for PostgreSQL)."
336342
337-
### 3. Monitor the ingestion status
343+
### 4. Monitor the ingestion status
338344
339345
{{% mysql-direct/check-the-ingestion-status %}}
340346
341-
### 4. Right-size the cluster
347+
### 5. Right-size the cluster
342348
343349
{{% mysql-direct/right-size-the-cluster %}}
344350

doc/user/content/ingest-data/mysql/azure-db.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -128,14 +128,13 @@ scenarios, we recommend separating your workloads into multiple clusters for
128128
129129
{{% mysql-direct/create-a-cluster %}}
130130
131-
### 2. Start ingesting data
131+
### 2. Create a connection
132132
133133
[//]: # "TODO(morsapaes) MySQL connections support multiple SSL modes. We should
134134
adapt to that, rather than just state SSL MODE REQUIRED."
135135
136-
Now that you've configured your database network, you can connect Materialize to
137-
your MySQL database and start ingesting data. The exact steps depend on your
138-
networking configuration, so start by selecting the relevant option.
136+
Once you have configured your network, create a connection in Materialize per
137+
your networking configuration.
139138
140139
{{< tabs >}}
141140
@@ -149,15 +148,19 @@ networking configuration, so start by selecting the relevant option.
149148
150149
{{< /tabs >}}
151150
152-
[//]: # "TODO(morsapaes) Replace these Step 6. and 7. with guidance using the
153-
new progress metrics in mz_source_statistics + console monitoring, when
154-
available(also for PostgreSQL)."
151+
### 3. Start ingesting data
155152
156-
### 3. Monitor the ingestion status
153+
{{% include-example file="examples/ingest_data/mysql/create_source_cloud" example="create-source" %}}
154+
155+
{{% include-example file="examples/ingest_data/mysql/create_source_cloud" example="create-source-options" %}}
156+
157+
{{% include-example file="examples/ingest_data/mysql/create_source_cloud" example="schema-changes" %}}
158+
159+
### 4. Monitor the ingestion status
157160
158161
{{% mysql-direct/check-the-ingestion-status %}}
159162
160-
### 4. Right-size the cluster
163+
### 5. Right-size the cluster
161164
162165
{{% mysql-direct/right-size-the-cluster %}}
163166

doc/user/content/ingest-data/mysql/google-cloud-sql.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,13 @@ scenarios, we recommend separating your workloads into multiple clusters for
122122
123123
{{% mysql-direct/create-a-cluster %}}
124124
125-
### 2. Start ingesting data
125+
### 2. Create a connection
126126
127127
[//]: # "TODO(morsapaes) MySQL connections support multiple SSL modes. We should
128128
adapt to that, rather than just state SSL MODE REQUIRED."
129129
130-
Now that you've configured your database network, you can connect Materialize to
131-
your MySQL database and start ingesting data. The exact steps depend on your
132-
networking configuration, so start by selecting the relevant option.
130+
Once you have configured your network, create a connection in Materialize per
131+
your networking configuration.
133132
134133
{{< tabs >}}
135134
@@ -143,11 +142,19 @@ networking configuration, so start by selecting the relevant option.
143142
144143
{{< /tabs >}}
145144
146-
### 3. Monitor the ingestion status
145+
### 3. Start ingesting data
146+
147+
{{% include-example file="examples/ingest_data/mysql/create_source_cloud" example="create-source" %}}
148+
149+
{{% include-example file="examples/ingest_data/mysql/create_source_cloud" example="create-source-options" %}}
150+
151+
{{% include-example file="examples/ingest_data/mysql/create_source_cloud" example="schema-changes" %}}
152+
153+
### 4. Monitor the ingestion status
147154
148155
{{% mysql-direct/check-the-ingestion-status %}}
149156
150-
### 4. Right-size the cluster
157+
### 5. Right-size the cluster
151158
152159
{{% mysql-direct/right-size-the-cluster %}}
153160

doc/user/content/ingest-data/mysql/self-hosted.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,10 @@ scenarios, we recommend separating your workloads into multiple clusters for
122122
123123
{{% mysql-direct/create-a-cluster %}}
124124
125-
### 2. Start ingesting data
125+
### 2. Create a connection
126126
127-
Now that you've configured your database network, you can connect Materialize to
128-
your MySQL database and start ingesting data. The exact steps depend on your
129-
networking configuration, so start by selecting the relevant option.
127+
Once you have configured your network, create a connection in Materialize per
128+
your networking configuration.
130129
131130
{{< tabs >}}
132131
@@ -140,16 +139,19 @@ networking configuration, so start by selecting the relevant option.
140139
141140
{{< /tabs >}}
142141
142+
### 3. Start ingesting data
143143
144-
[//]: # "TODO(morsapaes) Replace these Step 6. and 7. with guidance using the
145-
new progress metrics in mz_source_statistics + console monitoring, when
146-
available(also for PostgreSQL)."
144+
{{% include-example file="examples/ingest_data/mysql/create_source_cloud" example="create-source" %}}
147145
148-
### 3. Monitor the ingestion status
146+
{{% include-example file="examples/ingest_data/mysql/create_source_cloud" example="create-source-options" %}}
147+
148+
{{% include-example file="examples/ingest_data/mysql/create_source_cloud" example="schema-changes" %}}
149+
150+
### 4. Monitor the ingestion status
149151
150152
{{% mysql-direct/check-the-ingestion-status %}}
151153
152-
### 4. Right-size the cluster
154+
### 5. Right-size the cluster
153155
154156
{{% mysql-direct/right-size-the-cluster %}}
155157

doc/user/content/ingest-data/postgres/alloydb.md

Lines changed: 59 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -132,28 +132,80 @@ scenarios, we recommend separating your workloads into multiple clusters for
132132
133133
{{% postgres-direct/create-a-cluster %}}
134134
135-
### 2. Start ingesting data
135+
### 2. Create a connection
136136
137-
With the network configured and an ingestion pipeline in place, connect
138-
Materialize to your AlloyDB instance and begin the data ingestion process.
137+
Once you have configured your network, create a connection in Materialize per
138+
your networking configuration.
139139
140140
{{< tabs >}}
141141
142142
{{< tab "Allow Materialize IPs">}}
143-
{{% postgres-direct/ingesting-data/allow-materialize-ips %}}
143+
144+
1. {{% include-example
145+
file="examples/ingest_data/postgres/create_connection_ips_cloud"
146+
example="create-secret" indent="true" %}}
147+
148+
1. {{% include-example
149+
file="examples/ingest_data/postgres/create_connection_ips_cloud"
150+
example="create-connection" indent="true" %}}
151+
152+
{{% include-example
153+
file="examples/ingest_data/postgres/create_connection_ips_cloud"
154+
example="create-connection-options-general" indent="true" %}}
155+
144156
{{< /tab >}}
145157
146158
{{< tab "Use an SSH tunnel">}}
147-
{{% postgres-direct/ingesting-data/use-ssh-tunnel %}}
159+
160+
1. {{% include-example
161+
file="examples/ingest_data/postgres/create_connection_ssh_cloud"
162+
example="create-ssh-tunnel-connection" indent="true" %}}
163+
164+
{{% include-example
165+
file="examples/ingest_data/postgres/create_connection_ssh_cloud"
166+
example="create-ssh-tunnel-connection-options" indent="true" %}}
167+
168+
1. {{% include-example
169+
file="examples/ingest_data/postgres/create_connection_ssh_cloud"
170+
example="get-public-keys-general" indent="true" %}}
171+
172+
1. {{% include-example
173+
file="examples/ingest_data/postgres/create_connection_ssh_cloud"
174+
example="login-to-ssh-bastion-host" indent="true" %}}
175+
176+
1. {{% include-example
177+
file="examples/ingest_data/postgres/create_connection_ssh_cloud"
178+
example="validate-ssh-tunnel-connection" indent="true" %}}
179+
180+
1. {{% include-example
181+
file="examples/ingest_data/postgres/create_connection_ssh_cloud"
182+
example="create-secret" indent="true" %}}
183+
184+
1. {{% include-example
185+
file="examples/ingest_data/postgres/create_connection_ssh_cloud"
186+
example="create-connection" indent="true" %}}
187+
188+
{{% include-example
189+
file="examples/ingest_data/postgres/create_connection_ssh_cloud"
190+
example="create-connection-options-general" indent="true" %}}
148191
{{< /tab >}}
149192
150193
{{< /tabs >}}
151194
152-
### 3. Monitor the ingestion status
195+
### 3. Start ingesting data
196+
197+
{{% include-example file="examples/ingest_data/postgres/create_source_cloud" example="create-source" %}}
198+
199+
{{% include-example file="examples/ingest_data/postgres/create_source_cloud" example="create-source-options" %}}
200+
201+
{{% include-example file="examples/ingest_data/postgres/create_source_cloud"
202+
example="schema-changes" %}}
203+
204+
### 4. Monitor the ingestion status
153205
154206
{{% postgres-direct/check-the-ingestion-status %}}
155207
156-
### 4. Right-size the cluster
208+
### 5. Right-size the cluster
157209
158210
{{% postgres-direct/right-size-the-cluster %}}
159211

0 commit comments

Comments
 (0)