Dear all 1) In the current version, there is a dead loop, one second for each sleep: if the database fails, the master will always print the log. The disadvantage is that it is easy to fill up the disk. The advantage is that the service can be restored after the database is restored.
2) Allows users to set the number of consecutive database connection failures, the default value is - 1 (that is unlimited number). If the maximum number of database connection failures is reached, the master exits the service. The advantage is that the maximum number of logs can be controlled. The disadvantage is that if the number of consecutive database connection failures exceeds the maximum number of database connection failures, the master will exit and the service cannot be restored after the database is restored. 1) ????????,????????????????1????????????????????master???????????????????????????????????????????????????????????????????????????????? 2) ????????????????????????????????????????????-1??????????????????????????????????????????????????????master?????????????????????????????????????????????????? ????????????????????????????????????????????????????????????master???????????????????????????????????? liukunyuan
