Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: 并行执行多条tiup命令会不会有影响?
[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?
There is no impact as long as the exec content does not conflict.
Yes, I didn’t think there would be any risk points either
The main thing is to pay attention to the dependencies between commands. It’s better to use &&
to separate them.
command1 && command2 && command3
If there is no conflict, there should be no impact.
If you’re preparing a script, it’s still better to test it out.
Although it is parallel, there is always a sequence, so it doesn’t seem to be a big problem.
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.
I am planning to use tiup cluster exec to copy directories of each node, thinking that executing simultaneously will save time.
I directly run all tasks in the background using the script with nohup &.
Why do you need to copy the directories of each node?
Perform cold backup and cross-version upgrade.
This exec is for executing commands remotely via SSH, right?
The process executed by this command is
No big deal, but why not use the BR tool for cold backup?