Skip to content

Commit fe30c93

Browse files
Clarify Cloud RDI workspace capacity planning and scaling
1 parent 3d05714 commit fe30c93

3 files changed

Lines changed: 101 additions & 107 deletions

File tree

‎content/embeds/rc-rdi-create-rdi-workspace.md‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ To create a Data Integration workspace for an existing [Pro subscription]({{< re
1616

1717
{{<image filename="images/rc/rdi/rdi-create-workspace-select-subscription.png" alt="The select pro subscription drop down." width=80% >}}
1818

19-
3. A **Data Integration subnet (CIDR)** is automatically generated for you. Each RDI workspace uses a dedicated `/22` CIDR.
19+
3. Review the suggested **Data Integration subnet (CIDR)**. The console suggests a dedicated `/22` Classless Inter-Domain Routing (CIDR) range for the workspace.
20+
21+
Before you create the workspace, [plan network capacity for all its pipelines](/content/operate/rc/rdi/scale-pipeline.md#plan-workspace-network-capacity). If you expect more than 5 sources or more than 5 processor replicas in total, choose a `/21` or larger range. This is conservative planning guidance, not a guaranteed capacity limit. You cannot enlarge the workspace CIDR after creation.
2022

2123
For AWS, the RDI workspace CIDR must:
2224

@@ -25,7 +27,7 @@ To create a Data Integration workspace for an existing [Pro subscription]({{< re
2527

2628
For example, if the subscription VPC's primary CIDR is `10.238.252.0/24`, then `192.168.0.0/22` is invalid because it is in a different RFC 1918 range. An unused range such as `10.239.0.0/22` is valid.
2729

28-
If the automatic suggestion is missing or unsuitable, select another unused `/22` CIDR in the same private range. For more information, see [VPC CIDR block association restrictions](https://docs.aws.amazon.com/vpc/latest/userguide/vpc-cidr-blocks.html#vpc-resize).
30+
If the automatic suggestion is missing or unsuitable, select another unused range that meets your capacity needs and is in the same private range. For more information, see [VPC CIDR block association restrictions](https://docs.aws.amazon.com/vpc/latest/userguide/vpc-cidr-blocks.html#vpc-resize).
2931

3032
{{<image filename="images/rc/rdi/rdi-create-workspace-cidr.png" alt="The select pro subscription drop down." width=80% >}}
3133

‎content/operate/rc/rdi/faq.md‎

Lines changed: 12 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -59,31 +59,12 @@ No. Deleting a source removes its pipeline configuration and internal RDI state.
5959

6060
## Capacity and network planning
6161

62-
### How many sources and processor replicas can a pipeline use?
63-
64-
Cloud RDI runs one Flink processor for each pipeline. A pipeline supports up to
65-
10 sources and up to 10 TaskManagers. Each source uses a collector, and each
66-
TaskManager is a processor replica.
67-
68-
The source and TaskManager limits do not guarantee that an existing workspace
69-
has enough network capacity to run them all. Plan the workspace CIDR before you
70-
scale near these limits. See [Scale a Cloud RDI pipeline]({{< relref
71-
"/operate/rc/rdi/scale-pipeline" >}}).
72-
7362
### What CIDR range should I use for Cloud RDI?
7463

75-
Cloud RDI suggests a Classless Inter-Domain Routing (CIDR) range of `/22` by
76-
default. Use it for a pipeline with up to 5 sources and 5 TaskManagers. If you
77-
plan to use more sources or TaskManagers, choose at least a `/21` CIDR range
78-
when you create the workspace.
79-
80-
Cloud RDI needs complete IP address blocks in each Availability Zone to start
81-
new nodes. Node replacements and maintenance can temporarily need additional
82-
capacity. A `/21` is planning guidance, not a guarantee for every workload.
83-
84-
You cannot enlarge an existing workspace CIDR. Choose a range that leaves
85-
capacity for planned growth, replacement nodes, and maintenance, and is
86-
compatible with your selected connectivity method.
64+
Plan the Classless Inter-Domain Routing (CIDR) range for all pipelines in the
65+
workspace, including future sources and processor replicas. You cannot enlarge
66+
it after creation. See [Plan workspace network capacity](/content/operate/rc/rdi/scale-pipeline.md#plan-workspace-network-capacity)
67+
for `/22`, `/21`, and larger-range guidance.
8768

8869
## Upgrades and maintenance
8970

@@ -142,36 +123,20 @@ Delete an unused pipeline and then [delete its workspace]({{< relref "/operate/r
142123

143124
### Does Cloud RDI automatically scale the processor?
144125

145-
No. Cloud RDI does not automatically add or remove TaskManagers based on
146-
processor load, pending records, throughput, or backpressure. Set the desired
147-
number of TaskManagers with
148-
`advanced.resources.taskManager.replicas`. See [Scale a Cloud RDI pipeline]({{<
149-
relref "/operate/rc/rdi/scale-pipeline" >}}).
126+
No. Set the desired processor replica count with
127+
`advanced.resources.taskManager.replicas`. See [Increase processor capacity](/content/operate/rc/rdi/scale-pipeline.md#increase-processor-capacity).
150128

151129
### How do I increase processing capacity for a pipeline?
152130

153-
First identify whether the collector, RDI database, Flink processor, or target
154-
database limits the pipeline. You can increase collector ingestion capacity
155-
with source-specific advanced collector properties. You can increase the RDI
156-
database throughput in the database **Performance** settings. For a processor
157-
bottleneck, edit **Settings** and set
158-
`advanced.resources.taskManager.replicas` to the needed number. Save the
159-
change, then apply and restart the pipeline. See [Scale a Cloud RDI pipeline]({{<
160-
relref "/operate/rc/rdi/scale-pipeline" >}}) for signals and tuning guidance.
131+
First [identify the bottleneck](/content/operate/rc/rdi/scale-pipeline.md#identify-the-bottleneck),
132+
then tune the collector, RDI database, or processor as needed. Check shared
133+
workspace network capacity before adding sources or processor replicas.
161134

162135
### Can I see that the processor has scaled in the console?
163136

164-
Yes. The Dashboard shows the processor replica count next to the processor
165-
status. It shows the running count and configured count in the format
166-
`running / configured replicas`. For example, `3 / 3 replicas` means three
167-
TaskManagers are running and the pipeline is configured for three.
168-
169-
The Metrics tab shows data-stream record counts and pending records, but not
170-
the replica count.
171-
172-
For programmatic confirmation, use the RDI API pipeline-status response and
173-
inspect the `flink-processor` component's `replicas` value. See [Confirm the
174-
applied capacity]({{< relref "/operate/rc/rdi/scale-pipeline" >}}).
137+
Yes. The **Dashboard** shows running and configured processor replicas next to
138+
the processor status. See [Confirm the applied capacity](/content/operate/rc/rdi/scale-pipeline.md#confirm-the-applied-capacity)
139+
for how to read the count and handle a persistent mismatch.
175140

176141
### Can I use billing to confirm a scaling change?
177142

‎content/operate/rc/rdi/scale-pipeline.md‎

Lines changed: 85 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,60 @@ hideListLinks: true
1515
weight: 5
1616
---
1717

18-
Every Cloud RDI pipeline uses the Flink processor. Pipeline capacity can be
19-
limited by the collector, the RDI database, the processor, or the target
18+
Every Redis Data Integration (RDI) pipeline in Redis Cloud uses the Flink
19+
processor. Pipeline capacity can be limited by the collector, the RDI
20+
database, the processor, or the target
2021
database. Identify the bottleneck before you change a setting.
2122

22-
Cloud RDI does not automatically add or remove TaskManagers based on CPU use,
23-
pending records, throughput, or backpressure. Set the number of TaskManagers
24-
when you need more processing capacity.
25-
26-
A pipeline supports up to 10 sources and up to 10 TaskManagers. The default
27-
Classless Inter-Domain Routing (CIDR) range is `/22` for pipelines with up to 5
28-
sources and 5 TaskManagers. Before you scale beyond that, choose a larger CIDR
29-
when you create the workspace. See [Capacity and network planning]({{< relref
30-
"/operate/rc/rdi/faq#capacity-and-network-planning" >}}).
23+
Cloud RDI does not automatically add or remove processor replicas
24+
(TaskManagers) based on load, pending records, throughput, or backpressure.
25+
Set the number of processor replicas when you need more processing capacity.
26+
27+
## Plan workspace network capacity
28+
29+
Choose the workspace Classless Inter-Domain Routing (CIDR) range for all
30+
pipelines you plan to run. Sources and processor replicas across the workspace
31+
share its network capacity. Each source uses a collector, and each TaskManager
32+
is a processor replica. Adding pipelines, sources, or processor replicas can
33+
exhaust this capacity even when the pipeline configuration is valid.
34+
35+
The console suggests a `/22` range. If you expect more than 5 sources or more
36+
than 5 processor replicas in total across the workspace, choose a `/21` or
37+
larger range when you create it. For further growth, consider a `/20` or larger
38+
range. A `/21` has twice the address space of a `/22`; a `/20` has twice that
39+
of a `/21`. The number of sources and pipelines you can run also depends on
40+
their processor replicas and workload requirements.
41+
42+
This is conservative planning guidance, not a guaranteed capacity limit.
43+
Leave room for planned growth, replacement resources, and maintenance.
44+
The range must also meet the requirements of your connectivity method and
45+
must not overlap with connected networks.
46+
47+
You cannot enlarge an existing workspace CIDR. If you need more network
48+
capacity in an existing workspace, contact [Redis support](https://redis.io/support/)
49+
before adding more pipelines, sources, or processor replicas. See
50+
[Create a workspace](/content/operate/rc/rdi/create-workspace.md) for CIDR
51+
selection and connectivity requirements.
52+
53+
## Identify the bottleneck
54+
55+
Use the **Dashboard** to compare **Throughput**, **Pending**, **Processor load**,
56+
and **RDI database load** before you change capacity:
57+
58+
- If ingestion from a source is slow and the processor has spare capacity,
59+
check the source's diagnostics in **Metrics** before tuning collector
60+
properties.
61+
- If the processor stays at capacity while pending records grow, consider
62+
increasing processor replicas.
63+
- If the processor is backpressured, check target database performance and
64+
connectivity before adding processor replicas.
65+
- If the RDI database stays full or reports out-of-memory (OOM) errors, check
66+
ingestion and processing rates, database memory, and throughput. OOM alone
67+
does not identify which capacity setting to change.
68+
69+
Change one setting at a time and compare the same representative workload.
70+
Confirm that the change improves throughput or reduces pending records before
71+
making another increase.
3172

3273
## Increase collector ingestion capacity
3374

@@ -45,16 +86,17 @@ the selected source:
4586
| Source | `snapshot.fetch.size` | Increases the rows fetched in each snapshot batch. |
4687
| Source | `max.batch.size` | Increases the records processed in each batch. |
4788
| Source | `max.queue.size` | Increases the records buffered in collector memory. |
48-
| Source | `poll.interval.ms` | Reduces the wait before the collector polls for CDC changes. |
89+
| Source | `poll.interval.ms` | Sets the wait before the collector polls for change data capture (CDC) changes. |
4990
| Source | `record.processing.threads` | Increases the threads that process captured records. |
5091
| Sink | `redis.batch.size` | Increases the records written to the RDI database in each batch. |
5192
| Sink | `redis.flush.interval.ms` | Reduces the maximum wait before the collector flushes a batch. |
5293

5394
Use only properties shown for the selected source. The available properties can
5495
vary by source database.
5596

56-
Cloud RDI collectors have 2 CPUs and 8 GB of RAM. You cannot select a
57-
different collector size. Test each change with a representative workload
97+
Cloud RDI collectors have 2 central processing units (CPUs) and 8 GB of
98+
random access memory (RAM). You cannot select a different collector size.
99+
Test each change with a representative workload
58100
before you use it in production.
59101

60102
Larger batches and queues use more collector memory. More snapshot and
@@ -65,39 +107,40 @@ records, and processor load.
65107

66108
## Increase RDI database throughput
67109

68-
Each pipeline has an RDI database named `rdi-pipeline-bdb-<target_db_id>`. Its
69-
default throughput is 25,000 operations per second (ops/sec). You can increase
70-
the throughput to 50,000, 75,000, or 100,000 ops/sec.
110+
Each pipeline has an RDI database. When database throughput limits ingestion
111+
or processing, choose a higher throughput value from its **Performance**
112+
settings.
71113

72114
1. In the Cloud console, open the RDI database for the pipeline.
73115
1. Edit the database **Performance** settings.
74-
1. Increase **Throughput** to the next value.
116+
1. Increase **Throughput** to the next available value.
75117
1. Check the pipeline Dashboard before making another increase.
76118

77119
Increase throughput gradually. Stop increasing it when the pipeline no longer
78120
improves.
79121

80-
Increase RDI database throughput when the database frequently reports an
81-
out-of-memory (OOM) state and the processor is not continuously **Busy**. This
82-
can mean that the database cannot accept or serve records fast enough for the
83-
pipeline.
122+
Increase throughput when database metrics show that a throughput limit delays
123+
ingestion or processing. Check processor and target performance too: an
124+
increase does not resolve a bottleneck in another component.
84125

85126
## Increase processor capacity
86127

87128
1. From the Cloud RDI **Pipelines** list, select the pipeline.
88129
1. Select the **Settings** tab and select **Edit**.
89130
1. Add or update the `advanced.resources.taskManager.replicas` property with
90-
the number of TaskManagers you need. The value must be a whole number from
91-
`1` through `10`.
92-
1. Select **Save changes**, then select **Apply and restart** to apply the
93-
change.
131+
the number of processor replicas you need. Use a positive whole number
132+
accepted by the console and check [workspace network capacity](#plan-workspace-network-capacity)
133+
before you increase it.
134+
1. Select **Save changes**.
135+
1. Select **Apply and restart** to apply the change. This temporarily
136+
interrupts processing.
94137

95-
When you set this property, Cloud RDI uses that number of TaskManagers. If you
96-
do not set it, Cloud RDI calculates the number from the pipeline parallelism
97-
and the configured TaskManager slots. This is a configuration-time calculation,
98-
not reactive autoscaling while the pipeline is running.
138+
This property sets the desired processor replica count. After the restart,
139+
check the running count and pipeline performance. More replicas do not
140+
guarantee higher throughput.
99141

100-
For API-based configuration, the same property is represented as follows:
142+
For application programming interface (API) configuration, the same property
143+
is represented as follows:
101144

102145
```yaml
103146
processors:
@@ -107,25 +150,6 @@ processors:
107150
replicas: 3
108151
```
109152
110-
## Decide when to scale
111-
112-
Use the **Dashboard** to decide whether the processor needs more capacity:
113-
114-
- Check **Throughput** and **Pending**. A growing pending-record count or
115-
lower-than-required throughput can show that the processor needs
116-
investigation.
117-
- Check **Processor load**. A processor that remains **Busy** while pending
118-
records grow can need more capacity. An **Idle** processor is waiting for
119-
changes from the sources.
120-
- Check **RDI database load**. If the RDI database remains full or frequently
121-
reports an out-of-memory (OOM) state while the processor remains **Busy**,
122-
the processor might not read records as fast as collectors write them.
123-
Increasing the number of TaskManagers can help.
124-
125-
Check the source and target systems too. For example, a processor can be
126-
**Idle** because the target database is overloaded. Increasing TaskManagers
127-
does not remove a bottleneck outside the processor.
128-
129153
## Confirm the applied capacity
130154
131155
The **Dashboard** shows the processor replica count next to the processor
@@ -134,17 +158,20 @@ status. It shows the running count and configured count in the format
134158
TaskManagers are running and the pipeline is configured for three. If only one
135159
count is available, the Dashboard identifies it as either running or configured.
136160

161+
The running count can be lower while a restart is in progress. If it remains
162+
below the configured count after the restart, check pipeline and source status
163+
for errors and contact [Redis support](https://redis.io/support/). Network
164+
capacity can prevent additional replicas from starting. Increasing the
165+
configured count again does not resolve a network capacity shortage.
166+
137167
The console metrics show data-stream record counts and pending records. They do
138168
not include a TaskManager replica-count metric.
139169

140-
If your organization collects Prometheus metrics for RDI, use them to
141-
investigate processor behavior. They do not provide a TaskManager replica-count
142-
metric.
143-
144-
For programmatic confirmation, get the [pipeline status]({{< relref
145-
"/integrate/redis-data-integration/reference/api-reference" >}}) and inspect
146-
the `flink-processor` entry in `components`. Its `replicas` value is the number
147-
of ready processor replicas. For example:
170+
For programmatic confirmation, use the [Redis Cloud API](/content/operate/rc/api/api-reference.md#tag/Data-Integration)
171+
to send a `GET` request to
172+
`/v1/subscriptions/<subscription-id>/data-integration-workspace/rdi/api/v2/pipelines/<pipeline-name>/status`.
173+
Inspect the `flink-processor` entry in `components`. Its `replicas` value is
174+
the number of ready processor replicas. For example:
148175

149176
```json
150177
{

0 commit comments

Comments
 (0)