What specific information is stored in the schema load of the TiDB Server?

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: TiDB Server中 schema load具体存储什么信息?

| username: alfred

To improve efficiency, please provide the following information. Clear problem descriptions can lead to faster resolutions:

[Overview] Scenario + Problem Overview

[Application Framework and Development Adaptation Business Logic]

[Background] Actions Taken

[Phenomenon] Business and Database Phenomenon

[Problem] Current Issues Encountered

[Business Impact]

[TiDB Version]

[Attachments] Relevant Logs and Monitoring (https://metricstool.pingcap.com/)


For questions related to performance optimization or troubleshooting, please download the script and run it. Please select all and copy-paste the terminal output results for upload.

| username: forever | Original post link

The Online DDL operation in TiDB requires the collaboration of the start job, worker, and schema load modules on the TiDB Server nodes, as well as the job queue and history queue on the TiKV nodes.

In the TiDB database, only one TiDB Server can perform Online DDL operations at any given time. We refer to the TiDB Server that can execute Online DDL tasks at the current moment as the Owner.

The scheduling process for Online DDL operations in TiDB is roughly as follows:

  1. Different users connect to different TiDB Servers, and the DDL operations they issue are received by the start job module, which generates a corresponding job and places it in the job queue on the TiKV nodes.
  2. The worker module in the TiDB Server acting as the Owner will fetch the Online DDL job from the job queue on the TiKV nodes to execute. The executed job will be moved to the history queue, and then the Owner will fetch the next job from the job queue to execute.
  3. When the current Owner’s term ends, a new TiDB Server will be elected as the new Owner to execute Online DDL tasks. At the same time, the schema load module in the new Owner will synchronize the latest schema information of all tables to the cache of the TiDB Server.
| username: Running | Original post link

The original poster is professional.

| username: tidb菜鸟一只 | Original post link

This behavior would be called “necroposting” in forums, right?

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.