github.com/aergoio/aergo@v1.3.1/consensus/impl/raftv2/test/test_slow_follower_restart.sh (about)

     1  #!/usr/bin/env bash
     2  source test_common.sh
     3  
     4  echo ""
     5  echo "============================== raft server slow follower restart test ============================"
     6  
     7  BP_NAME=""
     8  
     9  #rm BP*.toml
    10  #./aergoconf-gen.sh 10001 tmpl.toml 5
    11  #clean.sh
    12  #./inittest.sh
    13  
    14  echo ""
    15  echo "======== make initial server ========="
    16  make_node.sh 
    17  
    18  checkSync 10001 10002 60
    19  checkSync 10001 10003 60
    20  
    21  sleep 10
    22  
    23  kill_svr.sh 11003
    24  
    25  echo "run aergo3(11003). this node is slower than other nodeds."
    26  DEBUG_CHAIN_OTHER_SLEEP=15000 run_svr.sh 11003
    27  #DEBUG_CHAIN_OTHER_SLEEP=2000 run_svr.sh 11003
    28  
    29  checkSyncRunning 10001 10003 100
    30  
    31  kill_svr.sh 11003
    32  run_svr.sh 11003
    33  
    34  checkSync	10001 10003 300
    35  echo "------------ success--------------"
    36  
    37