Check patentability & draft patents in minutes with Patsnap Eureka AI!

A method and device for master selection based on server cluster

A server cluster and server technology, applied in the transmission system, electrical components, etc., can solve the problems of unreliability and high hardware cost, and achieve the effect of reducing hardware cost and efficient and convenient operation of cluster master selection

Active Publication Date: 2022-02-15
DINGDIAN SOFTWARE FUJIAN
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] To this end, it is necessary to provide a technical solution based on server cluster master selection to solve the problems of high hardware cost and unreliability of the existing cluster master selection method

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
  • A method and device for master selection based on server cluster
  • A method and device for master selection based on server cluster
  • A method and device for master selection based on server cluster

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] In order to explain in detail the technical content, structural features, achieved goals and effects of the technical solution, the following will be described in detail in conjunction with specific embodiments and accompanying drawings.

[0027] Such as Figure 5 As shown, it is a flowchart of a method for selecting a master based on a server cluster according to another embodiment of the present invention, and the method includes the following steps:

[0028] First enter step S501, each node initiates a host query request to the server to confirm whether the current host information in the host record table stored in the server is valid, and if so, perform step S1: update the host information corresponding to each node; otherwise, perform step S2: send a query to the server Initiate a master election request;

[0029] After step S2, it may enter step S502 where the server receives the host election request from each node, selects one of the nodes as the current host,...

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 present invention provides a method and device for selecting a host based on a server cluster. The method includes the following steps: each node initiates a host query request to the server, confirms whether the current host information in the host record table stored in the server is valid, and if so, executes Step S1: update the host information corresponding to each node; otherwise, perform step S2: initiate a master election request to the server; the server receives each node master election request, selects one of the nodes as the current host, and updates the host record table. The above solution realizes the master election function of multiple nodes by designing the host record table on the server, making the cluster master election operation more efficient and convenient, and effectively reducing the hardware cost.

Description

technical field [0001] The invention relates to the field of cluster master selection, in particular to a server-based cluster master selection method and device. Background technique [0002] In the existing technology, a middleware architecture service needs to have disaster recovery and load balancing capabilities when it goes online. Therefore, clusters are generally used in design. Specifically, a distributed server cluster is formed through multiple nodes. Each node service can provide services to the outside world, sharing the pressure to form load balancing. [0003] In the way of server clusters, generally a leader (i.e. host) is required to be responsible for writing data, so as to avoid the problem of data confusion caused by concurrent writing of each node service. A way to serve as a leader. There are two common master selection methods for distributed consistent clusters, paxos and raft. These two methods are strong consistency protocols, requiring each node ...

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
Patent Type & Authority Patents(China)
IPC IPC(8): H04L67/1042H04L67/1001H04L43/10
CPCH04L67/1051H04L43/10H04L67/1001
Inventor 余存惠刘泉辉
Owner DINGDIAN SOFTWARE FUJIAN
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