CN117544665A - Edge node management method and device, electronic equipment and readable storage medium - Google Patents

Edge node management method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN117544665A
CN117544665A CN202311368141.4A CN202311368141A CN117544665A CN 117544665 A CN117544665 A CN 117544665A CN 202311368141 A CN202311368141 A CN 202311368141A CN 117544665 A CN117544665 A CN 117544665A
Authority
CN
China
Prior art keywords
edge node
node
application program
program interface
key
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311368141.4A
Other languages
Chinese (zh)
Inventor
董玉池
潘三明
闫亚旗
徐佳祥
张文龙
张阔
冉沛
刘文睿
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Tower Co Ltd
Original Assignee
China Tower Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Tower Co Ltd filed Critical China Tower Co Ltd
Priority to CN202311368141.4A priority Critical patent/CN117544665A/en
Publication of CN117544665A publication Critical patent/CN117544665A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/143Termination or inactivation of sessions, e.g. event-controlled end of session
    • H04L67/145Termination or inactivation of sessions, e.g. event-controlled end of session avoiding end of session, e.g. keep-alive, heartbeats, resumption message or wake-up for inactive or interrupted session
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/562Brokering proxy services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application provides a management method and device of an edge node, electronic equipment and a readable storage medium, and relates to the technical field of communication, wherein the method comprises the following steps: installing an application program interface agent on an edge node, wherein the application program interface agent sends keep-alive information to a server and caches container information in the server; and under the condition that the edge node is disconnected with the server, the application program interface agent reestablishes communication connection with the server according to the container information. In this way, the container information in the server is cached in the application program interface agent, so that the communication connection can be reestablished with the server according to the container information under the condition of disconnection with the server, and the edge node is prevented from being evicted by the cloud.

Description

