How to Modify Cluster Configuration Offline Using the `tiup cluster edit-config` Command

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

Original topic: tiup cluster edit-config 命令如何离线执行修改集群配置

| username: TiDBer_tAezjizb

When using the tiup cluster edit-config command to adjust cluster parameters, the following prompt appears:

tiup is checking updates for component cluster ...timeout(2s)!
Error: fetch /timestamp.json from mirror( failed: download from failed: Get "": dial tcp: lookup on read udp [IP]:36829-> i/o timeout

How can I adjust cluster parameters in an offline environment?

| username: zhaokede | Original post link

Have all the processes stopped? There aren’t even basic services anymore.

| username: 啦啦啦啦啦 | Original post link

Refer to this link and give it a try:

| username: Amy_Jing | Original post link

Refer to the official documentation at tiup cluster edit-config | PingCAP 文档中心.

| username: Amy_Jing | Original post link

Previously, I was using the online image, but now there’s no internet.

You can download an offline image, then run sh to install the offline image, and it should work.

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

Create an offline mirror package, then use tiup mirror set to set the new offline mirror directory, and re-execute the SQL.

| username: Soysauce520 | Original post link

There is a step in the offline installation section.

| username: chenhanneu | Original post link

tiup mirror set "down下来的dir目录"

tiup mirror show can be used to check whether the current mirror is online or an offline directory.

| username: madcoder | Original post link

Copilot’s Magic Makes TiDB Offline Upgrades Easy and Pleasant

| username: DBAER | Original post link

Refer to this to create an offline mirror:

| username: mono | Original post link

Download the image, then upload it to the server and use the local image. For detailed instructions, refer to the deployment section on the official website. If you still have questions after reading the deployment guide, you might need to learn some Linux basics. I recommend checking out “The Linux Command Line” by William Shotts. Many of the first batch of Linux administrators in China have it in their collections.