Metadata service switching method and device, server and storage medium

The invention provides a metadata service switching method and device, a server and a storage medium. The method comprises the following steps: monitoring whether each node in the distributed file system has a fault or not by adopting a cluster database ctdb service so as to obtain an ip address of...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: REN ZHONGTAO, YAN YAHAO, ZHANG QIWAN, HAN LU
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention provides a metadata service switching method and device, a server and a storage medium. The method comprises the following steps: monitoring whether each node in the distributed file system has a fault or not by adopting a cluster database ctdb service so as to obtain an ip address of the fault node after monitoring the node fault; determining a metadata service mds identifier corresponding to the fault node according to the ip address of the fault node; updating the mds state corresponding to the mds identifier in the metadata service state information corresponding to each node as a fault, and determining a standby mds corresponding to the fault node; and controlling the standby mds to perform corresponding switching operation so as to adopt the standby mds to provide metadata service for the fault node. According to the method provided by the invention, the ctdb service is adopted for monitoring, and unavailability of the fault node can be quickly sensed, so that the standby mds are selected