Skip to content

resource pool management - #23471

Open
wildpcww wants to merge 2 commits into
pingcap:release-8.5from
wildpcww:addcreateresourcepool
Open

resource pool management#23471
wildpcww wants to merge 2 commits into
pingcap:release-8.5from
wildpcww:addcreateresourcepool

Conversation

@wildpcww

@wildpcww wildpcww commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

First-time contributors' checklist

What is changed, added or deleted? (Required)

Which TiDB version(s) do your changes apply to? (Required)

Tips for choosing the affected version(s):

By default, CHOOSE MASTER ONLY so your changes will be applied to the next TiDB major or minor releases. If your PR involves a product feature behavior change or a compatibility change, CHOOSE THE AFFECTED RELEASE BRANCH(ES) AND MASTER.

For details, see tips for choosing the affected versions.

  • master (the latest development version)
  • v9.0 (TiDB 9.0 versions)
  • v8.5 (TiDB 8.5 versions)
  • v8.1 (TiDB 8.1 versions)
  • v7.5 (TiDB 7.5 versions)
  • v7.1 (TiDB 7.1 versions)
  • v6.5 (TiDB 6.5 versions)

What is the related PR or file link(s)?

  • This PR is translated from:
  • Other reference link(s):

AI agent involvement

  • The changes in this PR were primarily made by an AI agent on behalf of the PR author.

Do your changes match any of the following descriptions?

  • Delete files
  • Change aliases
  • Need modification after applied to another branch
  • Might cause conflicts after applied to another branch

Summary by CodeRabbit

  • New Features
    • Added guidance for creating and managing BYOC Resource Pools, including capacity, networking, high availability, AWS tags, monitoring, scaling, and deletion.
    • Added Resource Pool navigation and architecture references across BYOC documentation.
    • Added private-preview availability information for Resource Pool management.
  • Documentation
    • Updated BYOC onboarding and instance creation instructions to require an active Resource Pool.
    • Clarified CIDR planning, regional overlap, and connectivity requirements.
    • Updated backup restoration guidance to select a compatible active Resource Pool.

@ti-chi-bot ti-chi-bot Bot added the contribution This PR is from a community contributor. label Aug 7, 2026
@wildpcww
wildpcww requested a review from lilin90 August 7, 2026 09:30
@ti-chi-bot ti-chi-bot Bot added missing-translation-status This PR does not have translation status info. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Aug 7, 2026
@coderabbitai

coderabbitai Bot commented Aug 7, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

Added BYOC Resource Pool documentation, including concepts, creation and management procedures, CIDR planning, instance provisioning requirements, onboarding updates, and restore guidance.

Changes

BYOC Resource Pool documentation

Layer / File(s) Summary
Resource Pool concepts and navigation
tidb-cloud/architecture-concepts.md, tidb-cloud/manage-projects-and-resources.md, TOC-tidb-cloud-byoc.md, tidb-cloud/byoc/_index.md, tidb-cloud/byoc/byoc-features.md
Defines Resource Pools and adds links and feature-catalog entries for their creation and management.
Resource Pool creation and network planning
tidb-cloud/byoc/create-resource-pool-byoc.md, tidb-cloud/byoc/byoc-prepare-environment-aws.md, tidb-cloud/byoc/multi-region-deployment.md
Documents pool configuration and provisioning. Updates O11Y and Resource Pool CIDR requirements and overlap rules.
BYOC provisioning flow
tidb-cloud/byoc/byoc-onboarding-overview.md, tidb-cloud/byoc/byoc-initialize-service.md, tidb-cloud/byoc/create-tidb-instance-byoc.md
Requires an active Resource Pool before instance creation and updates onboarding, initialization, restoration, and completion steps.
Resource Pool management and restore requirements
tidb-cloud/byoc/manage-resource-pools-byoc.md, tidb-cloud/premium/backup-and-restore-premium.md
Documents pool operations, restrictions, and deletion rules. Updates BYOC restore flows to use a matching active Resource Pool.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Suggested reviewers: lilin90, wangle1321

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description leaves the required change summary empty and provides no related links or explanation of the affected documentation. Add a concise summary of the changes, explain the applicable TiDB version, and provide relevant PR or reference links.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely identifies the main change: resource pool management documentation.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@wildpcww
wildpcww requested a review from WangLe1321 August 7, 2026 09:31

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 5


ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 12748764-dfb3-48d9-bbfa-c14c8600bfb4

