{'fraction_non_alphanumeric': 0.015050167224080268, 'fraction_numerical': 0.0, 'mean_word_length': 5.687150837988827, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
A Fault Diagnosis Method for Microservices Based on Multi-Factor Self-Adaptive Heartbeat Detection Algorithm

Microservice architecture is widely adopted by the current Internet application systems. How to detect faults in microservices effectively and locate them accurately is one of the key problems to guarantee the reliability and performance of microservice systems. This paper combined the use of heartbeat detection mechanism in distributed systems and the characteristics of microservice, put forward a fault diagnosis method for microservices based on multi-factor self-adaptive heartbeat detection algorithm (M-MFSA-HDA). The algorithm uses pull mode heartbeat detection mechanism, combines three factors and can adjust the transmission frequency of heartbeat messages adaptively by giving the optimal solution of it when detecting the failure of microservices. Finally, this paper simulated the algorithm, verified the effect of multiple factors on self-adaptive adjustment of the frequency of sending heartbeat messages and the performance of the algorithm is better than heartbeat detection algorithm based on push mode or which based on pull mode but only considers network factor.