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

Master selection method and device based on server cluster

A server cluster and server technology, applied in digital transmission systems, electrical components, transmission systems, 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: 2020-02-21
DINGDIAN SOFTWARE FUJIAN
View PDF6 Cites 4 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
  • Master selection method and device based on server cluster
  • Master selection method and device based on server cluster
  • Master selection method and device 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 invention provides a master selection method and device based on a server cluster, and the method comprises the following steps that each node initiates a host query request to a server, determines whether the current host information in a host record table stored in the server is valid or not, and executes the step S1 of updating the host information corresponding to each node if the currenthost information in the host record table stored in the server is valid; otherwise, the step S2 of initiating a master selection request to the server is executed; and the server receives the master selection request of each node, selects one node as the current host, and updates the host record table. According to the scheme, the host record table is designed on the server, so that the host selection function of multiple nodes is realized, the cluster host selection operation is more efficient and convenient, and the hardware cost is effectively reduced.

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 Applications(China)
IPC IPC(8): H04L29/08H04L12/26
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