-
Notifications
You must be signed in to change notification settings - Fork 717
cloud: update docs for BYOC single AZ support #23591
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: release-8.5
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -104,6 +104,8 @@ BYOC provides the following features: | |||||
|
|
||||||
| To meet different workload requirements, TiDB Cloud BYOC supports both Single-AZ and Multi-AZ deployments, enabling you to choose between lower-latency zonal deployment and higher-resilience deployment across multiple availability zones. | ||||||
|
|
||||||
| High availability is configured for each resource pool. A Zonal resource pool is deployed in a single availability zone, while a Regional resource pool is deployed across multiple availability zones. TiDB Cloud determines the availability zone placement based on the BYOC region configuration and available cloud resources. Instances created or restored in a resource pool inherit its high availability mode. After a resource pool is created, you cannot change its high availability mode or availability zone placement. | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
|  | ||||||
|
|
||||||
| A TiDB Cloud BYOC deployment includes the following major components: | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -11,7 +11,7 @@ | |||||||||||||
|
|
||||||||||||||
| You can now provision resource pools and TiDB instances directly via the TiDB Cloud console. | ||||||||||||||
|
|
||||||||||||||
| 1. Create a resource pool. Log in to the [TiDB Cloud console](https://tidbcloud.com/) and follow the instructions in [Create a Resource Pool](/tidb-cloud/byoc/create-resource-pool-byoc.md) to create a resource pool in the target cloud provider and region. | ||||||||||||||
| 1. Create a resource pool. Log in to the [TiDB Cloud console](https://tidbcloud.com/) and follow the instructions in [Create a Resource Pool](/tidb-cloud/byoc/create-resource-pool-byoc.md) to create a resource pool in the target cloud provider and region. When creating the resource pool, select Zonal or Regional high availability based on your workload requirements. Instances created or restored in the resource pool inherit its high availability mode. | ||||||||||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||
|
|
||||||||||||||
| 2. After the resource pool becomes **Active**, follow the instructions in [Create a {{{ .byoc }}} Instance](/tidb-cloud/byoc/create-tidb-instance-byoc.md) to create a new instance in the resource pool. | ||||||||||||||
|
|
||||||||||||||
|
|
@@ -34,7 +34,7 @@ | |||||||||||||
|
|
||||||||||||||
| Once the access keys are configured, you can initiate the restore job from the TiDB Cloud console. | ||||||||||||||
|
|
||||||||||||||
| During restore, select an active resource pool in the target cloud provider and region. | ||||||||||||||
| During restore, select an active resource pool in the target cloud provider and region. The restored instance inherits the high availability mode of the selected resource pool. Make sure that the resource pool has sufficient vCPU capacity, because restoring an instance might cause the total provisioned vCPU to exceed the Pool vCPU Limit and degrade the performance of all instances in the resource pool. If the resource pool has reached its Pool vCPU Limit, increase or turn off the limit, or select another resource pool before continuing. | ||||||||||||||
|
Check warning on line 37 in tidb-cloud/byoc/byoc-initialize-service.md
|
||||||||||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. reason: To make the content user friendly, tells user what to do first, and then why to do that. |
||||||||||||||
|
|
||||||||||||||
| For step-by-step restoration procedures, see [Restore backups from cloud storage](/tidb-cloud/premium/backup-and-restore-premium.md#restore-backups-from-cloud-storage). | ||||||||||||||
|
|
||||||||||||||
|
|
||||||||||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -37,9 +37,9 @@ TiDB is a distributed database that requires specific infrastructure for high av | |||||
|
|
||||||
| - **Option B: POC / Cost Optimization (Single-AZ).** Select exactly **1 AZ**. For example, `us-west-2a`. | ||||||
|
|
||||||
| > **Note:** | ||||||
| > | ||||||
| > Multi-AZ deployment functionality is disabled for this configuration. | ||||||
| The availability zones prepared for the BYOC region determine where TiDB Cloud can place resource pools. When creating a resource pool, you select either Zonal or Regional high availability. A Zonal resource pool is placed in one availability zone. A Regional resource pool requires at least three eligible availability zones in the region. | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| If the BYOC region is initially prepared with a single availability zone, TiDB Cloud uses that availability zone for Zonal resource pools. You can create a Regional resource pool only when two additional eligible availability zones are available. If you plan to use Regional resource pools, confirm during environment preparation that the region can provide at least three eligible availability zones. | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -eu
printf '%s\n' '--- target document context ---'
sed -n '1,100p' tidb-cloud/byoc/byoc-prepare-environment-aws.md
printf '%s\n' '--- related Regional resource-pool and availability-zone guidance ---'
rg -n -i -C 3 'Regional resource pool|Zonal resource pool|availability zone|availability zones|eligible' \
tidb-cloud resources 2>/dev/null || true
printf '%s\n' '--- repository references to changing BYOC preparation or availability zones ---'
rg -n -i -C 3 'BYOC.*(update|redeploy|re-?prepare)|availability zone.*(add|change|update)|resource pool.*(enable|available)' \
. --glob '*.md' --glob '*.mdx' 2>/dev/null || trueRepository: pingcap/docs Length of output: 50371 🏁 Script executed: #!/bin/bash
set -eu
printf '%s\n' '--- BYOC documentation references ---'
rg -n -i -C 4 'availability zone|availability zones|AZs|region configuration|BYOC region|resource pool' \
tidb-cloud/byoc --glob '*.md' --glob '*.mdx' | head -n 500
printf '%s\n' '--- procedures for updating, recreating, or adding BYOC regions ---'
rg -n -i -C 5 'update.*(region|availability)|modify.*(region|availability)|add.*(availability|AZ)|re-?deploy|redeploy|delete.*region|create.*region|BYOC region' \
tidb-cloud/byoc --glob '*.md' --glob '*.mdx' | head -n 500
printf '%s\n' '--- links and headings in BYOC management documents ---'
for f in $(git ls-files 'tidb-cloud/byoc/*.md'); do
case "$f" in
*manage*|*resource*|*deploy*|*region*) printf '\n### %s\n' "$f"; rg -n '^(#|.*\]\(/tidb-cloud/byoc/)' "$f" | head -n 120 ;;
esac
doneRepository: pingcap/docs Length of output: 50368 🏁 Script executed: #!/bin/bash
set -eu
printf '%s\n' '--- multi-region update procedure ---'
sed -n '1,190p' tidb-cloud/byoc/multi-region-deployment.md
printf '%s\n' '--- BYOC setup/update script references and availability-zone parameters ---'
rg -n -i -C 5 'tidbcloud-byoc-(setup|update)\.sh|availability|AZ|region' \
tidb-cloud/byoc/multi-region-deployment.md \
tidb-cloud/byoc/byoc-automated-deployment.md \
tidb-cloud/byoc/byoc-configure-iam-permissions.md 2>/dev/null
printf '%s\n' '--- exact region and AZ lifecycle statements in BYOC docs ---'
rg -n -i -C 4 'cannot.*(change|modify|update)|must.*(prepare|select|provide).*3|single.*AZ|additional.*(AZ|availability)|existing.*region' \
tidb-cloud/byoc --glob '*.md' --glob '*.mdx' | head -n 400Repository: pingcap/docs Length of output: 50370 🌐 Web query:
💡 Result: The script is located at:
It does not explicitly handle availability zones. It retrieves existing CloudFormation parameters and redeploys the selected stack while preserving those parameter values. [1] Supported stacks: [1] (raw.githubusercontent.com) Citations: Clarify how users can enable Regional resource pools after single-AZ preparation. The documented
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| ## Step 4. Create a hosted zone for TiDB | ||||||
|
|
||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -48,7 +48,18 @@ To create a resource pool, take the following steps: | |||||||||||
|
|
||||||||||||
| If you set a Pool vCPU Limit, make sure that the total vCPUs of the initial TiKV and TiFlash resources do not exceed 50% of the Pool vCPU Limit. This helps reserve capacity for future instance creation and automatic scale-out. | ||||||||||||
|
|
||||||||||||
| 6. In the **Pool CIDR** area, review or enter the CIDR range for the resource pool. | ||||||||||||
| 6. In the **High Availability** area, select a high availability mode for the resource pool. | ||||||||||||
|
|
||||||||||||
| - **Zonal**: deploys the resource pool in a single availability zone for lower network latency. | ||||||||||||
| - **Regional**: deploys the resource pool across multiple availability zones for higher availability and resilience against an availability-zone-level outage. | ||||||||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||
|
|
||||||||||||
| You must select a high availability mode before creating the resource pool. You cannot select the specific availability zones. TiDB Cloud determines the availability zones based on the BYOC region configuration and available cloud resources. | ||||||||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. reason: "You must select a high availability mode before creating the resource pool." can be deleted because each step here is mandatory by default. |
||||||||||||
|
|
||||||||||||
| To create a Regional resource pool, at least three eligible availability zones must be available in the region. If this requirement is not met, you cannot create the Regional resource pool. | ||||||||||||
|
|
||||||||||||
|
Comment on lines
+58
to
+59
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||
| After the resource pool is created, you cannot change its high availability mode or availability zone placement. | ||||||||||||
|
|
||||||||||||
| 7. In the **Pool CIDR** area, review or enter the CIDR range for the resource pool. | ||||||||||||
|
|
||||||||||||
| The resource pool CIDR is used as the network address range for resources in the resource pool and cannot be modified after the resource pool is created. | ||||||||||||
|
|
||||||||||||
|
|
@@ -61,10 +72,6 @@ To create a resource pool, take the following steps: | |||||||||||
|
|
||||||||||||
| TiDB Cloud validates CIDR overlap with known TiDB Cloud managed network ranges in the target region. TiDB Cloud cannot detect overlap with your application VPCs, on-premises networks, or VPN networks. You must verify these customer-managed network ranges before creating the resource pool. | ||||||||||||
|
|
||||||||||||
| 7. In the **High Availability** area, review the high availability mode. | ||||||||||||
|
|
||||||||||||
| The high availability mode is inherited from the BYOC deployment configuration of the selected region. You cannot change it when creating a Resource Pool. | ||||||||||||
|
|
||||||||||||
| 8. (Optional) In the **AWS Resource Tags** area, add tags. | ||||||||||||
|
|
||||||||||||
| Tags are applied to all taggable AWS resources within the resource pool. | ||||||||||||
|
|
||||||||||||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -49,9 +49,15 @@ If you have the required permissions, you can create a {{{ .byoc }}} instance as | |||||||||||||||||||
|
|
||||||||||||||||||||
| 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, it is automatically selected for the new instance. | ||||||||||||||||||||
|
|
||||||||||||||||||||
| If the selected resource pool has a Pool vCPU Limit and its current provisioned vCPU is greater than or equal to the limit, TiDB Cloud displays a warning and you cannot create the instance in that resource pool. To continue, go to the Resource Pool details page to increase or turn off the Pool vCPU Limit, or select another resource pool. | ||||||||||||||||||||
|
|
||||||||||||||||||||
| > **Important:** | ||||||||||||||||||||
| > | ||||||||||||||||||||
| > Even if the current provisioned vCPU is below the Pool vCPU Limit, creating a new instance might cause the total provisioned vCPU to exceed the limit. This might constrain resource scaling and degrade the performance of all instances in the resource pool. Before creating the instance, make sure that the resource pool has sufficient vCPU capacity. If necessary, increase or turn off the Pool vCPU Limit, or select another resource pool. | ||||||||||||||||||||
|
Comment on lines
+52
to
+56
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||
|
|
||||||||||||||||||||
| 7. In the **Capacity** area, set the maximum number of Request Capacity Units (RCUs) for your instance. RCUs represent the compute resources provisioned for your workload. TiDB Cloud automatically scales your instance within this range based on demand. | ||||||||||||||||||||
|
|
||||||||||||||||||||
| 8. For {{{ .byoc }}} instances, the high availability mode is inherited from the selected resource pool. If the resource pool uses regional high availability, the instance uses regional high availability. If the resource pool uses zonal high availability, the instance uses zonal high availability. You cannot configure the high availability mode when you create a BYOC instance. For more information, see [High Availability](/tidb-cloud/serverless-high-availability.md). | ||||||||||||||||||||
| 8. For {{{ .byoc }}} instances, the high availability mode is inherited from the selected resource pool. If the resource pool uses Regional high availability, the instance uses Regional high availability. If the resource pool uses Zonal high availability, the instance uses Zonal high availability. You cannot configure the high availability mode when you create a BYOC instance. For more information, see [TiDB Cloud BYOC architecture](/tidb-cloud/architecture-concepts.md#tidb-cloud-byoc). | ||||||||||||||||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||
|
|
||||||||||||||||||||
| 9. Click **Create**. | ||||||||||||||||||||
|
|
||||||||||||||||||||
|
|
||||||||||||||||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -43,6 +43,7 @@ To view resource pool details, click the name of a resource pool on the **Resour | |||||
|
|
||||||
| The resource pool details page includes the following information: | ||||||
|
|
||||||
| - **High Availability**: shows whether the resource pool uses Zonal or Regional high availability. This value is read-only. You cannot change the high availability mode or availability zone placement after the resource pool is created. | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| - **Pool vCPU Usage**: shows the current provisioned TiDB vCPU and additional vCPU provision. | ||||||
| - **Instances in This Pool**: lists the BYOC instances that run in this resource pool. | ||||||
| - **Metrics**: shows vCPU usage and physical storage usage trends. | ||||||
|
|
@@ -79,6 +80,12 @@ To update the Pool vCPU Limit, take the following steps: | |||||
|
|
||||||
| When you set a new Pool vCPU Limit, the value must be greater than or equal to `100` vCPU and the current provisioned TiDB vCPU. Otherwise, the update is rejected. | ||||||
|
|
||||||
| > **Important:** | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| > | ||||||
| > Even when the current provisioned vCPU is below the Pool vCPU Limit, creating or restoring an instance might cause the total provisioned vCPU to exceed the limit. This might constrain resource scaling and degrade the performance of all instances in the resource pool. Before creating or restoring an instance, make sure that the resource pool has sufficient vCPU capacity. | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
|
||||||
| If the current provisioned vCPU of a resource pool is greater than or equal to its Pool vCPU Limit, you cannot create or restore an instance in that resource pool. To create or restore an instance, increase or turn off the Pool vCPU Limit, or select another resource pool. | ||||||
|
|
||||||
| If the resource pool is in the **Modifying** status, **Update vCPU Limit** is disabled. | ||||||
|
|
||||||
| ## Update capacity | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -121,7 +121,7 @@ Use `tidbcloud-byoc-update.sh` to update the existing CloudFormation stacks. The | |||||
| Before running the update script: | ||||||
|
|
||||||
| 1. Confirm the AWS Regions to be added. | ||||||
| 2. Select the Availability Zones for the new regions. | ||||||
| 2. Select the Availability Zones for the new regions. A Regional resource pool requires at least three eligible availability zones. If you plan to create Regional resource pools in a new region, confirm that the region can provide at least three eligible availability zones. | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| 3. Plan the O11Y CIDR for each new region and the resource pool CIDRs for the resource pools you plan to create. Different regions can use the same O11Y CIDR. However, if you use metric integration to connect Grafana to multiple regions, use non-overlapping O11Y CIDRs for those regions. | ||||||
| 4. Confirm whether each new region will: | ||||||
| * share the existing PCA and TiDB hosted zone, or | ||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -242,7 +242,13 @@ To restore your data to a new {{{ .premium }}}<CustomContent plan="byoc"> or {{{ | |||||
|
|
||||||
| <CustomContent plan="byoc"> | ||||||
|
|
||||||
| For {{{ .byoc }}}, select an active resource pool in the same cloud provider and region as the backup. If no suitable resource pool is available, an `Organization Owner` can create one before restoring the instance. Other roles cannot create resource pools. For more information, see [Create a Resource Pool](/tidb-cloud/byoc/create-resource-pool-byoc.md). | ||||||
| For {{{ .byoc }}}, select an active resource pool in the same cloud provider and region as the backup. The restored instance inherits the high availability mode of the selected resource pool. You can restore the same backup to a Zonal or Regional resource pool if the resource pool meets the restore requirements. If no suitable resource pool is available, an `Organization Owner` can create one before restoring the instance. Other roles cannot create resource pools. For more information, see [Create a Resource Pool](/tidb-cloud/byoc/create-resource-pool-byoc.md). | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win Define the Regional resource-pool eligibility requirement in both restore workflows. Both changed lines use the undefined phrase
As per path instructions, the contiguous Markdown fixes use committable suggestions. The Regional prerequisite follows the resource-pool contract. 📍 Affects 1 file
Source: Path instructions |
||||||
|
|
||||||
| If the selected resource pool has a Pool vCPU Limit and its current provisioned vCPU is greater than or equal to the limit, TiDB Cloud displays a warning and you cannot restore the instance to that resource pool. To continue, go to the Resource Pool details page to increase or turn off the Pool vCPU Limit, or select another resource pool. | ||||||
|
|
||||||
| > **Important:** | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Important: is not supported in our doc site |
||||||
| > | ||||||
| > Even if the current provisioned vCPU is below the Pool vCPU Limit, restoring an instance might cause the total provisioned vCPU to exceed the limit. This might constrain resource scaling and degrade the performance of all instances in the resource pool. Before restoring the instance, make sure that the resource pool has sufficient vCPU capacity. If necessary, increase or turn off the Pool vCPU Limit, or select another resource pool. | ||||||
| </CustomContent> | ||||||
|
|
||||||
|
|
@@ -366,7 +372,13 @@ To restore backups from cloud storage, do the following: | |||||
|
|
||||||
| <CustomContent plan="byoc"> | ||||||
|
|
||||||
| For {{{ .byoc }}}, select an active resource pool that matches the target cloud provider and region. If no suitable resource pool is available, an `Organization Owner` can create one before restoring the instance. Other roles cannot create resource pools. For more information, see [Create a Resource Pool](/tidb-cloud/byoc/create-resource-pool-byoc.md). | ||||||
| For {{{ .byoc }}}, select an active resource pool that matches the target cloud provider and region. The restored instance inherits the high availability mode of the selected resource pool. You can restore the same backup to a Zonal or Regional resource pool if the resource pool meets the restore requirements. If no suitable resource pool is available, an `Organization Owner` can create one before restoring the instance. Other roles cannot create resource pools. For more information, see [Create a Resource Pool](/tidb-cloud/byoc/create-resource-pool-byoc.md). | ||||||
|
|
||||||
| If the selected resource pool has a Pool vCPU Limit and its current provisioned vCPU is greater than or equal to the limit, TiDB Cloud displays a warning and you cannot restore the instance to that resource pool. To continue, go to the Resource Pool details page to increase or turn off the Pool vCPU Limit, or select another resource pool. | ||||||
|
|
||||||
| > **Important:** | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| > | ||||||
| > Even if the current provisioned vCPU is below the Pool vCPU Limit, restoring an instance might cause the total provisioned vCPU to exceed the limit. This might constrain resource scaling and degrade the performance of all instances in the resource pool. Before restoring the instance, make sure that the resource pool has sufficient vCPU capacity. If necessary, increase or turn off the Pool vCPU Limit, or select another resource pool. | ||||||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| </CustomContent> | ||||||
|
|
||||||
|
|
||||||
Uh oh!
There was an error while loading. Please reload this page.