CN109873714B - Cloud computing node configuration updating method and terminal equipment - Google Patents

Cloud computing node configuration updating method and terminal equipment Download PDF

Info

Publication number
CN109873714B
CN109873714B CN201910007891.6A CN201910007891A CN109873714B CN 109873714 B CN109873714 B CN 109873714B CN 201910007891 A CN201910007891 A CN 201910007891A CN 109873714 B CN109873714 B CN 109873714B
Authority
CN
China
Prior art keywords
computing node
node
updating
computing
level
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.)
Active
Application number
CN201910007891.6A
Other languages
Chinese (zh)
Other versions
CN109873714A (en
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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201910007891.6A priority Critical patent/CN109873714B/en
Publication of CN109873714A publication Critical patent/CN109873714A/en
Application granted granted Critical
Publication of CN109873714B publication Critical patent/CN109873714B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention is applicable to the technical field of computer application, and provides a cloud computing node configuration updating method, terminal equipment and a computer readable storage medium, which comprise the following steps: acquiring configuration information for updating cloud computing node configuration; updating the management node according to the configuration information, and sending the configuration information to a primary computing node after the configuration information is updated successfully; receiving the successful update information sent by the primary computing node, and sending an update instruction for updating the secondary computing node to the primary computing node; and receiving the update success information sent by the secondary computing node. By sending the update package to the first-level computing nodes in the network after the management node receives the update package and the update is successful, and sending the update package to the remaining second-level computing nodes and the update after the first-level computing nodes are successfully updated, the efficiency and the success rate of node update in the network are improved.

Description

Cloud computing node configuration updating method and terminal equipment
Technical Field
The invention belongs to the technical field of computer application, and particularly relates to a cloud computing node configuration updating method, terminal equipment and a computer readable storage medium.
Background
The rapid development of computer technology has also driven the rapid development of cloud computing technology, as an innovative information technology, cloud computing packages hardware resources and software resources into services, integrates the services into a computing resource pool through a network system, and logically provides service interfaces in the form of integrated entities for users to use and charge as required. Cloud computing is one of the hot technologies in the field of information technology at present, and is widely focused in industry, and many internationalized companies have already proposed their own cloud computing schemes.
However, in the prior art, when updating the configuration of the computing nodes in the cloud server, manual updating is adopted, and management nodes are updated first and then the computing nodes are updated one by one. The method has slow updating time when the number of the computing nodes is large, and reduces the updating efficiency of the computing nodes in the cloud processing system.
Disclosure of Invention
In view of the above, embodiments of the present invention provide a cloud computing node configuration updating method, a terminal device, and a computer readable storage medium, so as to solve the problem in the prior art that when updating the configuration of a computing node of a cloud system, because the update time is very slow when the computing node is more, the update efficiency of the computing node in the cloud processing system is reduced.
A first aspect of an embodiment of the present invention provides a cloud computing node configuration updating method, including:
acquiring configuration information for updating cloud computing node configuration;
updating the management node according to the configuration information, and sending the configuration information to a primary computing node after the configuration information is updated successfully; the first-level computing node is obtained by selecting according to a preset selecting mode;
receiving the successful update information sent by the primary computing node, and sending an update instruction for updating the secondary computing node to the primary computing node; the updating instruction is used for notifying the primary computing node to synchronize the configuration information to the secondary computing node; the second-level computing node is a computing node except the management node and the first-level computing node;
receiving updating success information sent by the secondary computing node; the update success information is used for indicating that all the computing nodes in the network are updated.
A second aspect of an embodiment of the present invention provides a terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
Acquiring configuration information for updating cloud computing node configuration;
updating the management node according to the configuration information, and sending the configuration information to a primary computing node after the configuration information is updated successfully; the first-level computing node is obtained by selecting according to a preset selecting mode;
receiving the successful update information sent by the primary computing node, and sending an update instruction for updating the secondary computing node to the primary computing node; the updating instruction is used for notifying the primary computing node to synchronize the configuration information to the secondary computing node; the second-level computing node is a computing node except the management node and the first-level computing node;
receiving updating success information sent by the secondary computing node; the update success information is used for indicating that all the computing nodes in the network are updated.
A third aspect of an embodiment of the present invention provides a terminal device, including:
an acquisition unit for acquiring configuration information for updating the configuration of the cloud computing node;
the first updating unit is used for updating the management node according to the configuration information and sending the configuration information to the primary computing node after the management node is updated successfully; the first-level computing node is obtained by selecting according to a preset selecting mode;
The second updating unit is used for receiving the updating success information sent by the first-level computing node and sending an updating instruction for updating the second-level computing node to the first-level computing node; the updating instruction is used for notifying the primary computing node to synchronize the configuration information to the secondary computing node; the second-level computing node is a computing node except the management node and the first-level computing node;
the receiving unit is used for receiving the update success information sent by the secondary computing node; the update success information is used for indicating that all the computing nodes in the network are updated.
A fourth aspect of an embodiment of the invention provides a computer readable storage medium storing a computer program comprising program instructions which, when executed by a processor, cause the processor to perform the method of the first aspect described above.
Compared with the prior art, the embodiment of the invention has the beneficial effects that:
the embodiment of the invention obtains the configuration information for updating the configuration of the cloud computing node; updating the management node according to the configuration information, and sending the configuration information to a primary computing node after the configuration information is updated successfully; receiving the successful update information sent by the primary computing node, and sending an update instruction for updating the secondary computing node to the primary computing node; and receiving the update success information sent by the secondary computing node. By sending the update package to the first-level computing nodes in the network after the management node receives the update package and the update is successful, and sending the update package to the remaining second-level computing nodes and the update after the first-level computing nodes are successfully updated, the efficiency and the success rate of node update in the network are improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in 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 invention, 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 flowchart of a cloud computing node configuration updating method according to an embodiment of the present invention;
fig. 2 is a flowchart of a cloud computing node configuration updating method according to a second embodiment of the present invention;
fig. 3 is a schematic diagram of a terminal device according to a third embodiment of the present invention;
fig. 4 is a schematic diagram of a terminal device according to a fourth embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
In order to illustrate the technical scheme of the invention, the following description is made by specific examples.
Referring to fig. 1, fig. 1 is a flowchart of a cloud computing node configuration updating method according to an embodiment of the present invention. In this embodiment, an execution body of the cloud computing node configuration updating method is a terminal. The terminal comprises, but is not limited to, a mobile terminal such as a smart phone, a tablet computer, a wearable device and the like, and can also be a desktop computer and the like. The cloud computing node configuration updating method as shown in the figure can comprise the following steps:
s101: configuration information for updating cloud computing node configuration is obtained.
Cloud computing is a brand-new service mode, and users quickly acquire resources such as computing, network, storage and the like from a configurable resource sharing pool as required and pay according to the usage amount. Traditional application systems are deployed on special servers, and resources are required to be reevaluated for deploying new applications. The deployment mode cannot fully utilize resources, has low utilization rate of resources, and is not easy to expand. An application system requires a corresponding dependency library and environment configuration, and each deployment requires reinstallation of the dependency and configuration parameters. The traditional computer network deployment architecture needs to be managed and maintained by itself, cannot share resources to achieve the purpose of reducing equipment, and has high cost and low resource utilization rate.
The cloud infrastructure manages resources of the hardware layer through the virtualization layer, shares the resources in the form of a network resource pool, a storage resource pool and a calculation resource pool, and provides the resources for upper-layer services through cloud layer elasticity. The cloud computing architecture may mask hardware differences and scale hardware resources, allocating resources as needed. The cloud infrastructure shares hardware resources through a virtualization technology, achieves the purposes of acquiring resources, automatically dividing the resources, expanding needed resources, recovering faults, achieving high availability and balancing loads according to requirements of applications based on a cloud platform layer, facilitates user deployment and management of an application system, and helps users build a cloud service mode to reduce cost. The bottom hardware resources are virtualized into different computable nodes as required through a virtualization technology inside a network side, and relevant services of each component of the cloud computing platform and management, control and computing services are deployed and run in the nodes. Cloud platforms need to implement configuration and management of resources within a unified system architecture. And the external users and the system administrators at the network side conveniently acquire, share and use the resources in the system in an interface mode through an access control interface, shield the specific distribution of the implementation details and physical resources at the bottom layer of the system, effectively and transparently manage and allocate the resources, and keep the consistency of the use and management of the system.
In practical application, the network node is mainly divided into an upper cloud management node layer and a lower control and calculation node layer. The update of the network node can be the update of the whole system version, the version iterates faster in daily work, and the update is often needed. The whole system architecture is provided with a management end and a computing node, and the updating is usually carried out by updating the computing node and the management node together. In addition, the updating of the specific configuration file may be performed, for example, when a problem occurs in a certain configuration file or an update is required, the modified configuration file needs to be synchronized to a corresponding node, so as to implement the update of the configuration file. The cloud platform includes at least a plurality of cloud computing nodes, and the cloud computing nodes can be computers, workstations or servers, and are not limited herein. The cloud is a network of figurative expressions by humans, and is not specifically morphological and is referred to as virtualized. The user only needs to make a request to the cloud data center, and the cloud data center can provide services according to the requirements without worrying about the specific running position, which is still required to be consistent in the future development of cloud computing: the virtualization degree of the system is improved, and attribute hiding of upper and lower layers is realized through integrating and effectively utilizing resources.
In this embodiment, the configuration of each cloud computing node may be the same or different, so as to perform data processing tasks with different task amounts. Before updating the configuration of the cloud computing nodes, the configuration information of each cloud computing node is firstly obtained, and the obtaining mode can be a mode of directly sending the configuration information to the management node through each cloud computing node or a mode of directly calling the configuration information of each cloud computing node in the cloud platform through an input command of the management node.
The configuration information in this embodiment may include memory information, hard disk information, load information, etc. of the cloud computing node, and may be total memory and current memory; the total amount of hard disks and the current storage capacity; the information such as the highest load value, the current load amount, etc. is not limited herein. In addition, the configuration information can be obtained through the information such as a server port, a system version and a data transmission interface, so that each computing node in the cloud platform can be configured and updated according to the configuration file, and the data processing of the cloud platform can be ensured to be normally performed.
S102: updating the management node according to the configuration information, and sending the configuration information to a primary computing node after the configuration information is updated successfully; the first-stage computing node is obtained by selecting according to a preset selecting mode.
The cloud computing nodes in this embodiment may include a management node, a primary computing node, and a secondary computing node. Only one management node is the cloud computing node with the highest authority, and can be used for managing other cloud computing nodes. The management node is used for managing a plurality of clusters providing virtualized computing capacity, is a core of the cloud management platform, mainly gathers the whole infrastructure, namely the service platform, in the core for processing, and receives the operation of users and administrators. The management node processes the issued operation request and generates the operation request to the computing node for execution. The computing node is one of the most basic hardware modules in the cloud computing platform for providing virtualization capabilities and computing resources, running a client-created virtual machine. The computing nodes can have different specifications, and graphics processors, memories, storage or network resources and the like required by the virtual machines are provided through network intercommunication. The first-level computing node and the second-level computing node can be at least two, and the first-level computing node has higher authority relative to the second-level computing node. The purpose of setting the first-stage computing node and the second-stage computing node in the embodiment is to update the first-stage computing node first, and send the configuration information to the corresponding second-stage computing node to enable the second-stage computing node to realize configuration update under the condition that the configuration information of the update file is determined to be free of problems after the first-stage computing node is successfully updated. It should be noted that, in this embodiment, one primary computing node may correspond to at least one secondary computing node, which is configured to synchronize configuration information to the secondary computing node, so as to improve efficiency of data synchronization, and further improve efficiency of node update.
Further, after the management node is updated, the update may succeed or the update may fail. When the updating is successful, the configuration information can be directly sent to the primary computing node, so that the primary computing node performs configuration updating. When the update fails, the reason of the update failure can be determined according to the update report of the configuration file and the management node, the update failure of the management node is maintained according to the reason of the update failure, meanwhile, the configuration file is appropriately modified according to the reason of the update failure, and when the configuration file has no problem, the configuration file can be modified. And carrying out configuration updating again according to the configuration file after modification. And sending the modified configuration file to the primary computing node.
In this embodiment, at least two first-stage computing nodes may be selected in a preset manner, for example, according to the current operation condition of each computing node, a computing node meeting the requirement is determined as a first-stage computing node. When the states of all the computing nodes in the cloud platform are balanced, the protocol address (Internet Protocol, IP) or the node identification of the interconnection between the networks of each computing node can be determined, and the computing nodes in the preset range are determined to be used as primary nodes. Further, in order to ensure authority of the first-level computing nodes, in this embodiment, the current running state of each computing node in the system may be measured, or a preset number of first-level computing nodes may be selected from the cloud platform according to a predetermined node level or authority.
S103: receiving the successful update information sent by the primary computing node, and sending an update instruction for updating the secondary computing node to the primary computing node; the updating instruction is used for synchronizing the configuration information to the secondary computing node after the primary computing node is successfully updated; the secondary computing node is a computing node excluding the management node and the primary computing node.
After the management node sends the configuration information to the primary computing node, the primary computing node performs configuration updating according to the configuration information. And after the updating is successful, receiving updating success information sent by the first-stage computing node, and sending an updating instruction for updating the second-stage computing node to the first-stage computing node. However, if the primary computing node fails to update, the primary computing node that is successfully updated may first send configuration information to the secondary computing node, and the primary computing node that fails to update needs to stop updating and send configuration files to perform update failure processing or maintenance, and after the failure processing is finished, the primary computing node that fails to update is updated again.
The update instruction in this embodiment is used to synchronize the configuration information to the secondary computing node after the primary computing node is successfully updated, and after the primary computing node sends and receives the update instruction, the configuration information is synchronized to the secondary computing node, so that the secondary computing node updates according to the configuration information. Further, if the configuration information is modified in the first-stage computing node, the first-stage computing node sends the modified configuration information to the second-stage computing node, so that the second-stage computing node updates according to the modified configuration information, and the consistency of data updating of all computing nodes in the cloud platform is ensured.
S104: receiving updating success information sent by the secondary computing node; the update success information is used for indicating that all the computing nodes in the network are updated.
After the primary computing node synchronizes the configuration information to the secondary computing node, the secondary computing node updates according to the configuration information. And after the second-level computing node is successfully updated, receiving updating success information sent by the second-level computing node, and after the updating success information is received, indicating that all the computing nodes in the network are updated.
It should be noted that, because many computing nodes may be included in the cloud platform in practical application, there may be cases where some nodes are updated successfully and some computing nodes are updated successfully, and in this case, we may set that the computing nodes that are updated successfully send information that are updated successfully, and the nodes that are updated failed send information that are updated failed. Furthermore, after the update failure information is received, the computing node is updated manually according to the current situation of the computing node and the update failure information, so that the update of all nodes in the network can be consistent, and the effects of synchronous management and operation are realized.
According to the scheme, the configuration information for updating the cloud computing node configuration is obtained; updating the management node according to the configuration information, and sending the configuration information to a primary computing node after the configuration information is updated successfully; the first-level computing node is obtained by selecting according to a preset selecting mode; receiving the successful update information sent by the primary computing node, and sending an update instruction for updating the secondary computing node to the primary computing node; the updating instruction is used for notifying the primary computing node to synchronize the configuration information to the secondary computing node; the second-level computing node is a computing node except the management node and the first-level computing node; receiving updating success information sent by the secondary computing node; the update success information is used for indicating that all the computing nodes in the network are updated. By sending the update package to the first-level computing nodes in the network after the management node receives the update package and the update is successful, and sending the update package to the remaining second-level computing nodes and the update after the first-level computing nodes are successfully updated, the efficiency and the success rate of node update in the network are improved.
Referring to fig. 2, fig. 2 is a flowchart of a cloud computing node configuration updating method according to a second embodiment of the present invention. In this embodiment, an execution body of the cloud computing node configuration updating method is a terminal. The terminal comprises, but is not limited to, a mobile terminal such as a smart phone, a tablet computer, a wearable device and the like, and can also be a desktop computer and the like. The cloud computing node configuration updating method as shown in the figure can comprise the following steps:
S201: configuration information for updating cloud computing node configuration is obtained.
In this embodiment, the implementation manner of S201 is identical to that of S101 in the embodiment corresponding to fig. 1, and specific reference may be made to the description related to S101 in the embodiment corresponding to fig. 1, which is not repeated here.
S202: and acquiring configuration information and load information of all computing nodes in the network.
The computing nodes in this embodiment include a management node, a primary computing node and a secondary computing node, and by classifying the computing nodes in the network, the computing nodes of different levels are determined. Firstly, configuration information and load information of a computing node in a network need to be acquired, wherein the configuration information is used for representing original maximum load information of the computing node, such as maximum memory capacity, network maximum transmission bandwidth and the like. The load information is used to represent the current load condition of the computing node, which may include, but is not limited to, the current memory capacity, the current network bandwidth, and the like. The configuration information of the nodes can be information such as memory information, storage information or network resources of the nodes, and the configuration information is used for representing the data processing capability of each node; the load ratio information is used for representing the occupied storage load capacity, memory load capacity and/or network load capacity of the current node in the process of processing data, or the proportion of the load capacity in the total load of the nodes in the configuration information.
S203: and calculating the grade coefficient of each calculation node according to the configuration information and the load information.
After the configuration information and the load information are acquired, the rank coefficient of each calculation node is calculated according to the configuration information and the load information. In this scheme, the level coefficient is used to measure the level of each computing node, and the higher the level coefficient is, the higher the level of the node is.
Further, step S203 may specifically include step S2031:
s2031: according to the formulaCalculating the grade coefficient of each calculation node; wherein, p is used for representing the preset first-level computing node selection proportion; l (L) i 、L i Respectively representing the actual use load and the total load of each computing node; i is used to represent the node identity of each computing node.
Specifically, in the above formula, i is used to represent each computing nodeNode identification of l i 、L i Respectively representing the actual usage load and the total load of each computing node, i.e. the load ratio of each computing node. Since the load information may include many types of load information, such as memory load, network load, or storage load, we can also formulate A rank coefficient is calculated for each compute node, where n is used to represent the number of different types of load ratios for the same compute node.
S204: and selecting at least two first-level computing nodes from all the computing nodes according to the grade coefficient.
After the grade coefficient of each computing node is calculated, at least two first-stage computing nodes are selected from the computing nodes according to the grade coefficient, and data processing is carried out on the selected first-stage computing nodes.
Further, step S204 may specifically include steps S2041 to S2042:
s2041: and selecting a preset number of computing nodes as primary computing nodes according to the order of the grade coefficient of each computing node from high to low.
In the scheme, a preset number is set and used for representing the number of the computing nodes so as to ensure the balance of the number of the computing nodes of various grades in the network. In addition, a ratio may be set, and the number of first-level computing nodes may be determined by multiplying the ratio by the total number of computing nodes in the network. After the grade coefficient of each calculation node is calculated, a preset number of calculation nodes are selected as one-stage calculation nodes according to the order of the grade coefficient of each calculation node from high to low.
S2042: and identifying the computing nodes with the grade coefficients larger than or equal to the grade coefficient threshold as the primary computing nodes according to the grade coefficients of each computing node and a preset grade coefficient threshold.
In addition to the selection manner of step S2042, in this embodiment, a level coefficient threshold may be determined, which is used to measure the calculated level coefficient, and if the level coefficient is greater than or equal to the level coefficient threshold, the computing node corresponding to the level coefficient is determined to be the first-level computing node. After the primary computing node is computed, the other nodes in the network than the management node and the primary computing node are secondary computing nodes.
S205: updating the management node according to the configuration information, and sending the configuration information to a primary computing node after the configuration information is updated successfully; the first-stage computing node is obtained by selecting according to a preset selecting mode.
And updating the management node according to the configuration information, and transmitting the configuration information to the primary computing node after the management node is successfully updated, so that the primary computing node can update according to the configuration information transmitted by the management node.
If the failure of updating the management node is detected, acquiring fault information sent by the management node; maintaining and updating the management node according to the updated fault information; and modifying the configuration information according to the updated fault information, and transmitting the modified configuration information to the primary computing node after the management node is updated successfully. By means of the progressive updating mode of the upper and lower levels, the configuration information of the management node which is updated first and the updating result of the management node can be modified or corrected, and the modified configuration information is sent to the first-level computing node, so that the reliability of the configuration updating of the computing node can be improved.
S206: receiving the successful update information sent by the primary computing node, and sending an update instruction for updating the secondary computing node to the primary computing node; the updating instruction is used for synchronizing the configuration information to the secondary computing node after the primary computing node is successfully updated; the secondary computing node is a computing node excluding the management node and the primary computing node.
After the management node sends the configuration information to the primary computing node, the primary computing node performs configuration updating according to the configuration information. And after the updating is successful, receiving updating success information sent by the first-stage computing node, and sending an updating instruction for updating the second-stage computing node to the first-stage computing node. However, if the primary computing node fails to update, the primary computing node that is successfully updated may first send configuration information to the secondary computing node, and the primary computing node that fails to update needs to stop updating and send configuration files to perform update failure processing or maintenance, and after the failure processing is finished, the primary computing node that fails to update is updated again.
S207: receiving updating success information sent by the secondary computing node; the update success information is used for indicating that all the computing nodes in the network are updated.
After the primary computing node synchronizes the configuration information to the secondary computing node, the secondary computing node updates according to the configuration information. And after the second-level computing node is successfully updated, receiving updating success information sent by the second-level computing node, and after the updating success information is received, indicating that all the computing nodes in the network are updated.
After the second-level computing node is updated successfully, update success information sent by the second-level computing node can be received, which indicates that all nodes in the network are updated completely. In practical applications, however, it is not possible that all network nodes will be updated successfully. For example, when the authority in the configuration information of a certain node is higher, the current automatic update program cannot update, and a password with higher authority is required to update the configuration information; or a network node fails before or during the update, and cannot implement configuration update. In this case, a failure log of the network node may also be accepted, where the failure log may include: recording successful updating, node identification of a computing node with failed updating, system version of the node, error reporting information with failed updating or captured information such as abnormality, wherein the error reporting information with failed updating can be specific to error reporting information of a certain service, and the captured abnormal information can also be information such as unknown error.
According to the scheme, the configuration information for updating the cloud computing node configuration is obtained; load information of all computing nodes in a network is obtained; calculating the grade coefficient of each calculation node according to the load information; and selecting at least two first-level computing nodes from all the computing nodes according to the grade coefficient. Updating the management node according to the configuration information, and sending the configuration information to a primary computing node after the configuration information is updated successfully; the first-level computing node is obtained by selecting according to a preset selecting mode; receiving the successful update information sent by the primary computing node, and sending an update instruction for updating the secondary computing node to the primary computing node; the updating instruction is used for notifying the primary computing node to synchronize the configuration information to the secondary computing node; the second-level computing node is a computing node except the management node and the first-level computing node; receiving updating success information sent by the secondary computing node; the update success information is used for indicating that all the computing nodes in the network are updated. By sending the update package to the first-level computing nodes in the network after the management node receives the update package and the update is successful, and sending the update package to the remaining second-level computing nodes and the update after the first-level computing nodes are successfully updated, the efficiency and the success rate of node update in the network are improved.
Referring to fig. 3, fig. 3 is a schematic diagram of a terminal device according to a third embodiment of the present invention. The terminal device includes units for executing the steps in the embodiments corresponding to fig. 1 to 2. Refer specifically to the related descriptions in the respective embodiments of fig. 1-2. For convenience of explanation, only the portions related to the present embodiment are shown. The terminal device 300 of the present embodiment includes:
an obtaining unit 301, configured to obtain configuration information for updating a cloud computing node configuration;
a first updating unit 302, configured to update the management node according to the configuration information, and send the configuration information to the primary computing node after the update is successful; the first-level computing node is obtained by selecting according to a preset selecting mode;
a second updating unit 303, configured to receive update success information sent by the primary computing node, and send an update instruction for updating the secondary computing node to the primary computing node; the updating instruction is used for notifying the primary computing node to synchronize the configuration information to the secondary computing node; the second-level computing node is a computing node except the management node and the first-level computing node;
a receiving unit 304, configured to receive update success information sent by the secondary computing node; the update success information is used for indicating that all the computing nodes in the network are updated.
Further, the terminal device may further include:
the information acquisition unit is used for acquiring the load information of all the computing nodes in the network;
a calculating unit, configured to calculate a rank coefficient of each of the calculating nodes according to the load information;
and the selecting unit is used for selecting at least two first-stage computing nodes from all the computing nodes according to the grade coefficient.
Further, the computing unit may include:
according to the formulaCalculating the grade coefficient of each calculation node; wherein, p is used for representing the preset first-level computing node selection proportion; l (L) i 、L i Respectively representing the actual use load and the total load of each computing node; i is used to represent the node identity of each computing node.
Further, the selecting unit may further include:
the first selecting unit is used for selecting a preset number of computing nodes as primary computing nodes according to the order of the grade coefficient of each computing node from high to low; or alternatively
And the second selecting unit is used for identifying the computing nodes with the grade coefficients larger than or equal to the grade coefficient threshold as the first-grade computing nodes according to the grade coefficients of each computing node and a preset grade coefficient threshold.
Further, the first updating unit 302 may include:
a management node updating unit, configured to update the management node according to the configuration information;
the information acquisition unit is used for acquiring fault information sent by the management node if the update failure of the management node is detected;
the node maintenance unit is used for maintaining and updating the management node again according to the updated fault information;
and the modification information sending unit is used for modifying the configuration information according to the fault information and sending the modified configuration information to the primary computing node when the management node is updated successfully.
According to the scheme, the configuration information for updating the cloud computing node configuration is obtained; load information of all computing nodes in a network is obtained; calculating the grade coefficient of each calculation node according to the load information; and selecting at least two first-level computing nodes from all the computing nodes according to the grade coefficient. Updating the management node according to the configuration information, and sending the configuration information to a primary computing node after the configuration information is updated successfully; the first-level computing node is obtained by selecting according to a preset selecting mode; receiving the successful update information sent by the primary computing node, and sending an update instruction for updating the secondary computing node to the primary computing node; the updating instruction is used for notifying the primary computing node to synchronize the configuration information to the secondary computing node; the second-level computing node is a computing node except the management node and the first-level computing node; receiving updating success information sent by the secondary computing node; the update success information is used for indicating that all the computing nodes in the network are updated. By sending the update package to the first-level computing nodes in the network after the management node receives the update package and the update is successful, and sending the update package to the remaining second-level computing nodes and the update after the first-level computing nodes are successfully updated, the efficiency and the success rate of node update in the network are improved.
Fig. 4 is a schematic diagram of a terminal device according to a fourth embodiment of the present invention. As shown in fig. 4, the terminal device 4 of this embodiment includes: a processor 40, a memory 41 and a computer program 42 stored in the memory 41 and executable on the processor 40. The steps of the embodiments of the cloud computing node configuration update method described above, such as steps 101 through 104 shown in fig. 1, are implemented by the processor 40 when executing the computer program 42. Alternatively, the processor 40 may perform the functions of the modules/units of the apparatus embodiments described above, such as the functions of the units 301 to 304 shown in fig. 3, when executing the computer program 42.
Illustratively, the computer program 42 may be partitioned into one or more modules/units that are stored in the memory 41 and executed by the processor 40 to complete the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions for describing the execution of the computer program 42 in the terminal device 4.
The terminal device 4 may be a computing device such as a desktop computer, a notebook computer, a palm computer, a cloud server, etc. The terminal device may include, but is not limited to, a processor 40, a memory 41. It will be appreciated by those skilled in the art that fig. 4 is merely an example of the terminal device 4 and does not constitute a limitation of the terminal device 4, and may include more or less components than illustrated, or may combine certain components, or different components, e.g., the terminal device may further include an input-output device, a network access device, a bus, etc.
The processor 40 may be a central processing unit (Central Processing Unit, CPU), other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 41 may be an internal storage unit of the terminal device 4, such as a hard disk or a memory of the terminal device 4. The memory 41 may be an external storage device of the terminal device 4, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card, FC), or the like, which are provided on the terminal device 4. Further, the memory 41 may also include both an internal storage unit and an external storage device of the terminal device 4. The memory 41 is used for storing the computer program as well as other programs and data required by the terminal device. The memory 41 may also be used for temporarily storing data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above system may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
The integrated modules/units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present invention may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention, and are intended to be included in the scope of the present invention.

