Will executing multiple tiup commands in parallel have any impact?

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

Original topic: 并行执行多条tiup命令会不会有影响?

| username: Daniel-W

[Test Environment for TiDB] Testing/
[TiDB Version] v5.1
What are the potential impacts of executing multiple tiup commands in parallel?
For example, if 50 tiup cluster exec commands are executed simultaneously, and each tiup cluster exec takes 2 minutes to complete, are there any risks?
I understand that exec is actually executed on each node, so there shouldn’t be any issues, right?

| username: Soysauce520 | Original post link

There is no impact as long as the exec content does not conflict.

| username: Daniel-W | Original post link

Yes, I didn’t think there would be any risk points either :melting_face:

| username: 江湖故人 | Original post link

The main thing is to pay attention to the dependencies between commands. It’s better to use && to separate them.
command1 && command2 && command3

| username: kelvin | Original post link

If there is no conflict, there should be no impact.

| username: redgame | Original post link

If you’re preparing a script, it’s still better to test it out.

| username: zhanggame1 | Original post link

It seems fine.

| username: WinterLiu | Original post link

Although it is parallel, there is always a sequence, so it doesn’t seem to be a big problem.

| username: YuchongXU | Original post link

Not recommended

| username: Demo二棉裤 | Original post link

The different content executed after tiup should not have any impact. If it’s something like display, executing it simultaneously should not be a problem.

| username: Daniel-W | Original post link

Share your thoughts.

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

No impact.

| username: Daniel-W | Original post link

I am planning to use tiup cluster exec to copy directories of each node, thinking that executing simultaneously will save time.

| username: Daniel-W | Original post link

I directly run all tasks in the background using the script with nohup &.

| username: xfworld | Original post link

Why do you need to copy the directories of each node?

| username: Daniel-W | Original post link

Perform cold backup and cross-version upgrade.

| username: xfworld | Original post link

Why not use BR? :rofl:

| username: DBAER | Original post link

This exec is for executing commands remotely via SSH, right?

| username: Daniel-W | Original post link

The process executed by this command is

| username: 这里介绍不了我 | Original post link

No big deal, but why not use the BR tool for cold backup?