CN117743467A - Agent node replacement method, device, equipment and storage medium - Google Patents

Agent node replacement method, device, equipment and storage medium Download PDF

Info

Publication number
CN117743467A
CN117743467A CN202311848254.4A CN202311848254A CN117743467A CN 117743467 A CN117743467 A CN 117743467A CN 202311848254 A CN202311848254 A CN 202311848254A CN 117743467 A CN117743467 A CN 117743467A
Authority
CN
China
Prior art keywords
node
replaced
agent
state
agent node
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
CN202311848254.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.)
Jinzhuan Xinke Co Ltd
Original Assignee
Jinzhuan Xinke 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 Jinzhuan Xinke Co Ltd filed Critical Jinzhuan Xinke Co Ltd
Priority to CN202311848254.4A priority Critical patent/CN117743467A/en
Publication of CN117743467A publication Critical patent/CN117743467A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method, a device, equipment and a storage medium for replacing proxy nodes, belonging to the technical field of databases, wherein the method comprises the following steps: according to at least one database task to be processed on the agent node to be replaced, adjusting the node state of the agent node to be replaced; under the condition that the node state is unavailable, adjusting second node configuration information of the new agent node according to the first node configuration information of the agent node to be replaced; and replacing the proxy node to be replaced by adopting the new proxy node. The invention reduces the influence of the distributed database replacement agent node on the database service, and avoids the decline of the data processing capacity of the distributed database, thereby ensuring the processing efficiency of the database service in the distributed database.

Description