Claims (5)

1. A cloud computing node configuration updating method, comprising:
acquiring configuration information for updating cloud computing node configuration;
load information of all computing nodes in a network is obtained; the load information is used for representing the current load condition of the computing node;
calculating a rank coefficient of each calculation node according to the load information, including: according to the formulaCalculating the grade coefficient of each calculation node; wherein, p is used for representing the preset first-level computing node selection proportion; l (L) i 、L i Respectively for each ofActual usage load and total load of the individual compute nodes; i is used for representing the node identification of each computing node;
selecting at least two first-level computing nodes from all the computing nodes according to the grade coefficient, wherein the method comprises the following steps: selecting a preset number of computing nodes as primary computing nodes according to the order of the grade coefficient of each computing node from high to low; or according to the grade coefficient of each computing node and a preset grade coefficient threshold value, identifying the computing node with the grade coefficient larger than or equal to the grade coefficient threshold value as the primary computing node;
Updating the management node according to the configuration information, and sending the configuration information to a primary computing node after the configuration information is updated successfully; the first-level computing node is obtained by selecting according to a preset selecting mode;
receiving the successful update information sent by the primary computing node, and sending an update instruction for updating the secondary computing node to the primary computing node; the updating instruction is used for notifying the primary computing node to synchronize the configuration information to the secondary computing node; the second-level computing node is a computing node except the management node and the first-level computing node; the first-level computing node and the second-level computing node are respectively provided with at least two;
receiving updating success information sent by the secondary computing node; the update success information is used for indicating that all the computing nodes in the network are updated.
2. The cloud computing node configuration updating method of claim 1, wherein updating the management node according to the configuration information and transmitting the configuration information to the primary computing node after the updating is successful comprises:
updating the management node according to the configuration information;
if the update failure of the management node is detected, acquiring fault information sent by the management node;
Maintaining and updating the management node according to the updated fault information;
and modifying the configuration information according to the fault information, and sending the modified configuration information to the primary computing node when the management node is successfully updated.
3. A terminal device comprising a memory and a processor, said memory storing a computer program executable on said processor, characterized in that said processor, when executing said computer program, performs the steps of:
acquiring configuration information for updating cloud computing node configuration;
load information of all computing nodes in a network is obtained; the load information is used for representing the current load condition of the computing node;
calculating a rank coefficient of each calculation node according to the load information, including: according to the formulaCalculating the grade coefficient of each calculation node; wherein, p is used for representing the preset first-level computing node selection proportion; l (L) i 、L i Respectively representing the actual use load and the total load of each computing node; i is used for representing the node identification of each computing node;
selecting at least two first-level computing nodes from all the computing nodes according to the grade coefficient, wherein the method comprises the following steps: selecting a preset number of computing nodes as primary computing nodes according to the order of the grade coefficient of each computing node from high to low; or according to the grade coefficient of each computing node and a preset grade coefficient threshold value, identifying the computing node with the grade coefficient larger than or equal to the grade coefficient threshold value as the primary computing node;
Updating the management node according to the configuration information, and sending the configuration information to a primary computing node after the configuration information is updated successfully; the first-level computing node is obtained by selecting according to a preset selecting mode;
receiving the successful update information sent by the primary computing node, and sending an update instruction for updating the secondary computing node to the primary computing node; the updating instruction is used for notifying the primary computing node to synchronize the configuration information to the secondary computing node; the second-level computing node is a computing node except the management node and the first-level computing node; the first-level computing node and the second-level computing node are respectively provided with at least two;
receiving updating success information sent by the secondary computing node; the update success information is used for indicating that all the computing nodes in the network are updated.
4. A terminal device, comprising:
an acquisition unit for acquiring configuration information for updating the configuration of the cloud computing node;
the information acquisition unit is used for acquiring the load information of all the computing nodes in the network; the load information is used for representing the current load condition of the computing node;
a calculating unit, configured to calculate a rank coefficient of each of the calculating nodes according to the load information, including: according to the formula Calculating the grade coefficient of each calculation node; wherein, p is used for representing the preset first-level computing node selection proportion; l (L) i 、L i Respectively representing the actual use load and the total load of each computing node; i is used for representing the node identification of each computing node;
the selecting unit is used for selecting at least two first-level computing nodes from all the computing nodes according to the grade coefficient; the selecting unit includes: the first selecting unit is used for selecting a preset number of computing nodes as primary computing nodes according to the order of the grade coefficient of each computing node from high to low; or a second selecting unit, configured to identify, as the first-level computing node, a computing node whose level coefficient is greater than or equal to the level coefficient threshold according to the level coefficient of each computing node and a preset level coefficient threshold;
the first updating unit is used for updating the management node according to the configuration information and sending the configuration information to the primary computing node after the management node is updated successfully; the first-level computing node is obtained by selecting according to a preset selecting mode;
the second updating unit is used for receiving the updating success information sent by the first-level computing node and sending an updating instruction for updating the second-level computing node to the first-level computing node; the updating instruction is used for notifying the primary computing node to synchronize the configuration information to the secondary computing node; the second-level computing node is a computing node except the management node and the first-level computing node; the first-level computing node and the second-level computing node are respectively provided with at least two;
The receiving unit is used for receiving the update success information sent by the secondary computing node; the update success information is used for indicating that all the computing nodes in the network are updated.
5. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor realizes the steps of the method according to claim 1 or 2.
CN201910007891.6A 2019-01-04 2019-01-04 Cloud computing node configuration updating method and terminal equipment Active CN109873714B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910007891.6A CN109873714B (en) 2019-01-04 2019-01-04 Cloud computing node configuration updating method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910007891.6A CN109873714B (en) 2019-01-04 2019-01-04 Cloud computing node configuration updating method and terminal equipment

