High-availability service management method based on distributed locks
The invention discloses a high-availability service management method based on distributed locks. Multiple smb processes call interfaces of a distributed system for data reading and writing, a ctdb is started simultaneously at each starting smb node, and a key-value pair database server is set for e...
Gespeichert in:
1. Verfasser: | |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention discloses a high-availability service management method based on distributed locks. Multiple smb processes call interfaces of a distributed system for data reading and writing, a ctdb is started simultaneously at each starting smb node, and a key-value pair database server is set for each host; when each ctdb acquires a shared file lock, each host launches a writing request for the corresponding key-value pair database server; if a lock state foo key in the key-value pair database server of the current host doesn't exist, the current host successfully acquires the locks, and otherwise, the current host fails to acquire the locks; when more than a preset number of hosts successfully acquire the locks, the locks are successfully acquired, and otherwise, acquisition of the locks fails. In the scheme, each ctdb doesn't use a rear-end distributed file system of an smb to store the shared file locks, so that normal use of the ctdb cannot be affected by faults of the distributed system; high availabili |
---|