Leader node management method and device based on artificial intelligence, equipment and storage medium

A technology of node management and artificial intelligence, applied in the direction of program control device, program control design, electrical digital data processing, etc., can solve the problem that the follow node cannot be called correctly

Pending Publication Date: 2022-02-25
ONE CONNECT SMART TECH CO LTD SHENZHEN
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The purpose of the present invention is to provide a leader node management method, device, device and storage medium based on artificial intelligence, which is used to solve the problem in the prior art that a server has two or two nodes because the previous leader node goes online again. The above leader node caused the problem that the follow node could not be called correctly due to the coexistence of multiple leader nodes

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
  • Leader node management method and device based on artificial intelligence, equipment and storage medium
  • Leader node management method and device based on artificial intelligence, equipment and storage medium
  • Leader node management method and device based on artificial intelligence, equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0044] see figure 1 , a kind of artificial intelligence-based leader node management method of the present embodiment, runs in the zookeeper server, comprises:

[0045] S101: Construct the first connection between the zookeeper server and the server, create a leader node for managing the service components in the server through the zookeeper server, wherein the server is a service provider with at least one service component party, the service component is a computer program for providing specified services;

[0046] S104: Perform recovery processing or uninstallation processing on the leader node in the zookeeper server according to the running state of the zookeeper server and / or the connection state of the first connection;

[0047] S106: After the leader node is uninstalled, re-elect the leader node of the server.

[0048] In an exemplary embodiment, by receiving the first connection request sent by the server and establishing a first connection between the zookeeper ser...

Embodiment 2

[0053] This embodiment is a specific application scenario of the first embodiment above. Through this embodiment, the method provided by the present invention can be described more clearly and specifically.

[0054] In the following, in the server running the leader node management method, according to the running state of the zookeeper server and / or the connection state of the first connection, the leader node is restored or unloaded as an example, to provide an example of the present embodiment. The method is described in detail. It should be noted that this embodiment is only exemplary, and does not limit the protection scope of the embodiment of the present invention.

[0055] figure 2 A schematic diagram of an environment application of the artificial intelligence-based leader node management method according to Embodiment 2 of the present application is schematically shown.

[0056] In an exemplary embodiment, the zookeeper server 2 where the leader node management me...

Embodiment 3

[0109] see Figure 4 , a leader node management device 1 based on artificial intelligence in this embodiment is installed in a zookeeper server, including:

[0110] The first creation module 11 is used to construct the first connection between the zookeeper server and the service end, and creates a leader node for managing service components in the service end through the zookeeper server, wherein the service end has at least A service provider of a service component, which is a computer program for providing specified services;

[0111] A node processing module 14, configured to restore or unload the leader node in the zookeeper server according to the running state of the zookeeper server and / or the connection state of the first connection;

[0112] The leader election module 16 is configured to re-elect the leader node of the server after the leader node is uninstalled.

[0113] Optionally, the leader node management device 1 further includes:

[0114] The second creatio...

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 relates to artificial intelligence, and discloses a leader node management method and device based on artificial intelligence, equipment and a storage medium, and the method comprises the steps: constructing a first connection between a zookeeper server and a server side, creating a leader node for managing a service component in the server side through the zookeeper server, according to the running state of the zookeeper server and/or the connection state of the first connection, carrying out recovery or unloading on a leader node in the zookeeper server; and after the unloading processing is carried out on the leader node, electing the leader node of the server side again. The situation that a plurality of leader nodes coexists due to the fact that a new leader node is directly selected again when the zookeeper server considers that the leader node is offline is avoided.

Description

technical field [0001] The present invention relates to the technical field of artificial intelligence, in particular to an artificial intelligence-based leader node management method, device, equipment and storage medium. Background technique [0002] Because when the zookeeper server fails, or the connection between the server and the server is disconnected, the zookeeper server will think that the current leader node has gone offline. Election of a new leader node. However, the inventor realizes that if the previous leader node goes online again, it will coexist with the new leader node in the zookeeper server, causing a server to have two or more leader nodes, which in turn will lead to follow nodes Due to the coexistence of multiple leader nodes, it cannot be called correctly, which eventually leads to an abnormal call of the service component. Contents of the invention [0003] The purpose of the present invention is to provide a leader node management method, devi...

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): G06F9/455
CPCG06F9/45558G06F2009/45587
Inventor 沈良
Owner ONE CONNECT SMART TECH CO LTD SHENZHEN
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