📥 Commits

Reviewing files that changed from the base of the PR and between 351d30f and 3ae8af2.

📒 Files selected for processing (13)
  • TOC-tidb-cloud-byoc.md
  • tidb-cloud/architecture-concepts.md
  • tidb-cloud/byoc/_index.md
  • tidb-cloud/byoc/byoc-features.md
  • tidb-cloud/byoc/byoc-initialize-service.md
  • tidb-cloud/byoc/byoc-onboarding-overview.md
  • tidb-cloud/byoc/byoc-prepare-environment-aws.md
  • tidb-cloud/byoc/create-resource-pool-byoc.md
  • tidb-cloud/byoc/create-tidb-instance-byoc.md
  • tidb-cloud/byoc/manage-resource-pools-byoc.md
  • tidb-cloud/byoc/multi-region-deployment.md
  • tidb-cloud/manage-projects-and-resources.md
  • tidb-cloud/premium/backup-and-restore-premium.md

* Initial setup time: the creation of the **first Resource Pool** in a region might take approximately **1 hour** as the system initializes the Kubernetes environment.
* Subsequent instances: creating additional instances in an active Resource Pool usually takes only a few minutes.

3. Consult with your TiDB Cloud representative to determine the appropriate Request Unit (RU) settings for your initial connectivity and functional tests. They will recommend a configuration based on your specific testing requirements.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Use the established Request Capacity Unit (RCU) term.

Line 21 uses “Request Unit (RU)”. The BYOC instance guide uses “Request Capacity Units (RCUs)” for the same setting. Use the established term to avoid ambiguity during initial capacity planning.

Committable replacement
-3. Consult with your TiDB Cloud representative to determine the appropriate Request Unit (RU) settings for your initial connectivity and functional tests. They will recommend a configuration based on your specific testing requirements.
+3. Consult your TiDB Cloud representative to determine the appropriate Request Capacity Unit (RCU) settings for your initial connectivity and functional tests. They will recommend a configuration based on your specific testing requirements.

As per path instructions, this Markdown fix uses an exact contiguous replacement and preserves the existing list structure.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
3. Consult with your TiDB Cloud representative to determine the appropriate Request Unit (RU) settings for your initial connectivity and functional tests. They will recommend a configuration based on your specific testing requirements.
3. Consult your TiDB Cloud representative to determine the appropriate Request Capacity Unit (RCU) settings for your initial connectivity and functional tests. They will recommend a configuration based on your specific testing requirements.
🧰 Tools
🪛 LanguageTool

[style] ~21-~21: This phrase is redundant. Consider writing “Consult”.
Context: ...l usually takes only a few minutes. 3. Consult with your TiDB Cloud representative to deter...

(CONSULT_WITH)

Source: Path instructions

## What's next

After you create your first {{{ .byoc }}} instance and configure secure administrative access, continue with [TiDB Cloud BYOC Joint Validation](/tidb-cloud/byoc/joint-validation.md) to validate connectivity, observability, security, and alerting.
After you create your first Resource Pool and {{{ .byoc }}} instance and configure secure administrative access, continue with [TiDB Cloud BYOC Joint Validation](/tidb-cloud/byoc/joint-validation.md) to validate connectivity, observability, security, and alerting.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Do not make secure access a prerequisite.

Lines 45-48 state that secure administrative access is optional. Line 54 uses “and configure secure administrative access” as a prerequisite for joint validation. Make the optional condition explicit.

