-1

I repeatedly switch data nodes in high availability mode, the terminal continues prompting that the transaction is occupied, and then resumes after a few minutes. Why does this occur?enter image description here

Rob
  • 14,746
  • 28
  • 47
  • 65
Polly
  • 603
  • 3
  • 13
  • **DO NOT post images of code, data, error messages, etc.** - copy or type the text into the question. [ask] – Rob Oct 25 '21 at 09:38

1 Answers1

0

Regarding the questions about switching data nodes repeatedly, prompting the transactions are occupied and so on, the mechanism is as follows. After a data node is down, it takes some time to synchronize the transaction status between itself and the control node. The transaction timeout is about two minutes. In addition, There is some time spent on data recovery, which is related to the specific data volume. If you switch back to this node again in a short time, you will be prompted that the transaction is occupied, and it will be restored in about two minutes. In actual production, the probability of a node breaks down, especially some different nodes hangs continuously within a few minutes is extremely small. Thus, for high-availability tests, it is recommended to set the interval between simulated hangs more than two minutes. It is better to have interval time longer than 5 mins for simulating the breakdown of next node.

jinwandalaohu
  • 226
  • 1
  • 7