Publications (2)

Publication Number Publication Date
CN109873714A CN109873714A (en) 2019-06-11
CN109873714B true CN109873714B (en) 2023-12-22

Family

ID=66917425

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910007891.6A Active CN109873714B (en) 2019-01-04 2019-01-04 Cloud computing node configuration updating method and terminal equipment

Country Status (1)

Country Link
CN (1) CN109873714B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112291289A (en) * 2019-07-24 2021-01-29 中移(苏州)软件技术有限公司 Method and apparatus for managing configuration file and computer readable storage medium
CN112653758B (en) * 2020-12-21 2023-04-07 北京百度网讯科技有限公司 Method, device, equipment and medium for updating edge node
CN113127030A (en) * 2021-03-18 2021-07-16 山东英信计算机技术有限公司 Multi-node server BMC loading method, system, device and storage medium
JP7240439B2 (en) * 2021-04-30 2023-03-15 株式会社日立製作所 Update device, update method and program

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101599881A (en) * 2008-06-06 2009-12-09 费舍-柔斯芒特系统股份有限公司 Be used between networked devices, implementing the method and apparatus of sequential synchronization hierarchy
CN102025756A (en) * 2009-09-09 2011-04-20 中兴通讯股份有限公司 Distributed system and data synchronization method thereof
CN103780433A (en) * 2014-02-18 2014-05-07 成都致云科技有限公司 Self-healing type virtual resource configuration management data architecture
CN104750738A (en) * 2013-12-30 2015-07-01 中国移动通信集团公司 Data information updating method, data node, management node and system
CN105516369A (en) * 2016-02-04 2016-04-20 城云科技(杭州)有限公司 Video cloud platform load balancing method and video cloud platform load balancing dispatcher
CN108833133A (en) * 2018-04-27 2018-11-16 广州西麦科技股份有限公司 Network configuration management method, apparatus and storage medium based on system for cloud computing

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101599881A (en) * 2008-06-06 2009-12-09 费舍-柔斯芒特系统股份有限公司 Be used between networked devices, implementing the method and apparatus of sequential synchronization hierarchy
CN102025756A (en) * 2009-09-09 2011-04-20 中兴通讯股份有限公司 Distributed system and data synchronization method thereof
CN104750738A (en) * 2013-12-30 2015-07-01 中国移动通信集团公司 Data information updating method, data node, management node and system
CN103780433A (en) * 2014-02-18 2014-05-07 成都致云科技有限公司 Self-healing type virtual resource configuration management data architecture
CN105516369A (en) * 2016-02-04 2016-04-20 城云科技(杭州)有限公司 Video cloud platform load balancing method and video cloud platform load balancing dispatcher
CN108833133A (en) * 2018-04-27 2018-11-16 广州西麦科技股份有限公司 Network configuration management method, apparatus and storage medium based on system for cloud computing