Edge node management method and device, electronic equipment and readable storage medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method and an apparatus for managing an edge node, an electronic device, and a readable storage medium.
Background
Cloud edge collaborative scene, under the unstable condition of network, high in the clouds and edge node are easy to disconnect, after the disconnection, because the container information of edge node has all been saved in the high in the clouds, so edge node can't try to reconnect with the high in the clouds automatically to lead to being evicted by the high in the clouds.
As can be seen, in implementing the present application, the inventors found that at least the following problems exist in the prior art: in the existing edge node management method, in a weak network environment, the edge node is easy to be ejected by a cloud.
Disclosure of Invention
The embodiment of the application provides a management method, a device, electronic equipment and a readable storage medium for edge nodes, which are used for solving the problem that in the prior art, in the edge node management method, the edge nodes are easy to be evicted by a cloud under a weak network environment.
In a first aspect, an embodiment of the present application provides a method for managing an edge node, where the edge node is provided with an application program interface agent, and the method includes:
the application program interface agent sends heartbeat information to a server and caches container information in the server;
and under the condition that the edge node is disconnected with the server, the application program interface agent reestablishes communication connection with the server according to the container information.
Optionally, the edge node is a master node or a slave node in an edge node group, and in a case that the edge node is disconnected from the server, the application program interface agent reestablishes a communication connection with the server according to the container information, including any one of the following:
when the edge node is a main node and the edge node is disconnected with the server, the application program interface agent reestablishes communication connection with the server according to the container information;
and under the condition that the edge node is a slave node and the edge node is disconnected with the server, the application program interface agent establishes communication connection with the server again through a target application program interface agent according to the container information, and the target application program interface agent is the application program interface agent corresponding to the master node.
Optionally, the edge node is further provided with a distributed key value storage system, and before the application program interface agent reestablishes a communication connection with the server according to the container information, the method further includes:
the application program interface agent obtains a first key and a first value for uniquely identifying the edge node, wherein the first key is associated with an edge node group where the edge node is located, and the first value is associated with the first key;
the application program interface agent sends a preemption request to the distributed key-value storage system, wherein the preemption request comprises the first key and a first value of the edge node, and the preemption request is used for requesting to assign the key value of the first key to the first value of the edge node in the distributed key-value storage system;
and determining the node type of the edge node according to the first key and the preemption condition of the first value of the edge node on the distributed key value storage system, wherein the node type comprises the master node and the slave node.
Optionally, the determining the node type of the edge node according to the first key and the preemption condition of the first value of the edge node on the distributed key value storage system includes any one of the following:
when the preemption condition is successful preemption, the node type of the edge node is the main node;
and when the preemption condition is preemption failure, the node type of the edge node is the slave node.
Optionally, after determining the node type of the edge node according to the first key and the preemption of the first value on the distributed key-value storage system of the edge node, the method further comprises:
the method comprises the steps that at the edge node which is a main node, the application program interface agent sets the effective time of a first key and a key value of the first key in the distributed key value storage system as a first duration;
the application program interface agent obtains a second value every second time, wherein the second value is a key value of a first key stored in the distributed key value storage system at the current moment, and the second time is smaller than the first time;
and resetting the first key and the key value of the first key to the first duration in the effective time of the distributed key value storage system under the condition that the first value of the edge node is the same as the second value.
Optionally, after the application program interface agent obtains a second value every second time period, the method further comprises:
and deleting the first key and the first value in the distributed key value storage system and resending the preemption request to the distributed key value storage system under the condition that the first key and the first value of the master node corresponding to the application program interface agent are different from the second value and the valid time of the distributed key value storage system expires.
Optionally, sending, at the application program interface proxy, the heartbeat message to the server includes:
the application program interface proxy sends heartbeat information to a server;
the application program interface agent receives health status information from the server, wherein the health status information is determined according to the heartbeat information;
and the application program interface adjusts the access address of the service container according to the health status information of the server.
In a second aspect, an embodiment of the present application further provides an edge node management apparatus, including an application program interface agent installed on the edge node, where the apparatus includes:
the first sending module is used for sending heartbeat information to a server by the application program interface proxy and caching container information in the server;
and the first establishing module is used for establishing communication connection with the server again by the application program interface agent according to the container information under the condition that the edge node is disconnected with the server.
In a third aspect, embodiments of the present application provide an electronic device comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, the program or instruction implementing the steps of the method according to the first aspect when executed by the processor.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor implement the steps of the method according to the first aspect.
In the embodiment of the application, an application program interface agent is installed on an edge node, and the application program interface agent sends keep-alive information to a server and caches container information in the server; and under the condition that the edge node is disconnected with the server, the application program interface agent reestablishes communication connection with the server according to the container information. In this way, the container information in the server is cached in the application program interface agent, so that the communication connection can be reestablished with the server according to the container information under the condition of disconnection with the server, and the edge node is prevented from being evicted by the cloud.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required for the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of a method for managing an edge node according to an embodiment of the present application;
FIG. 2 is a schematic diagram of an application program interface agent in communication with an application program interface service according to an embodiment of the present application;
FIG. 3 is a schematic flow chart of an implementation of an application program interface agent on an edge node provided in an embodiment of the present application;
fig. 4 is a schematic structural diagram of an edge node management device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the structures so used are interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or otherwise described herein, and that the objects identified by "first," "second," etc. are generally of a type and do not limit the number of objects, for example, the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
As shown in fig. 1, an embodiment of the present application provides a method for managing an edge node, applied to an edge node, where an application program interface agent is installed on the edge node, the method includes:
step 101, the application program interface agent sends heartbeat information to a server and caches container information in the server;
step 102, in the case that the edge node is disconnected from the server, the application program interface agent reestablishes communication connection with the server according to the container information.
It should be appreciated that the server has an application program interface service installed therein.
It should be appreciated that the heartbeat message may be used to keep alive heartbeats between the application program interface proxy and the application program interface service.
It should be appreciated that the container information in the server is maintained in the server's distributed key value store and is the container information of the edge node.
It should be noted that the disconnection of the edge node from the server includes: the edge node cannot obtain service data from the server.
In the embodiment of the application, an application program interface agent is installed on an edge node, and the application program interface agent sends keep-alive information to a server and caches container information in the server; and under the condition that the edge node is disconnected with the server, the application program interface agent reestablishes communication connection with the server according to the container information. In this way, the container information in the server is cached in the application program interface agent, so that the communication connection can be reestablished with the server according to the container information under the condition of disconnection with the server, and the edge node is prevented from being evicted by the cloud.
Optionally, in some embodiments, the edge node is a master node or a slave node in an edge node group, and in a case that the edge node is disconnected from the server, the application program interface agent reestablishes a communication connection with the server according to the container information, including any one of the following:
when the edge node is a main node and the edge node is disconnected with the server, the application program interface agent reestablishes communication connection with the server according to the container information;
and under the condition that the edge node is a slave node and the edge node is disconnected with the server, the application program interface agent establishes communication connection with the server again through a target application program interface agent according to the container information, and the target application program interface agent is the application program interface agent corresponding to the master node.
It should be appreciated that in the event that the edge node is disconnected from the server, the application interface agent reestablishes a communication connection with the server based on the container information; but when the edge node is the slave node, the edge node passes through an application program interface agent corresponding to the master node.
In the embodiment of the application, by the mode, only one edge node in one edge node group can be used for establishing communication connection with the server, so that cloud edge network traffic is reduced, and the reliability of the connection quality of the cloud edge network is ensured.
Alternatively, in some embodiments, the edge node group may be obtained by dividing the plurality of edge nodes into different edge node groups by means of tagging. Further, the label may be understood as an attribute of the edge node, for example, the label may be a network protocol address, or may be a hardware configuration of the node.
For example, edge nodes with similar network protocol addresses may be divided into one edge node group, or edge nodes with similar hardware configurations of the nodes may be divided into one edge node group, or appropriate edge nodes may be divided into one edge node group according to the complementary situation of the hardware configurations of the edge nodes.
Further, the hardware configuration complementation condition may be storage resource complementation or computing resource complementation.
Optionally, in some embodiments, the edge node is further provided with a distributed key value storing system, and before the application program interface agent reestablishes a communication connection with the server according to the container information, the method further includes:
the application program interface agent obtains a first key and a first value for uniquely identifying the edge node, wherein the first key is associated with an edge node group where the edge node is located, and the first value is associated with the first key;
the application program interface agent sends a preemption request to the distributed key-value storage system, wherein the preemption request comprises the first key and a first value of the edge node, and the preemption request is used for requesting to assign the key value of the first key to the first value of the edge node in the distributed key-value storage system;
and determining the node type of the edge node according to the first key and the preemption condition of the first value of the edge node on the distributed key value storage system, wherein the node type comprises the master node and the slave node.
It should be understood that the above-mentioned first value for uniquely identifying the edge nodes means that each edge node has its own unique first value, and thus the identity of the edge node can be determined based on the first value.
It should be understood that the association of the first key with the edge node group where the edge node is located may mean that the first keys corresponding to all edge nodes in one edge node group are the same.
The preemption condition includes preemption success and preemption failure, wherein preemption success refers to that a first key and a first value of an edge node are written into the distributed key value storage system first, and preemption failure refers to that after the first key and the first value of the edge node are written into the distributed key value storage system first, the first key and the first value of the edge node are written into the distributed key value storage system.
In the embodiment of the application, a first key and a first value for uniquely identifying the edge node are acquired through the application program interface agent, the first key is associated with an edge node group where the edge node is located, and the first value is associated with the first key; the application program interface agent sends a preemption request to the distributed key-value storage system, wherein the preemption request comprises the first key and a first value of the edge node, and the preemption request is used for requesting to assign the key value of the first key to the first value of the edge node in the distributed key-value storage system; and determining the node type of the edge node according to the first key and the preemption condition of the first value of the edge node on the distributed key value storage system, wherein the node type comprises the master node and the slave node. In this way, one master node can be selected from one edge node group, and other edge nodes are slave nodes and communicate with the master node, so that the flow between cloud edge networks is ensured, the network availability of the edge nodes is ensured, and the communication quality is improved.
Optionally, in some embodiments, the determining the node type of the edge node according to the first key and the preemption of the first value of the edge node on the server includes any one of:
when the preemption condition is successful preemption, the node type of the edge node is the main node;
and when the preemption condition is preemption failure, the node type of the edge node is the slave node.
It should be noted that, the edge node with the node type being the master node is the first edge node writing the first key and the first value into the distributed key value storage system; the node type is that the edge node of the slave node writes the first key and the first value to the distributed key value storage system after the first edge node writes to the distributed key value system.
Optionally, in some embodiments, after determining the node type of the edge node based on the first key and the preemption of the first value of the edge node on the distributed key-value storage system, the method further comprises:
the method comprises the steps that at the edge node which is a main node, the application program interface agent sets the effective time of a first key and a key value of the first key in the distributed key value storage system as a first duration;
the application program interface agent obtains a second value every second time, wherein the second value is a key value of a first key stored in the distributed key value storage system at the current moment, and the second time is smaller than the first time;
and resetting the first key and the key value of the first key to the first duration in the effective time of the distributed key value storage system under the condition that the first value of the edge node is the same as the second value.
It should be appreciated that the application program interface agent setting the first key and the key value of the first key to a first duration at the active time of the distributed key value storage system means that the first key and the key value of the first key will be deleted from the distributed key value storage system after the first duration has elapsed.
It should be noted that the second duration is smaller than the first duration so that the first key and the first value on the distributed key value storage system may be created or updated in time.
In the embodiment of the application, by adopting the mode, after the main node is abnormally exited midway and the first time period is passed, the main node is reelected from the auxiliary node, so that the normal operation of cloud edge network communication is ensured.
Optionally, in some embodiments, after the application program interface agent obtains the second value once every second time period, the method further comprises:
and deleting the first key and the first value of the edge node and resending the preemption request to the distributed key value storage system under the condition that the first key and the first value of the main node corresponding to the application program interface agent are different from the second value and the valid time of the distributed key value storage system expires.
In the embodiment of the application, by adopting the mode, after the main node is abnormally exited midway and the first time period is passed, the main node is reelected from the auxiliary node, so that the normal operation of cloud edge network communication is ensured.
Referring to fig. 2, a schematic structural diagram of an application program interface agent communicating with an application program interface service according to an embodiment of the present application, where the application program interface agent sending a heartbeat message to a server includes:
the application program interface proxy sends heartbeat information to a server;
the application program interface agent receives health status information from the server, wherein the health status information is determined according to the heartbeat information;
and the application program interface adjusts the access address of the service container according to the health status information of the server.
Referring to fig. 3, a schematic flow chart of an implementation of an application program interface agent on an edge node according to an embodiment of the present application is provided.
It should be appreciated that the application interface agents include Hub, heartbeat detection Heartbeat, load balancing module LB, cache and Proxy.
Optionally, in an embodiment, heartbeat detection of the master node is responsible for keep-alive with an application program interface service in the server, periodically sends heartbeat information, determines a health state of the application program interface service, and periodically updates node lease of the node. And informing the health status to the load balancing module of the master node. And the heartbeat detection of the slave node is kept alive with the heartbeat detection heartbeat of the master node. The container host manager and the container group of the slave node send a request to the hub of the slave node, the hub of the slave node synchronizes the request to the hub of the master node, the container host manager and the container group of the master node send the request directly to the hub of the master node, and the master node hub unifies the agents forwarding the request to the agents of the master node. The agent of the master node obtains the health state of the network node from the heartbeat detection of the master node, if the network node is normally connected, the agent of the master node sends a request to the load balancing module of the master node, the load balancing module of the master node supports multi-cloud address access, and the load balancing mode of the server can select a round-robin mode or a priority mode. And the load balancing module of the master node forwards the response message of the server to the cache of the server at the same time and synchronizes the response message to the cache of the slave node at the same time. And if the proxy of the master node judges that the network node is abnormally connected, the proxy processes the web request, so that the requester can not sense the disconnection of the network. The cache data is obtained from the cache. The cache is responsible for locally persisting messages delivered by the application program interface service to ensure availability in the event of a network outage. Under the condition that the cloud network is disconnected, the proxy processes resource requests of the node container group and the container host manager, on the premise of not modifying the configuration of the container group, the access address of the container group on the edge node is automatically adjusted, and the proxy acquires local state data from the cache to construct a request response, so that the container group and the container host manager can receive the request response in time, can not sense the network disconnection, and further can operate normally. If the broken network edge node is restarted or the container group in the node is restarted at the moment, the service can also normally run. Under the condition that the cloud network is disconnected, heartbeat detection of the master node can proxy and forward keep-alive information of the slave node to an application program interface service of the server, so that the fact that the heartbeat can still be reported to the cloud end when the edge node is disconnected from the cloud network is guaranteed, and therefore the fact that a service container group on the node is not evicted is guaranteed. If the master node network is disconnected, other slave nodes are reselected to be the master nodes, and the node heartbeat keep-alive information is guaranteed to be normally reported to the cloud.
As shown in fig. 4, an embodiment of the present application provides a management apparatus 400 of an edge node, where an application program interface agent is installed, the apparatus includes:
a first sending module 401, configured to send, by the application program interface proxy, a heartbeat message to a server and cache container information in the server;
a first establishing module 402, configured to, in a case where the edge node is disconnected from the server, re-establish a communication connection with the server according to the container information by the application program interface agent.
Optionally, in some embodiments, the edge node is a master node or a slave node in an edge node group, and the first establishing module includes any one of the following sub-modules:
the first establishing sub-module is used for establishing communication connection with the server again according to the container information by the application program interface agent under the condition that the edge node is a main node and the edge node is disconnected with the server;
and the second establishing sub-module is used for establishing communication connection with the server again through the target application program interface agent according to the container information under the condition that the edge node is a slave node and the edge node is disconnected with the server, wherein the target application program interface agent is the application program interface agent corresponding to the master node.
Optionally, in some embodiments, the edge node is further installed with a distributed key value storage system, the apparatus further comprising:
a first obtaining module, configured to obtain, by the application program interface agent, a first key and a first value that is used to uniquely identify the edge node, where the first key is associated with an edge node group where the edge node is located, and the first value is associated with the first key;
a second sending module, configured to send, by the application program interface agent, a preemption request to the distributed key-value storage system, where the preemption request includes the first key and a first value of the edge node, where the preemption request is used to request that a key value of the first key be assigned as the first value of the edge node in the distributed key-value storage system;
and the first determining module is used for determining the node type of the edge node according to the first key and the preemption condition of the first value of the edge node on the distributed key value storage system, wherein the node type comprises the master node and the slave node.
Optionally, in some embodiments, the apparatus further comprises:
the first setting module is used for setting the effective time of the first key and the key value of the first key in the distributed key value storage system as a first duration when the edge node is taken as a main node;
the second obtaining module is used for obtaining a second value at intervals of a second time by the application program interface agent, wherein the second value is a key value of a first key stored in the distributed key value storage system at the current moment, and the second time is smaller than the first time;
and the resetting module is used for resetting the first key and the key value of the first key to the first duration in the effective time of the distributed key value storage system under the condition that the first value of the edge node is the same as the second value.
Optionally, in some embodiments, the reset module further comprises:
and the deleting and sending sub-module is used for deleting the first key and the first value in the distributed key value storage system and sending the preemption request to the distributed key value storage system again when the first value of the edge node corresponding to the application program interface agent is different from the second value and the first key and the first value of the main node are expired in the effective time of the distributed key value storage system.
Optionally, in some embodiments, the first transmitting module includes:
a first sending submodule, configured to send a heartbeat message to the server by the application program interface agent;
a first receiving sub-module, configured to receive, by the application program interface agent, a health status message from the server, where the health status message is a message determined according to the heartbeat message;
and the adjustment sub-module is used for adjusting the access address of the service container according to the health status information of the server by the application program interface.
The management device of the edge node can implement each process of the method embodiment of fig. 1 in the embodiment of the present application, and achieve the same beneficial effects, so that repetition is avoided, and no further description is provided here.
The embodiment of the application also provides electronic equipment. Referring to fig. 5, an electronic device may include a processor 501, a memory 502, and a program 5021 stored on the memory 502 and executable on the processor 501.
The program 5021, when executed by the processor 501, may implement any steps and achieve the same advantageous effects in the method embodiment corresponding to fig. 1, which will not be described herein.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of implementing the methods of the embodiments described above may be implemented by hardware associated with program instructions, where the program may be stored on a readable medium.
The embodiment of the present application further provides a readable storage medium, where a computer program is stored, where any step in the method embodiment corresponding to fig. 1 can be implemented and the same technical effect can be achieved when the computer program is executed by a processor, so that repetition is avoided and no further description is provided herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those of ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are also within the protection of the present application.

