Skip to content

Serverless changefeed #21272

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

Open
wants to merge 605 commits into
base: master
Choose a base branch
from

Conversation

shiyuhang0
Copy link
Member

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.4 (TiDB 8.4 versions)
  • v8.3 (TiDB 8.3 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)
  • v6.1 (TiDB 6.1 versions)
  • v5.4 (TiDB 5.4 versions)

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

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

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

hfxsd and others added 30 commits January 3, 2025 01:12
@ti-chi-bot ti-chi-bot bot added area/develop This PR relates to the area of TiDB App development. missing-translation-status This PR does not have translation status info. labels Jun 27, 2025
Copy link

ti-chi-bot bot commented Jun 27, 2025

[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 assign breezewish for approval. 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.

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

@ti-chi-bot ti-chi-bot bot added the size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. label Jun 27, 2025
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Summary of Changes

Hello @shiyuhang0, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request extensively updates and reorganizes the documentation for TiDB, with a strong focus on differentiating between TiDB Cloud (Serverless and Dedicated) and TiDB Self-Managed offerings. It introduces new sections, clarifies existing ones, updates terminology, and adds documentation for new features like Vector Search, enhanced Data Service APIs, and various CLI/Terraform resources. The changes also include general maintenance such as updating release versions, managing approvers, and ignoring new external links.

Highlights

  • Documentation Restructuring: Major reorganization of the TiDB documentation, clearly separating content for TiDB Cloud (Serverless and Dedicated) and TiDB Self-Managed, and introducing new top-level sections like "GET STARTED", "DEVELOP", "GUIDES", "REFERENCE", and "RELEASES" in the Table of Contents.
  • New Feature Documentation: Added comprehensive documentation for new features including Vector Search, expanded Data Service APIs (Chat2Query, Custom Domain, Integrations), Disaster Recovery (Recovery Group), and support for Apache Pulsar as a Changefeed sink.
  • Terminology and Branding Updates: Consistent renaming of "TiDB Serverless" to "TiDB Cloud Serverless" and "TiDB Dedicated" to "TiDB Cloud Dedicated" across the documentation to align with product branding.
  • Tooling and Integration Enhancements: Documented new Terraform resources for managing TiDB Cloud components and updated CLI commands, reflecting expanded automation and integration capabilities.
  • Security and Observability Improvements: Added best practices for security configuration, detailed new monitoring metrics for backup/restore, and introduced new system tables for enhanced observability.
  • Release and Compatibility Updates: Updated documentation to reflect new TiDB release versions (e.g., 8.1 LTS) and provided detailed compatibility matrices for tools like BR.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist is currently in preview and may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments to provide feedback.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

The code changes involve updates to .lycheeignore, OWNERS, README.md, TOC-tidb-cloud.md, TOC.md, _docHome.md, _index.md, and various other files. These updates include adding new URLs to the ignore list, modifying approvers, updating documentation, and reorganizing table of contents. The changes seem to focus on improving documentation clarity, adding new features, and updating configurations.

Comment on lines +15 to 32
emeritus_approvers:
- CaitinChen
- CharLotteiu
- cofyc
- DanielZhangQD
- dcalvin
- dragonly
- en-jin19
- lichunzhu
- Liuxiaozhen12
- morgo
- queenypingcap
- ran-huang
- shichun-0415
- SunRunAway
- tangenta
- TomShawn
- toutdesuite
- WangXiangUSTC

Choose a reason for hiding this comment

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

medium

Moving approvers to emeritus_approvers is a significant change. Ensure that this change aligns with the team's current structure and responsibilities.

Comment on lines 3 to 4
summary: Learn the `AUTO_INCREMENT` column attribute of TiDB.
aliases: ['/docs/dev/auto-increment/']
---

Choose a reason for hiding this comment

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

low

Consider removing the aliases as they are no longer needed.

Comment on lines +110 to +111
# Only open ports 4000 and 9000 to external users
sudo iptables -A INPUT -p tcp --dport 4000 -j ACCEPT

Choose a reason for hiding this comment

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

low

Consider using a more general description to avoid confusion.

Suggested change
# Only open ports 4000 and 9000 to external users
sudo iptables -A INPUT -p tcp --dport 4000 -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 4000 -j ACCEPT

- [Connect via Private Endpoint with AWS](/tidb-cloud/set-up-private-endpoint-connections.md)
- [Connect via Private Endpoint (Private Service Connect) with Google Cloud](/tidb-cloud/set-up-private-endpoint-connections-on-google-cloud.md)
- [Connect via Private Endpoint with Azure](/tidb-cloud/set-up-private-endpoint-connections-on-azure.md)

Choose a reason for hiding this comment

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

low

Consider using Public Connection instead of Standard Connection for clarity and consistency.

Suggested change
- [Connect via Private Endpoint with Azure](/tidb-cloud/set-up-private-endpoint-connections-on-azure.md)
- [Connect via Public Connection](/tidb-cloud/connect-via-standard-connection.md)

- Explore Data
- [Chat2Query (Beta)](/tidb-cloud/explore-data-with-chat2query.md)
- Data Service (Beta)
- [Chat2Query in SQL Editor](/tidb-cloud/explore-data-with-chat2query.md) ![BETA](/media/tidb-cloud/blank_transparent_placeholder.png)

Choose a reason for hiding this comment

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

low

It seems like the SQL Proxy Account is not a beta feature, so the beta tag should be removed.

Suggested change
- [Chat2Query in SQL Editor](/tidb-cloud/explore-data-with-chat2query.md) ![BETA](/media/tidb-cloud/blank_transparent_placeholder.png)
- [SQL Proxy Account](/tidb-cloud/sql-proxy-account.md)


If your average row size is larger than 512 bytes, you can enable Titan to reduce the compaction I/O flow as follows, with `min-blob-size` set to `"512B"` or `"1KB"` and `blob-file-compression` set to `"zstd"`:

```toml

Choose a reason for hiding this comment

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

low

Consider rephrasing for better readability.

Suggested change
```toml
245: - [Overview of Resource Allocation](/tidb-cloud/optimize-resource-allocation.md)


If your average row size is larger than 512 bytes, you can enable Titan to reduce the compaction I/O flow as follows, with `min-blob-size` set to `"512B"` or `"1KB"` and `blob-file-compression` set to `"zstd"`:

```toml

Choose a reason for hiding this comment

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

low

Consider rephrasing for better readability.

Suggested change
```toml
246: - [Resource Control](/tidb-resource-control.md)


If your average row size is larger than 512 bytes, you can enable Titan to reduce the compaction I/O flow as follows, with `min-blob-size` set to `"512B"` or `"1KB"` and `blob-file-compression` set to `"zstd"`:

```toml

Choose a reason for hiding this comment

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

low

Consider rephrasing for better readability.

Suggested change
```toml
247: - TiDB Node Group


If your average row size is larger than 512 bytes, you can enable Titan to reduce the compaction I/O flow as follows, with `min-blob-size` set to `"512B"` or `"1KB"` and `blob-file-compression` set to `"zstd"`:

```toml

Choose a reason for hiding this comment

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

low

Consider rephrasing for better readability.

Suggested change
```toml
248: - [Overview of TiDB Node Group](/tidb-cloud/tidb-node-group-overview.md)


If your average row size is larger than 512 bytes, you can enable Titan to reduce the compaction I/O flow as follows, with `min-blob-size` set to `"512B"` or `"1KB"` and `blob-file-compression` set to `"zstd"`:

```toml

Choose a reason for hiding this comment

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

low

Consider rephrasing for better readability.

Suggested change
```toml
249: - [Manage TiDB Node Groups](/tidb-cloud/tidb-node-group-management.md)

Copy link

ti-chi-bot bot commented Jun 27, 2025

@shiyuhang0: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
pull-verify edbd3df link true /test pull-verify

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/develop This PR relates to the area of TiDB App development. missing-translation-status This PR does not have translation status info. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.