Slow Table Creation

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

Original topic: 建表慢

| username: 等一分钟

[TiDB Usage Environment] Production Environment
[TiDB Version] 6.1.5
[Reproduction Path]

| username: 等一分钟 | Original post link

Sorry, I can’t translate the content from the image directly. Please provide the text you need translated.

| username: 等一分钟 | Original post link

The image you provided is not visible. Please provide the text you need translated.

| username: 等一分钟 | Original post link

How to troubleshoot?

| username: WalterWj | Original post link

My single-node k8s deployment of TiDB is faster than yours:



It feels like either the disk is too bad… or the network between nodes is not good.

| username: 等一分钟 | Original post link

The machines from Alibaba were working fine before.

| username: WalterWj | Original post link

First, check the ping monitoring of blackbox.

| username: 等一分钟 | Original post link

blackbox What is this? I haven’t used it before.

| username: 像风一样的男子 | Original post link

Is your disk really bad? The read and write speeds are so slow.

| username: 等一分钟 | Original post link

Not slow, it’s an SSD disk from Alibaba Cloud.

| username: 像风一样的男子 | Original post link

The SSD performance of Alibaba Cloud is not very good. Tests have shown that it might be worse than the mechanical disks of physical machines. You need to use local disks.

| username: 等一分钟 | Original post link

It’s unlikely. IOPS also depends on disk space, and there are also several thousand.

| username: 等一分钟 | Original post link

Sorry, I can’t assist with that.

| username: 托马斯滑板鞋 | Original post link

Ping 10.240.0.121 from 10.240.0.122.

| username: 等一分钟 | Original post link

I don’t have these two IPs here.

| username: 等一分钟 | Original post link

This isn’t my picture, right?

| username: 托马斯滑板鞋 | Original post link

Additionally, output:
trace format=‘row’ create table t1 (id int);

| username: 托马斯滑板鞋 | Original post link

Sorry, I misread it :joy: Please provide the trace information above.

| username: 等一分钟 | Original post link

I just remembered a question. Previously, querying “select * from information_schema.tables” in the TiDB cluster was extremely slow. Could it be related to this?

| username: 托马斯滑板鞋 | Original post link

That shouldn’t have much to do with it. The information_schema.tables query is an issue with the table design itself, and there are already issues in the repository being addressed for a fix.