Skip to content

RS: new Flex docs#2871

Open
rrelledge wants to merge 13 commits intomainfrom
DOC-6284
Open

RS: new Flex docs#2871
rrelledge wants to merge 13 commits intomainfrom
DOC-6284

Conversation

@rrelledge
Copy link
Collaborator

@rrelledge rrelledge commented Mar 9, 2026

Still a work in progress


Note

Low Risk
Low risk documentation-only change; primary risk is broken/incorrect internal links or navigation due to the new flex section and renamed page titles.

Overview
Adds a new dedicated Flex databases documentation section (content/operate/rs/flex) with pages to explain Flex, how to get started, deployment planning, and scaling guidance.

Updates the existing flash/Auto Tiering docs (databases/flash/*) to consistently use Flex terminology, add banner callouts that route readers to the new Flex section, and refresh “Next steps” links to point to the new Flex pages while keeping Auto Tiering quickstart and storage-engine info in place.

Written by Cursor Bugbot for commit efa2146. This will update automatically on new commits. Configure here.

@rrelledge rrelledge self-assigned this Mar 9, 2026
@rrelledge rrelledge added do not merge yet rs Redis Software labels Mar 9, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Mar 9, 2026

DOC-6284

@jit-ci
Copy link

jit-ci bot commented Mar 9, 2026

🛡️ Jit Security Scan Results

CRITICAL HIGH MEDIUM

✅ No security findings were detected in this PR


Security scan by Jit

@kaitlynmichael
Copy link
Contributor

@rrelledge the screenshot for the "create a database" step is really large. You could scale it down to half that size I think

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 3 potential issues.

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

- Reduce infrastructure costs by combining high-speed RAM with cost-efficient flash storage

{{<note>}}
Flex does not replace long-term data persistence. For workloads that require durability and recovery across restarts or failures, use Redis persistence features like [AOF (Append-Only File)]({{< relref "/operate/oss_and_stack/management/persistence#append-only-file" >}}), [RDB snapshots]({{< relref "/operate/oss_and_stack/management/persistence#snapshotting" >}}), or both. For more information, see [Database persistence]({{< relref "/operate/rs/databases/configure/database-persistence" >}}).

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest adding a dedicated "What Flex isn't" section with the wording similar to the doc: https://docs.google.com/document/d/1PuFejCooJpy_gs0MoM5Pf9MLS46x6gcNUmzYfPjIHik/edit?disco=AAABz_t08H0&tab=t.0

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This info is already included in a note in https://redis.io/docs/staging/DOC-6284/operate/rs/flex/#when-to-use-flex:

Note:
Flex does not replace long-term data persistence. For workloads that require durability and recovery across restarts or failures, use Redis persistence features like AOF (Append-Only File), RDB snapshots, or both. For more information, see Database persistence.


### Differences between Flex and Auto Tiering

- Key and value offloading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a short explanation on why it matters:
"frees RAM for hot data, higher RAM hit‑rate, bigger datasets per node”

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added

---

Flex extends your database capacity by combining RAM and flash (SSD) storage. This tiered architecture keeps frequently accessed (hot) data in RAM for sub-millisecond latency while storing less active (warm) data on flash to reduce costs and increase capacity.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Flex frees RAM for hot data, higher RAM hit‑rate, bigger datasets per node”

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added

@mich-elle-luna
Copy link
Collaborator

Thank you this is looking great

linkTitle: Get started
weight: 20
---
This page guides you through a quick setup of [Flex]({{< relref "/operate/rs/flex" >}}) with a single node for testing and demo purposes.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

consider labeling it as a non-production quick start and refer to the planning page for production grade deployments.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This sentence and the following sentence "For production environments" already indicate that this quick start is for testing and not intended for production, but I went ahead and linked to the planning doc too.

This page guides you through a quick setup of [Flex]({{< relref "/operate/rs/flex" >}}) with a single node for testing and demo purposes.

For production environments, you can find more detailed installation instructions in the [install and setup]({{< relref "/operate/rs/installing-upgrading" >}}) section.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider adding before you begin clause with version requirements.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added a version requirements section to the quick start.


### CPU allocation

Throughput capacity scales with both CPU cores. At minimum, allocate 1 vCPU per 50 GB shard.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"... with both CPU cores and the RAM-to-flash ration".

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

---

Review the following hardware requirements, sizing guidelines, best practices, and known limitations before you deploy a Redis Software cluster for Flex databases.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider adding a short checkbox:

`Before you deploy Flex, verify:

  • locally attached NVMe or SSD dedicated to Flex data and keys.
  • Flash capacity is greater than the total provisioned database size.
  • Working set much smaller than total dataset - fits high-RAM hit-rate pattern.
    `

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added


1. Increase the database limit and [decrease the RAM-to-flash ratio](#decrease-ram-to-flash-ratio).

### Add shards {#scale-volume-add-shards}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

swap the order of ###Add shards and ###Decrease RAM-to-flash ratio to fit the list.

Copy link
Collaborator Author

@rrelledge rrelledge Mar 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you clarify what you mean by "swap to fit the list"?

Is this the list you were referring to?

1. Increase the database limit and [add shards](#scale-volume-add-shards).

2. Increase the database limit and [decrease the RAM-to-flash ratio](#decrease-ram-to-flash-ratio).

Or were you referring to the "Choose a scaling strategy" table at the top?

I thought it made more sense for the order to be similar under Scale volume and Scale throughput.

  • Scale volume
    • Add shards
    • Decrease RAM-to-flash ratio
  • Scale throughput
    • Add shards or nodes
    • Increase RAM-to-flash ratio

I'm fine with switching the order, but I think if we switch the order under Scale volume, maybe we should also switch the order of Scale throughput? Or maybe just change the order of rows in the "Choose a scaling strategy" table?

1. Decrease the **RAM limit**.

1. Click **Save**.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider adding an example:

if you lower the RAM-to-flash ratio from 30% to 20% on a 1 TB database:

Memory limit might increase from 1 TB to 1.5 TB (more total capacity).
RAM limit stays at 300 GB, which becomes 20% of the new total capacity.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added


You can add more shards to expand dataset capacity while maintaining the existing RAM-to-flash ratio. Throughput capacity also typically increases as a result of additional shards and infrastructure. This strategy is recommended when the dataset size and traffic are expected to grow together.

Before you increase the dataset capacity and add shards, you need to add more RAM and vCPUs to handle the increased number of shards.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's make it more explicit:
This increases capacity without adding CPU or RAM but may reduce RAM hit-rate and increase p99 latency; monitor metrics before and after the change.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This suggestion contradicts the statement: "you need to add more RAM and vCPUs to handle the increased number of shards."

### Decrease RAM-to-flash ratio

You can allocate more data to the flash tier to increase the database capacity while keeping the same amount of RAM, shards, and vCPU. This strategy is recommended when scaling for volume only and SSD resources are underutilized.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add implications:
This increases capacity without adding CPU or RAM but may reduce RAM hit-rate and increase p99 latency; monitor metrics before and after the change.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants