Research on and implementation of machine learning algorithms for failure prediction in the operation of the Raft consensus algorithm