Claims (10)

1. A method of managing an edge node, applied to an edge node, the edge node having an application program interface agent installed, the method comprising:
the application program interface agent sends heartbeat information to a server and caches container information in the server;
and under the condition that the edge node is disconnected with the server, the application program interface agent reestablishes communication connection with the server according to the container information.
2. The method according to claim 1, wherein the edge node is a master node or a slave node in an edge node group, and wherein the application program interface agent reestablishes a communication connection with the server according to the container information in a case that the edge node is disconnected from the server, comprising any one of the following:
when the edge node is a main node and the edge node is disconnected with the server, the application program interface agent reestablishes communication connection with the server according to the container information;
and under the condition that the edge node is a slave node and the edge node is disconnected with the server, the application program interface agent establishes communication connection with the server again through a target application program interface agent according to the container information, and the target application program interface agent is the application program interface agent corresponding to the master node.
3. The method of claim 2, wherein the edge node is further equipped with a distributed key value store, and wherein the application program interface agent is further configured to:
the application program interface agent obtains a first key and a first value for uniquely identifying the edge node, wherein the first key is associated with an edge node group where the edge node is located, and the first value is associated with the first key;
the application program interface agent sends a preemption request to the distributed key-value storage system, wherein the preemption request comprises the first key and a first value of the edge node, and the preemption request is used for requesting to assign the key value of the first key to the first value of the edge node in the distributed key-value storage system;
and determining the node type of the edge node according to the first key and the preemption condition of the first value of the edge node on the distributed key value storage system, wherein the node type comprises the master node and the slave node.
4. A method of managing an edge node according to claim 3, wherein said determining the node type of the edge node based on the first key and the preemption of the first value of the edge node on the distributed key value storage system comprises any one of:
when the preemption condition is successful preemption, the node type of the edge node is the main node;
and when the preemption condition is preemption failure, the node type of the edge node is the slave node.
5. A method of managing an edge node according to claim 3, wherein after determining the node type of the edge node based on the first key and the first value of the edge node's preemption on the distributed key-value storage system, the method further comprises:
the method comprises the steps that at the edge node which is a main node, the application program interface agent sets the effective time of a first key and a key value of the first key in the distributed key value storage system as a first duration;
the application program interface agent obtains a second value every second time, wherein the second value is a key value of a first key stored in the distributed key value storage system at the current moment, and the second time is smaller than the first time;
and resetting the first key and the key value of the first key to the first duration in the effective time of the distributed key value storage system under the condition that the first value of the edge node is the same as the second value.
6. The method of managing an edge node of claim 5, wherein after the application program interface agent obtains the second value every second duration, the method further comprises:
and deleting the first key and the first value in the distributed key value storage system and sending the preemption request to the distributed key value storage system again under the condition that the first value of the edge node corresponding to the application program interface agent is different from the second value and the first key and the first value of the main node expire in the effective time of the distributed key value storage system.
7. The method of edge node management according to claim 1, wherein sending a heartbeat message to a server at the application program interface proxy comprises:
the application program interface agent sends a heartbeat message to the server;
the application program interface agent receives health status information from the server, wherein the health status information is determined according to the heartbeat information;
and the application program interface adjusts the access address of the service container according to the health status information of the server.
8. An edge node management apparatus, wherein the edge node is provided with an application program interface agent, the apparatus comprising:
the first sending module is used for sending heartbeat information to a server by the application program interface proxy and caching container information in the server;
and the first establishing module is used for establishing communication connection with the server again by the application program interface agent according to the container information under the condition that the edge node is disconnected with the server.
9. An electronic device comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, which program or instruction when executed by the processor implements the steps of the method of managing an edge node according to any of claims 1-7.
10. A readable storage medium, characterized in that the readable storage medium has stored thereon a program or instructions which, when executed by a processor, implement the steps of the edge node management method according to any of claims 1-7.
CN202311368141.4A 2023-10-20 2023-10-20 Edge node management method and device, electronic equipment and readable storage medium Pending CN117544665A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311368141.4A CN117544665A (en) 2023-10-20 2023-10-20 Edge node management method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311368141.4A CN117544665A (en) 2023-10-20 2023-10-20 Edge node management method and device, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN117544665A true CN117544665A (en) 2024-02-09