Committable replacement
-After you create your first Resource Pool and {{{ .byoc }}} instance and configure secure administrative access, continue with [TiDB Cloud BYOC Joint Validation](/tidb-cloud/byoc/joint-validation.md) to validate connectivity, observability, security, and alerting.
+After you create your first Resource Pool and {{{ .byoc }}} instance and, if needed, configure secure administrative access, continue with [TiDB Cloud BYOC Joint Validation](/tidb-cloud/byoc/joint-validation.md) to validate connectivity, observability, security, and alerting.

As per path instructions, this Markdown fix uses an exact contiguous replacement and preserves the existing paragraph structure.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
After you create your first Resource Pool and {{{ .byoc }}} instance and configure secure administrative access, continue with [TiDB Cloud BYOC Joint Validation](/tidb-cloud/byoc/joint-validation.md) to validate connectivity, observability, security, and alerting.
After you create your first Resource Pool and {{{ .byoc }}} instance and, if needed, configure secure administrative access, continue with [TiDB Cloud BYOC Joint Validation](/tidb-cloud/byoc/joint-validation.md) to validate connectivity, observability, security, and alerting.

Source: Path instructions

Comment thread tidb-cloud/byoc/byoc-prepare-environment-aws.md
Comment on lines +48 to +50
6. In the **Resource Pool** area, select an active Resource Pool.

Only Resource Pools that match the selected cloud provider and region and are in the **Active** status are displayed. If no suitable Resource Pool is available and you are an `Organization Owner`, click **Create Resource Pool** to create one. After the Resource Pool is created, it is automatically selected for the new instance.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

Wait for the Resource Pool to become Active.

The Resource Pool lifecycle documentation states that a newly created pool is initially Creating and cannot host instances until it becomes Active. Line 50 says that the pool is automatically selected immediately after creation. State the Active requirement explicitly.

Committable replacement
-    Only Resource Pools that match the selected cloud provider and region and are in the **Active** status are displayed. If no suitable Resource Pool is available and you are an `Organization Owner`, click **Create Resource Pool** to create one. After the Resource Pool is created, it is automatically selected for the new instance.
+    Only Resource Pools that match the selected cloud provider and region and are in the **Active** status are displayed. If no suitable Resource Pool is available and you are an `Organization Owner`, click **Create Resource Pool** to create one. After the Resource Pool becomes **Active**, select it for the new instance.

As per path instructions, this Markdown fix uses an exact contiguous replacement and preserves the existing paragraph structure.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
6. In the **Resource Pool** area, select an active Resource Pool.
Only Resource Pools that match the selected cloud provider and region and are in the **Active** status are displayed. If no suitable Resource Pool is available and you are an `Organization Owner`, click **Create Resource Pool** to create one. After the Resource Pool is created, it is automatically selected for the new instance.
6. In the **Resource Pool** area, select an active Resource Pool.
Only Resource Pools that match the selected cloud provider and region and are in the **Active** status are displayed. If no suitable Resource Pool is available and you are an `Organization Owner`, click **Create Resource Pool** to create one. After the Resource Pool becomes **Active**, select it for the new instance.

Source: Path instructions

Comment on lines +140 to +145
For each new region, the O11Y CIDR and Resource Pool CIDRs must not overlap with:

* the TiDB Cluster CIDR and O11Y CIDR within the same region;
* the O11Y CIDR in the same region;
* any existing Resource Pool CIDR in the same region;
* existing application VPCs, on-premises networks, or VPN networks that will be connected through VPC Peering or VPN; or
* other TiDB clusters that will participate in cross-region replication.
* other Resource Pools that will participate in cross-region replication.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

Remove the self-overlap condition.

Line 140 says that the O11Y CIDR must not overlap with “the O11Y CIDR in the same region.” Each region has one O11Y CIDR, so this condition overlaps the CIDR with itself. State that the O11Y CIDR and Resource Pool CIDRs must not overlap with one another in the same region.