Agent node replacement method, device, equipment and storage medium
Technical Field
The present invention relates to the field of database technologies, and in particular, to a method, an apparatus, a device, and a storage medium for replacing a proxy node.
Background
The agent node is used as the outermost component interacting with the application, has great influence on the service, and needs to coordinate the linkage between the distributed database and the outside, thus being an important component in the distributed database. In a distributed database system, as the cluster size continues to expand, the cluster servers often need to be replaced due to damage or demand, and correspondingly, the proxy nodes in the cluster servers also need to be replaced.
However, the existing method for replacing the proxy node in the distributed database is relatively rough, the external service of the proxy node to be replaced is directly terminated, and the proxy node replacement mode affects the processing of database business.
Disclosure of Invention
The invention provides a method, a device, equipment and a storage medium for replacing proxy nodes, which are used for reducing the influence of the replacement proxy nodes of a distributed database on database business.
According to an aspect of the present invention, there is provided a proxy node replacement method, the method including:
according to at least one database task to be processed on the agent node to be replaced, adjusting the node state of the agent node to be replaced;
under the condition that the node state is unavailable, adjusting second node configuration information of the new agent node according to the first node configuration information of the agent node to be replaced;
and replacing the proxy node to be replaced by adopting the new proxy node.
According to another aspect of the present invention, there is provided a proxy node replacement apparatus including:
the node state adjusting module is used for adjusting the node state of the agent node to be replaced according to at least one database task to be processed on the agent node to be replaced;
the configuration information adjustment module is used for adjusting second node configuration information of the new proxy node according to the first node configuration information of the proxy node to be replaced under the condition that the node state is an unavailable state;
and the node replacement module is used for replacing the proxy node to be replaced by adopting the new proxy node.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the proxy node replacement method of any one of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to implement the proxy node replacement method of any of the embodiments of the present invention when executed.
According to the technical scheme of the embodiment of the invention, the node state of the agent node to be replaced is adjusted according to at least one database task to be processed on the agent node to be replaced; under the condition that the node state is unavailable, adjusting second node configuration information of the new agent node according to the first node configuration information of the agent node to be replaced; and replacing the proxy node to be replaced by adopting the new proxy node. According to the technical scheme, the influence of the replacement agent node on the database service is fully considered, after all the database tasks to be processed on the replacement agent node are effectively arranged, the node state of the replacement agent node is adjusted from the available state to the unavailable state, so that the loss of the database tasks to be processed on the replacement agent node is avoided, the database tasks to be processed on the replacement agent node can be effectively processed, external services of other agent nodes in the distributed database are not required to be interrupted, and the influence of the distributed database replacement agent node on the database service is reduced. Meanwhile, the configuration information of the second node of the new agent node is adjusted by referring to the configuration information of the first node of the agent node to be replaced, so that the new agent node can better replace the agent node to be replaced to provide external service, the reduction of the data processing capacity of the distributed database is avoided, and the processing efficiency of the database business in the distributed database is ensured.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and 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 proxy node replacement method according to a first embodiment of the present invention;
fig. 2 is a flowchart of a proxy node replacement method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a proxy node replacement apparatus according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device implementing a proxy node replacement method according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first" and "second" and the like in the description and the claims of the present invention and the above drawings 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 data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In addition, it should be noted that, in the technical scheme of the invention, the processes of collection, storage, use, processing, transmission, provision, disclosure and the like of the related database tasks and the like all conform to the regulations of related laws and regulations, and do not violate the popular regulations.
Example 1
Fig. 1 is a flowchart of a method for replacing a proxy node according to a first embodiment of the present invention, where the method may be implemented by a proxy node replacement device, and the device may be implemented in hardware and/or software and may be configured in an electronic device, where the distributed database stores a plurality of proxy nodes. As shown in fig. 1, the method includes:
s101, adjusting the node state of the agent node to be replaced according to at least one database task to be processed on the agent node to be replaced.
The agent node to be replaced refers to an agent node which needs to be replaced in the distributed database. The database task to be processed refers to a database task which is not processed or is abnormal to be processed on the agent node to be replaced. The node state may be one of an available state and an unavailable state; the available state refers to a state that the proxy node can provide services to the outside; accordingly, the unavailable state refers to a state in which the proxy node cannot provide services to the outside. Note that the node state of the default agent node to be replaced is an available state.
Specifically, the task state or the data synchronization state of at least one data task to be processed on the agent node to be replaced can be monitored in real time through monitoring equipment; wherein the task state may be one of an unprocessed state, a processed abnormal state, and a processed completed state; the data synchronization state may be one of an unsynchronized state, an in-synchronization state, and a synchronization completion state; and under the condition that the task states of all the data tasks to be processed on the agent node to be replaced are processing completion states, or under the condition that the data synchronization states of all the data tasks to be processed on the agent node to be replaced are synchronization completion states, adjusting the node state of the agent node to be replaced from an available state to an unavailable state.
Optionally, at least one database task to be processed on the agent node to be replaced may be synchronized to the new agent node; detecting the data synchronization state of at least one database task to be processed, and if the data synchronization states of all the database tasks to be processed are synchronous completion states, adjusting the node state of the agent node to be replaced to an unavailable state.
It can be understood that after all the database tasks to be processed on the agent node to be replaced are synchronized to the new agent node, the node state of the agent node to be replaced is adjusted from the available state to the unavailable state, so that the loss of the database tasks to be processed on the agent node to be replaced is avoided, the database tasks to be processed on the agent node to be replaced are ensured to be effectively processed, namely, the database tasks to be processed on the agent node to be replaced are processed by the new agent node, and the influence of the distributed database replacement agent node on database business is reduced.
S102, under the condition that the node state is unavailable, adjusting second node configuration information of the new agent node according to the first node configuration information of the agent node to be replaced.
The first node configuration information refers to node configuration information of the agent node to be replaced; optionally, the first node configuration information includes environment configuration information, installation information, and node resource limitation information. The environment configuration information includes, but is not limited to, environment variables and host addresses. The installation information includes, but is not limited to, installation location of the agent node to be replaced and version information of the installation package. The node resource limitation information refers to limitation information of available resources of the agent node to be replaced; alternatively, the node resource limitation information may be determined according to the node data processing capability of the proxy node to be replaced.
Specifically, when the node state of the agent node to be replaced is an unavailable state, the first node configuration information of the agent node to be replaced is referred to, and the second node configuration information of the new agent node is adjusted, so that the new agent node has the same performance and the same data processing capacity as the agent node to be replaced.
S103, replacing the proxy node to be replaced by adopting the new proxy node.
Specifically, the new proxy node may be used to replace the proxy node to be replaced based on different replacement logic.
According to the technical scheme of the embodiment of the invention, the node state of the agent node to be replaced is adjusted according to at least one database task to be processed on the agent node to be replaced; under the condition that the node state is unavailable, adjusting second node configuration information of the new agent node according to the first node configuration information of the agent node to be replaced; and replacing the proxy node to be replaced by adopting the new proxy node. According to the technical scheme, the influence of the replacement agent node on the database service is fully considered, after all the database tasks to be processed on the replacement agent node are effectively arranged, the node state of the replacement agent node is adjusted from the available state to the unavailable state, so that the loss of the database tasks to be processed on the replacement agent node is avoided, the database tasks to be processed on the replacement agent node can be effectively processed, external services of other agent nodes in the distributed database are not required to be interrupted, and the influence of the distributed database replacement agent node on the database service is reduced. Meanwhile, the configuration information of the second node of the new agent node is adjusted by referring to the configuration information of the first node of the agent node to be replaced, so that the new agent node can better replace the agent node to be replaced to provide external service, the reduction of the data processing capacity of the distributed database is avoided, and the processing efficiency of the database business in the distributed database is ensured.
Example two
Fig. 2 is a flowchart of a method for replacing a proxy node according to a second embodiment of the present invention, where an alternative implementation manner is provided by further optimizing "adjusting a node state of a proxy node to be replaced according to at least one database task to be processed on the proxy node to be replaced" based on the foregoing embodiment. In the embodiments of the present invention, parts not described in detail may be referred to for related expressions of other embodiments. As shown in fig. 2, the method includes:
s201, distributing at least one database task to be processed on the agent node to be replaced to other agent nodes; wherein, other proxy nodes refer to proxy nodes except for the proxy node to be replaced in the distributed database.
Specifically, at least one database task to be processed on the agent node to be replaced can be randomly allocated to one of the other agent nodes, or at least one database task to be processed on the agent node to be replaced can be uniformly allocated to the other agent nodes, so that the database tasks to be processed on the agent node to be replaced can be effectively processed.
For example, if there are 5 data tasks to be processed on the proxy node to be replaced, there are 4 other proxy nodes in the distributed database, and one of the 4 other proxy nodes can be randomly selected as the target proxy node; and all 5 data tasks to be processed on the agent node to be replaced are distributed to the target agent node. And 5 data tasks to be processed on the proxy node to be replaced can be uniformly distributed to 4 other proxy nodes in the distributed database based on the load balancing principle.
S202, detecting whether a data task to be processed exists on the agent node to be replaced or not, and if not, adjusting the node state of the agent node to be replaced to an unavailable state.
Specifically, whether the data task to be processed exists on the agent node to be replaced is detected, and the node state of the agent node to be replaced is adjusted from the available state to the unavailable state under the condition that the data task to be processed does not exist on the agent node to be replaced.
It can be understood that after all the database tasks to be processed on the agent node to be replaced are effectively arranged, the node state of the agent node to be replaced is adjusted from the available state to the unavailable state, so that the loss of the database tasks to be processed on the agent node to be replaced is avoided, the database tasks to be processed on the agent node to be replaced can be effectively processed, external services of other agent nodes in the distributed database are not required to be interrupted, and the influence of the agent node to be replaced on database business by the distributed database is reduced.
S203, under the condition that the node state is the unavailable state, adjusting second node configuration information of the new agent node according to the first node configuration information of the agent node to be replaced.
S204, replacing the agent node to be replaced by adopting the new agent node.
Optionally, the number of agent nodes of the agent nodes in the distributed database may be updated according to the new agent node; and establishing data links between the management node and the new proxy node according to the number of the proxy nodes so as to enable the new proxy node to be available. Wherein the management node refers to a component for managing the distributed database.
It should be noted that, in the process of replacing the agent node to be replaced by adopting the new agent node, the distributed database does not interrupt external service, but reconstructs the data link between the management node and other agent nodes based on the load balancing principle, equally distributes the database task to other agent nodes through the constructed data link, and processes the database task through other agent nodes.
For example, if there are 10 proxy nodes in the distributed database, there are 1 proxy nodes to be replaced, in the process of replacing the proxy nodes to be replaced by using the new proxy nodes, there are 9 proxy nodes in the distributed database actually, and according to the configured new proxy nodes, the number of proxy nodes of the proxy nodes in the distributed database is updated, that is, the number of proxy nodes is 10; based on the load balancing principle, the data links between the management nodes and the new proxy nodes are established according to the number of the proxy nodes, so that the new proxy nodes can provide services to the outside, namely, the new proxy nodes can process database tasks, thereby reducing the load of other proxy nodes in the distributed database, and improving the processing efficiency of database services under the condition of not influencing the processing of database services.
According to the technical scheme, at least one database task to be processed on the agent node to be replaced is distributed to other agent nodes; the other proxy nodes refer to proxy nodes except the proxy node to be replaced in the distributed database; detecting whether a data task to be processed exists on the agent node to be replaced or not, if not, adjusting the node state of the agent node to be replaced to an unavailable state; under the condition that the node state is unavailable, adjusting second node configuration information of the new agent node according to the first node configuration information of the agent node to be replaced; and replacing the proxy node to be replaced by adopting the new proxy node. According to the technical scheme, the influence of the replacement agent node on the database service is fully considered, after all the database tasks to be processed on the replacement agent node are effectively arranged, the node state of the replacement agent node is adjusted from the available state to the unavailable state, so that the loss of the database tasks to be processed on the replacement agent node is avoided, the database tasks to be processed on the replacement agent node can be effectively processed, external services of other agent nodes in the distributed database are not required to be interrupted, and the influence of the distributed database replacement agent node on the database service is reduced. Meanwhile, the configuration information of the second node of the new agent node is adjusted by referring to the configuration information of the first node of the agent node to be replaced, so that the new agent node can better replace the agent node to be replaced to provide external service, the reduction of the data processing capacity of the distributed database is avoided, and the processing efficiency of the database business in the distributed database is ensured.
Example III
Fig. 3 is a schematic structural diagram of a proxy node replacement device according to a third embodiment of the present invention, where the device may be implemented in hardware and/or software and may be configured in an electronic device, where the proxy node replacement device is applicable to a case where a distributed database stores a plurality of proxy nodes. As shown in fig. 3, the apparatus includes:
the node state adjustment module 301 is configured to adjust a node state of the agent node to be replaced according to at least one database task to be processed on the agent node to be replaced;
the configuration information adjustment module 302 is configured to adjust second node configuration information of the new proxy node according to the first node configuration information of the proxy node to be replaced in the case that the node state is an unavailable state;
the node replacement module 303 is configured to replace a proxy node to be replaced with a new proxy node.
According to the technical scheme of the embodiment of the invention, the node state of the agent node to be replaced is adjusted according to at least one database task to be processed on the agent node to be replaced; under the condition that the node state is unavailable, adjusting second node configuration information of the new agent node according to the first node configuration information of the agent node to be replaced; and replacing the proxy node to be replaced by adopting the new proxy node. According to the technical scheme, the influence of the replacement agent node on the database service is fully considered, after all the database tasks to be processed on the replacement agent node are effectively arranged, the node state of the replacement agent node is adjusted from the available state to the unavailable state, so that the loss of the database tasks to be processed on the replacement agent node is avoided, the database tasks to be processed on the replacement agent node can be effectively processed, external services of other agent nodes in the distributed database are not required to be interrupted, and the influence of the distributed database replacement agent node on the database service is reduced. Meanwhile, the configuration information of the second node of the new agent node is adjusted by referring to the configuration information of the first node of the agent node to be replaced, so that the new agent node can better replace the agent node to be replaced to provide external service, the reduction of the data processing capacity of the distributed database is avoided, and the processing efficiency of the database business in the distributed database is ensured.
Optionally, the node status adjustment module 301 is specifically configured to:
distributing at least one database task to be processed on the agent node to be replaced to other agent nodes; the other proxy nodes refer to proxy nodes except the proxy node to be replaced in the distributed database;
and detecting whether the to-be-replaced agent node still has the to-be-processed data task, and if not, adjusting the node state of the to-be-replaced agent node to be an unavailable state.
Optionally, the node status adjustment module 301 is specifically configured to:
synchronizing at least one database task to be processed on the agent node to be replaced to the new agent node;
detecting the data synchronization state of at least one database task to be processed, and if the data synchronization states of all the database tasks to be processed are synchronous completion states, adjusting the node state of the agent node to be replaced to an unavailable state.
Optionally, the node replacement module 303 is specifically configured to:
updating the number of the proxy nodes in the distributed database according to the new proxy nodes;
and establishing data links between the management node and the new proxy node according to the number of the proxy nodes so as to enable the new proxy node to be available.
Optionally, the first node configuration information includes environment configuration information, installation information, and node resource limitation information.
The agent node replacement device provided by the embodiment of the invention can execute the agent node replacement method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the agent node replacement methods.
Example IV
Fig. 4 shows a schematic diagram of the structure of an electronic device 10 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 4, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM12 and the RAM13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as the proxy node replacement method.
In some embodiments, the agent node replacement method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM12 and/or the communication unit 19. When the computer program is loaded into RAM13 and executed by processor 11, one or more steps of the agent node replacement method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the proxy node replacement method in any other suitable way (e.g. by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (10)

1. A method for replacing a proxy node, comprising:
according to at least one database task to be processed on the agent node to be replaced, adjusting the node state of the agent node to be replaced;
under the condition that the node state is an unavailable state, adjusting second node configuration information of a new agent node according to the first node configuration information of the agent node to be replaced;
and replacing the agent node to be replaced by adopting the new agent node.
2. The method of claim 1, wherein adjusting the node state of the agent node to be replaced according to at least one database task to be processed on the agent node to be replaced comprises:
distributing at least one database task to be processed on the agent node to be replaced to other agent nodes; the other proxy nodes refer to proxy nodes except the proxy node to be replaced in the distributed database;
and detecting whether the to-be-replaced agent node still has a to-be-processed data task, and if not, adjusting the node state of the to-be-replaced agent node to be an unavailable state.
3. The method of claim 1, wherein adjusting the node state of the agent node to be replaced according to at least one database task to be processed on the agent node to be replaced comprises:
synchronizing at least one database task to be processed on the agent node to be replaced to the new agent node;
detecting the data synchronization state of the at least one database task to be processed, and if the data synchronization state of all the database tasks to be processed is a synchronization completion state, adjusting the node state of the agent node to be replaced to an unavailable state.
4. The method of claim 1, wherein replacing the proxy node to be replaced with the new proxy node comprises:
updating the number of the proxy nodes in the distributed database according to the new proxy nodes;
and establishing a data link between a management node and the new proxy node according to the number of the proxy nodes so as to enable the new proxy node to be available.
5. The method of any of claims 1-4, wherein the first node configuration information comprises environment configuration information, installation information, and node resource limitation information.
6. A proxy node replacement apparatus, comprising:
the node state adjusting module is used for adjusting the node state of the agent node to be replaced according to at least one database task to be processed on the agent node to be replaced;
the configuration information adjustment module is used for adjusting second node configuration information of the new agent node according to the first node configuration information of the agent node to be replaced under the condition that the node state is an unavailable state;
and the node replacement module is used for replacing the agent node to be replaced by adopting the new agent node.
7. The apparatus of claim 6, wherein the node status adjustment module is specifically configured to:
distributing at least one database task to be processed on the agent node to be replaced to other agent nodes; the other proxy nodes refer to proxy nodes except the proxy node to be replaced in the distributed database;
and detecting whether the to-be-replaced agent node still has a to-be-processed data task, and if not, adjusting the node state of the to-be-replaced agent node to be an unavailable state.
8. The apparatus of claim 6, wherein the node status adjustment module is specifically configured to:
synchronizing at least one database task to be processed on the agent node to be replaced to the new agent node;
detecting the data synchronization state of the at least one database task to be processed, and if the data synchronization state of all the database tasks to be processed is a synchronization completion state, adjusting the node state of the agent node to be replaced to an unavailable state.
9. An electronic device, the electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the proxy node replacement method of any one of claims 1-5.
10. A computer readable storage medium storing computer instructions for causing a processor to implement the proxy node replacement method of any one of claims 1-5 when executed.
CN202311848254.4A 2023-12-29 2023-12-29 Agent node replacement method, device, equipment and storage medium Pending CN117743467A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311848254.4A CN117743467A (en) 2023-12-29 2023-12-29 Agent node replacement method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311848254.4A CN117743467A (en) 2023-12-29 2023-12-29 Agent node replacement method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117743467A true CN117743467A (en) 2024-03-22

Family

ID=90281153

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311848254.4A Pending CN117743467A (en) 2023-12-29 2023-12-29 Agent node replacement method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117743467A (en)

Similar Documents

Publication Publication Date Title
CN113364877B (en) Data processing method, device, electronic equipment and medium
CN111181765A (en) Task processing method and device
CN114448989B (en) Method, device, electronic equipment, storage medium and product for adjusting message distribution
CN112817992B (en) Method, apparatus, electronic device and readable storage medium for executing change task
CN112948081B (en) Method, device, equipment and storage medium for processing tasks in delayed mode
CN112887407B (en) Job flow control method and device for distributed cluster
CN114143196B (en) Instance configuration updating method, device, equipment, storage medium and program product
CN115543416A (en) Configuration updating method and device, electronic equipment and storage medium
CN112817687A (en) Data synchronization method and device
CN116303524A (en) Data processing method, device, electronic equipment and storage medium
CN113360689B (en) Image retrieval system, method, related device and computer program product
CN117743467A (en) Agent node replacement method, device, equipment and storage medium
CN115484233A (en) Method, device, equipment and medium for forwarding link aggregation message in digital communication chip
CN115550363A (en) Node hierarchical management method and device and electronic equipment
CN114707651A (en) Topology selection method, device, equipment and medium for protocol operation
CN113656239A (en) Monitoring method and device for middleware and computer program product
CN110933122A (en) Method, apparatus, and computer storage medium for managing server
CN113285833B (en) Method and device for acquiring information
CN113596172B (en) Method and device for updating nodes in distributed cluster
CN114356505A (en) Method, apparatus, device, medium and product for scheduling groups of containers
CN116594764A (en) Application program updating method and device, electronic equipment and storage medium
CN115718608A (en) Parameter updating method and device, electronic equipment and storage medium
CN114756173A (en) Method, system, device and computer readable medium for file merging
CN114924882A (en) Distributed service processing method, device, equipment and storage medium
CN114221906A (en) Flow control method and device, electronic equipment and storage medium

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