High-availability service management method based on distributed locks

A technology of service management and distributed locks, applied in the field of high-availability services, can solve problems such as high delay and affecting the high availability of smb processes, and achieve the effect of simple construction and convenient deployment

Inactive Publication Date: 2017-01-04
INSPUR BEIJING ELECTRONICS INFORMATION IND
View PDF5 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The purpose of the present invention is to provide a high-availability service management method based on distributed locks, and the purpose is to solve the problem tha

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • High-availability service management method based on distributed locks
  • High-availability service management method based on distributed locks
  • High-availability service management method based on distributed locks

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] In order to enable those skilled in the art to better understand the solution of the present invention, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.

[0028] The flow chart of a specific implementation of the distributed lock-based high-availability service management method provided by the present invention is as follows figure 1 As shown, the method includes:

[0029] Step S101: multiple smb processes call the interface of the distributed system to read and write data, start ctdb at the same time on each start smb node, and each host sets the key-value p...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

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 availability of the smb and decoupling of the read-write distributed file system are realized.

Description

Technical field [0001] The present invention relates to the technical field of high-availability services, in particular to a high-availability service management method based on distributed locks. Background technique [0002] With the advent of the Internet age, websites and applications for ordinary Internet users, such as Weibo, WeChat, and online shopping, are booming. Giant companies in the Internet industry provide various Internet-based services to hundreds of millions of users. Internet users all over the world publish information online every day, and the amount of data they generate is several times the amount of personal computer data. [0003] Internet companies usually use high-performance servers to store these data. However, ordinary storage systems can no longer support more and more user data, and power outages, disasters, and system failures make it difficult to guarantee data security. In order to respond to the surge of user requests at any time, more and mor...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F9/52H04L29/08
Inventor 毕敬强
Owner INSPUR BEIJING ELECTRONICS INFORMATION IND
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products