Committable replacement
-For each new region, the O11Y CIDR and Resource Pool CIDRs must not overlap with:
-
-* the O11Y CIDR in the same region;
-* any existing Resource Pool CIDR in the same region;
-* existing application VPCs, on-premises networks, or VPN networks that will be connected through VPC Peering or VPN; or
-* other Resource Pools that will participate in cross-region replication.
+For each new region, the O11Y CIDR and each Resource Pool CIDR must not overlap with one another or with:
+
+* any existing Resource Pool CIDR in the same region;
+* existing application VPCs, on-premises networks, or VPN networks that will be connected through VPC Peering or VPN; or
+* other Resource Pools that require cross-region connectivity or replication.

As per path instructions, this Markdown fix uses an exact contiguous replacement and preserves the existing list structure.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
For each new region, the O11Y CIDR and Resource Pool CIDRs must not overlap with:
* the TiDB Cluster CIDR and O11Y CIDR within the same region;
* the O11Y CIDR in the same region;
* any existing Resource Pool CIDR in the same region;
* existing application VPCs, on-premises networks, or VPN networks that will be connected through VPC Peering or VPN; or
* other TiDB clusters that will participate in cross-region replication.
* other Resource Pools that will participate in cross-region replication.
For each new region, the O11Y CIDR and each Resource Pool CIDR must not overlap with one another or with:
* any existing Resource Pool CIDR in the same region;
* existing application VPCs, on-premises networks, or VPN networks that will be connected through VPC Peering or VPN; or
* other Resource Pools that require cross-region connectivity or replication.
🧰 Tools
🪛 LanguageTool

[style] ~144-~144: This phrase is redundant (‘N’ stands for ‘network’). Use simply “VPNs”.
Context: ...lication VPCs, on-premises networks, or VPN networks that will be connected through VPC Peer...

(ACRONYM_TAUTOLOGY)

Source: Path instructions

@lilin90 lilin90 self-assigned this Aug 7, 2026
@lilin90 lilin90 added the translation/no-need No need to translate this PR. label Aug 7, 2026
@ti-chi-bot ti-chi-bot Bot removed the missing-translation-status This PR does not have translation status info. label Aug 7, 2026
@lilin90 lilin90 added area/tidb-cloud This PR relates to the area of TiDB Cloud. BYOC Related to TiDB Cloud BYOC docs. labels Aug 7, 2026
@ti-chi-bot

ti-chi-bot Bot commented Aug 7, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from lilin90. For more information see the Code Review Process.
Please ensure that each of them provides their approval before proceeding.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
tidb-cloud/byoc/byoc-prepare-environment-aws.md (1)

93-95: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

Configure and verify the 20-year subordinate CA validity.

The steps list Subordinate CA as the CA type, but omit the validity duration and the parent-root validity requirement, while AWS Private CA defaults subordinate CA validity to three years and requires child CA certificates not to exceed their parent CA’s validity. Specify setting subordinate CA validity to at least 20 years, set the signing root CA to at least 20 years, and include an explicit check, such as openssl x509 -in subordinate-ca.crt -noout -dates or the AWS console validity dates.

Source: Path instructions


ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 04b60e8f-5f64-40ab-8c93-7a75fbab9b3d

📥 Commits

Reviewing files that changed from the base of the PR and between 3ae8af2 and e4cac05.

📒 Files selected for processing (5)
  • TOC-tidb-cloud-byoc.md
  • tidb-cloud/byoc/_index.md
  • tidb-cloud/byoc/byoc-onboarding-overview.md
  • tidb-cloud/byoc/byoc-prepare-environment-aws.md
  • tidb-cloud/premium/backup-and-restore-premium.md

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

Labels

area/tidb-cloud This PR relates to the area of TiDB Cloud. BYOC Related to TiDB Cloud BYOC docs. contribution This PR is from a community contributor. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. translation/no-need No need to translate this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants