Shared resource access method based on zookeeper, client, server and system

A technology for sharing resources and access methods, applied in the fields of client, system, server, and shared resource access methods, can solve problems such as locks that cannot be released and cannot be re-entered, and achieve the effect of avoiding deadlock problems

Inactive Publication Date: 2018-05-15
GUANGZHOU FENGZHUSHOU NETWORK TECHNOLOGY CO LTD
View PDF5 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0010] For the above problems, the object of the present invention is to provide a zookeeper-based shared resource access method, client, server, and system, which can effectively solve single-point problems, non-reentrant problems, non-blocking problems and locks that cannot be released. , the lock has high security and can be persistent

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
  • Shared resource access method based on zookeeper, client, server and system
  • Shared resource access method based on zookeeper, client, server and system
  • Shared resource access method based on zookeeper, client, server and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0049] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0050] The embodiment of the present invention provides a zookeeper-based shared resource access method, device, server, client, and system in a distributed system environment, which are used to implement access management of shared resources in a distributed environment, and the following are respectively carried out describe.

[0051] see figure 1 , the first embodiment of the present invention provides a shared resource access method based on zookeeper, wh...

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 shared resource access method based on zookeeper, a client, a server and a system. The method comprises the following steps that when an access request for a preset resourceis sent to the server, and corresponding unique instant ordered nodes are created under a catalogue corresponding to the resource, wherein the corresponding unique instant ordered nodes comprise nodeserial numbers; the change of all the instant ordered nodes under the catalogue sent by the server is obtained; when it is judged that the node serial numbers of the own instant ordered nodes are minimum according to the change, a lock is obtained from the server so as to obtain the permission for having access to the resource. On the basis of the method, the single-point problem, the non-reentryproblem, the non-blocking problem and the problem that the lock cannot be released can be effectively solved, and the lock is high in safety and can be durable.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a zookeeper-based shared resource access method, client, server and system. Background technique [0002] In a distributed system, it is often necessary to coordinate actions among various systems. If different systems or different hosts of the same system share one or a group of resources, when accessing these resources, mutual exclusion is often required to prevent mutual interference and ensure consistency. In this case, you need Use distributed locks. [0003] The implementation method of the existing distributed lock based on the database is as follows: create a table in the database, the table contains at least the "resource name" field with unique constraint properties, when a certain method or resource is to be locked , just add a record to the table, and delete this record when you want to release the lock. [0004] Due to the unique constraint on the "resource name...

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/52G06F9/54
CPCG06F9/52G06F9/546G06F2209/544G06F2209/548
Inventor 杨文波吴宝才罗洪鹏
Owner GUANGZHOU FENGZHUSHOU NETWORK TECHNOLOGY CO LTD
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