Also Published As

Publication number Publication date
CN109873714A (en) 2019-06-11

Similar Documents

Publication Publication Date Title
US10942828B2 (en) Method for storing data shards, apparatus, and system
CN109873714B (en) Cloud computing node configuration updating method and terminal equipment
WO2020253347A1 (en) Container cluster management method, device and system
US20210004258A1 (en) Method and Apparatus for Creating Virtual Machine
US9971823B2 (en) Dynamic replica failure detection and healing
EP2652594B1 (en) Multi-tenant, high-density container service for hosting stateful and stateless middleware components
US20170141944A1 (en) Verifier for network function virtualization resource allocation
Tsai et al. Two-tier multi-tenancy scaling and load balancing
US10795735B1 (en) Method and apparatus for load balancing virtual data movers between nodes of a storage cluster
WO2015101091A1 (en) Distributed resource scheduling method and device
US9256828B2 (en) Alarm correlation analysis method, apparatus and system
US11379264B2 (en) Advanced cloud architectures for power outage mitigation and flexible resource use
US11341032B1 (en) Testing in a disaster recovery computer system
US11909599B2 (en) Multi-domain and multi-tenant network topology model generation and deployment
Handoko et al. High availability analysis with database cluster, load balancer and virtual router redudancy protocol
US20140282581A1 (en) Method and apparatus for providing a component block architecture
CN111352726A (en) Streaming data processing method and device based on containerized micro-service
US20230308510A1 (en) Dynamic storage sharing across network devices
CN111866210A (en) Virtual IP balance distribution method, system, terminal and storage medium
CN112073499A (en) Dynamic service method of multi-machine type cloud physical server
US11595471B1 (en) Method and system for electing a master in a cloud based distributed system using a serverless framework
CN116954863A (en) Database scheduling method, device, equipment and storage medium
CN115225642A (en) Elastic load balancing method and system of super-fusion system
CN114338670A (en) Edge cloud platform and three-level cloud control platform for internet traffic with same
CN109257201B (en) License sending method and device

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
GR01 Patent grant
GR01 Patent grant