Family

ID=89786968

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311368141.4A Pending CN117544665A (en) 2023-10-20 2023-10-20 Edge node management method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN117544665A (en)

Similar Documents

Publication Publication Date Title
CN111615066B (en) Distributed micro-service registration and calling method based on broadcast
EP3490224A1 (en) Data synchronization method and system
CN103581276A (en) Cluster management device and system, service client side and corresponding method
EP2939401B1 (en) Method for guaranteeing service continuity in a telecommunication network and system thereof
US10917289B2 (en) Handling network failures in networks with redundant servers
CN112039710B (en) Service fault processing method, terminal equipment and readable storage medium
US20130204926A1 (en) Information processing system, information processing device, client terminal, and computer readable medium
US20130139178A1 (en) Cluster management system and method
US9344363B2 (en) Information processing system, relay device, information processing device, and information processing method
CN113946408A (en) Cloud native edge container control method and system and storage medium
WO2022048646A1 (en) Virtual ip management method and apparatus, electronic device and storage medium
CN115103008B (en) Service request forwarding system
CN110661836B (en) Message routing method, device and system, and storage medium
US10659284B2 (en) SNMP request processing within distributed device architecture
US20230146880A1 (en) Management system and management method
CN117544665A (en) Edge node management method and device, electronic equipment and readable storage medium
CN113824595B (en) Link switching control method and device and gateway equipment
CN110572290B (en) Master device determination method, master device determination device, electronic device, storage medium, and network system
CN113391759B (en) Communication method and equipment
CN110890989A (en) Channel connection method and device
CN113301086A (en) DNS data management system and management method
US20230370332A1 (en) Computer system and communication method
JPH10116257A (en) Decentralized media processing server, and communication network using the same
CN115208799B (en) Heartbeat management method, device and storage medium
KR101659579B1 (en) Server multiplex service providing apparatus using publish-subscribe method and method therefor

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination