Supercharge Your Innovation With Domain-Expert AI Agents!

Realization method and system of distributed lock and related equipment

A technology of distributed locks and implementation methods, which is applied in the electronic field and can solve problems such as difficult upgrades and low performance of distributed locks

Active Publication Date: 2017-07-07
HUAWEI TECH CO LTD
View PDF7 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Currently, the industry mainly uses distributed locks based on the zookeeper distributed service framework or chubby distributed system, which are limited by the functions and implementation characteristics of zookeeper and chubby systems, resulting in low performance of distributed locks and difficult to improve , become the bottleneck of distributed system business operation

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
  • Realization method and system of distributed lock and related equipment
  • Realization method and system of distributed lock and related equipment
  • Realization method and system of distributed lock and related equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0050] The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.

[0051] The technical solutions of the embodiments of the present application are applicable to various distributed systems, for example, Figure 1a A schematic diagram of a network architecture based on a distributed system is shown, including at least one network device 101 ( Figure 1a Shown is a network device 101a, a network device 101b and a network device 101c) and at least one client 102 connected to the network device 101 ( Figure 1a The client 102a, the client 102b and the client 102c are shown), wherein at least one client 102 as a whole can provide services together as a distributed system; at least one network device 101 is a network device for implementing distributed locks , at least one of the network devices 101 serves as a master network node, and the rest of the network devices serv...

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 provides a realization method and system of a distributed lock and related equipment. The method comprises that a main network node receives a lock processing message, the lock processing message is cached, at least two lock processing messages cached at present are obtained, a piece of log information is generated according to the at least two lock processing messages cached at present, the log information is synchronized in at least two auxiliary network nodes belongs to the main network node, and the at least two lock processing messages in the log information are processed when synchronization of the log information is determined to succeed. According to the invention, the main network node can process the lock processing messages in a batch manner, and the main network node is prevented from sudden performance decrease, caused by synchronizing the lock processing messages and receiving confirmation messages frequently, of the distributed lock.

Description

technical field [0001] The invention relates to the field of electronic technology, in particular to a method for realizing a distributed lock, related equipment and a system. Background technique [0002] With more and more scenarios of high concurrent access and massive data processing of large websites, how to achieve high availability, easy scalability, scalability, security and other goals of the website is becoming more and more important. In order to solve such a series of problems, the concept of distributed system is proposed. To put it simply, a distributed system is a collection of independent computers that provide services to the outside world, but for system users, it is like a computer providing services. In a distributed system, different systems or different hosts of the same system share one or a group of resources, then when users access these resources, they often need mutual exclusion to prevent mutual interference. Next, you need to use distributed lo...

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): H04L29/08
CPCH04L67/10H04L67/1095H04L67/568
Inventor 宋跃忠侯杰林程勇戴龙飞
Owner HUAWEI TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More