CN109873714A - Cloud computing node configures update method and terminal device - Google Patents
Cloud computing node configures update method and terminal device Download PDFInfo
- Publication number
- CN109873714A CN109873714A CN201910007891.6A CN201910007891A CN109873714A CN 109873714 A CN109873714 A CN 109873714A CN 201910007891 A CN201910007891 A CN 201910007891A CN 109873714 A CN109873714 A CN 109873714A
- Authority
- CN
- China
- Prior art keywords
- node
- level
- calculate node
- calculate
- information
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 31
- 230000005540 biological transmission Effects 0.000 claims abstract description 28
- 230000001360 synchronised effect Effects 0.000 claims description 19
- 238000004590 computer program Methods 0.000 claims description 13
- 238000012423 maintenance Methods 0.000 claims description 6
- 238000005516 engineering process Methods 0.000 abstract description 9
- 238000004883 computer application Methods 0.000 abstract description 2
- 238000007726 management method Methods 0.000 description 57
- 230000004048 modification Effects 0.000 description 9
- 238000012986 modification Methods 0.000 description 9
- 238000012545 processing Methods 0.000 description 8
- 230000006870 function Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 238000013024 troubleshooting Methods 0.000 description 4
- 238000011161 development Methods 0.000 description 3
- 230000005611 electricity Effects 0.000 description 3
- 210000004556 brain Anatomy 0.000 description 2
- 238000005303 weighing Methods 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000004888 barrier function Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
Landscapes
- Stored Programmes (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The present invention is suitable for computer application technology, provides a kind of cloud computing node configuration update method, terminal device and computer readable storage medium, comprising: by obtaining the configuration information for updating cloud computing node configuration;The configuration information is sent to level-one calculate node according to the configuration information update management node, and after being updated successfully;Receive the level-one calculate node transmission is updated successfully information, and the more new command for updating second level calculate node is sent to the level-one calculate node;Receive the transmission of second level calculate node is updated successfully information.By after management node receives and updates packet and be updated successfully, the level-one calculate node wrapped and be sent in network will be updated, and packet will be updated after level-one calculate node is updated successfully and be sent to remaining second level calculate node and be updated, improve the efficiency and success rate of nodes update.
Description
Technical field
The invention belongs to computer application technologies more particularly to a kind of cloud computing node to configure update method, terminal
Equipment and computer readable storage medium.
Background technique
The rapid development of computer technology has also driven the fast development of cloud computing technology, the information skill as a kind of innovation
Art cloud computing is encapsulated as hardware resource and software resource to service, and is integrated into computing resource pool by network system, logically
Service interface is provided in the form of integral entity to use as needed for user and on-demand charging.Cloud computing is current information technology field
One of hot technology, obtained the extensive concern of industry, many major companies that internationalize have been proposed the cloud computing of oneself
Scheme.
But in the prior art when updating the calculate node configuration in Cloud Server, can first it be updated using updating manually
The update calculate node of management node then one by one.This mode renewal time when calculate node is more is very slow, reduces
The efficiency that calculate node updates in cloud processing system.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of cloud computing node configuration update method, terminal device and calculating
Machine readable storage medium storing program for executing, to solve in the prior art when updating the configuration of cloud system calculate node, when more due to calculate node
The problem of renewal time is very slow, reduces the efficiency that calculate node updates in cloud processing system.
The first aspect of the embodiment of the present invention provides a kind of cloud computing node configuration update method, comprising:
Obtain the configuration information for updating cloud computing node configuration;
The configuration information is sent to level-one according to the configuration information update management node, and after being updated successfully
Calculate node;The level-one calculate node is chosen to obtain according to preset selection mode;
Receive the level-one calculate node transmission is updated successfully information, and sends to the level-one calculate node and update two
The more new command of grade calculate node;The more new command is for notifying the level-one calculate node to be synchronized to the configuration information
The second level calculate node;The second level calculate node is the calculating section except the management node and the level-one calculate node
Point;
Receive the second level calculate node transmission is updated successfully information;The information that is updated successfully is for indicating in network
All calculate nodes update finish.
The second aspect of the embodiment of the present invention provides a kind of terminal device, including memory, processor and is stored in
In the memory and the computer program that can run on the processor, when the processor executes the computer program
It performs the steps of
Obtain the configuration information for updating cloud computing node configuration;
The configuration information is sent to level-one according to the configuration information update management node, and after being updated successfully
Calculate node;The level-one calculate node is chosen to obtain according to preset selection mode;
Receive the level-one calculate node transmission is updated successfully information, and sends to the level-one calculate node and update two
The more new command of grade calculate node;The more new command is for notifying the level-one calculate node to be synchronized to the configuration information
The second level calculate node;The second level calculate node is the calculating section except the management node and the level-one calculate node
Point;
Receive the second level calculate node transmission is updated successfully information;The information that is updated successfully is for indicating in network
All calculate nodes update finish.
The third aspect of the embodiment of the present invention provides a kind of terminal device, comprising:
Acquiring unit, for obtaining the configuration information for updating cloud computing node configuration;
First updating unit is used for according to the configuration information update management node, and will be described after being updated successfully
Configuration information is sent to level-one calculate node;The level-one calculate node is chosen to obtain according to preset selection mode;
Second updating unit, for receiving the information that is updated successfully that the level-one calculate node sends, and to the level-one
Calculate node sends the more new command for updating second level calculate node;The more new command is for notifying the level-one calculate node will
The configuration information is synchronized to the second level calculate node;The second level calculate node is except the management node and the level-one
The calculate node of calculate node;
Receiving unit is updated successfully information for receive that the second level calculate node sends;It is described to be updated successfully information
For indicating that the update of all calculate nodes in network finishes.
The fourth aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer storage medium
It is stored with computer program, the computer program includes program instruction, and described program instruction makes institute when being executed by a processor
State the method that processor executes above-mentioned first aspect.
Existing beneficial effect is the embodiment of the present invention compared with prior art:
The embodiment of the present invention is by obtaining the configuration information for updating cloud computing node configuration;According to the configuration information
Management node is updated, and the configuration information is sent to level-one calculate node after being updated successfully;Receive the level-one meter
What operator node was sent is updated successfully information, and the more new command for updating second level calculate node is sent to the level-one calculate node;
Receive the transmission of second level calculate node is updated successfully information.By inciting somebody to action after management node receives and updates packet and be updated successfully
Update the level-one calculate node that is sent in network of packet, and will update after level-one calculate node is updated successfully packet be sent to it is surplus
Remaining second level calculate node is simultaneously updated, and improves the efficiency and success rate of nodes update.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some
Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is the flow chart for the cloud computing node configuration update method that the embodiment of the present invention one provides;
Fig. 2 is the flow chart of cloud computing node configuration update method provided by Embodiment 2 of the present invention;
Fig. 3 is the schematic diagram for the terminal device that the embodiment of the present invention three provides;
Fig. 4 is the schematic diagram for the terminal device that the embodiment of the present invention four provides.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed
Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific
The present invention also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity
The detailed description of road and method, in case unnecessary details interferes description of the invention.
In order to illustrate technical solutions according to the invention, the following is a description of specific embodiments.
It is the flow chart for the cloud computing node configuration update method that the embodiment of the present invention one provides referring to Fig. 1, Fig. 1.This reality
The executing subject for applying cloud computing node configuration update method in example is terminal.Terminal includes but is not limited to smart phone, plate electricity
The mobile terminals such as brain, wearable device can also be desktop computer etc..Cloud computing node configuration update method as shown in the figure can
With the following steps are included:
S101: the configuration information for updating cloud computing node configuration is obtained.
Cloud computing is a kind of completely new service mode, user quickly from configurable resource-sharing pond obtain on demand calculating,
The resources such as network, storage, and pay by usage amount.Traditional application system is deployed on special server, and deployment is new
Using also needing reevaluating resource.This deployment mode cannot make full use of resource, there is a situation where that resource utilization is low, and not
It is easy extension.One application system need it is corresponding rely on library and environment configurations, and deployment each time require to reinstall according to
Bad and configuration parameter.Traditional computer network deployment framework needs oneself to go to manage and maintain, and is unable to shared resource and reaches reduction
The purpose of equipment, with high costs, resource utilization is not high.
Cloud infrastructure is managed by resource of the virtualization layer to hardware layer, with Internet resources pond, memory resource pool
With the form shared resource of computing resource pool, resource is provided for top service by cloud layer elasticity.Cloud computing framework can shield
Hardware differences and flexible hardware resource, resource of distributing according to need.Cloud infrastructure shares hardware resource by virtualization technology, is based on
Cloud platform layer realizes that on-demand acquisition resource, automatic circle, portion, flexible required resource, fault recovery, High Availabitity and the load of application are equal
Weighing apparatus facilitates user to dispose and manage existing application system, helps user to construct cloud business model and reduces the cost.Pass through inside network side
Virtualization technology on demand bottom hardware resource virtualizing be it is different can calculate node, the related clothes of each component of cloud computing platform
Business and management, control and calculating business are just disposed and are run in node.Cloud platform needs to realize in a unified system
Resource is configured and managed in framework.In network side external user and system manager by access control interface with interface
Mode easily obtain, be shared and using the resource in system, shielding harness bottom layer realization details and physical resource it is specific
Distribution, management and distribution resource that can be effectively transparent, the consistency that holding system is used and managed.
In practical applications, network node be broadly divided on the whole upper layer cloud management node layer and its under control and
Calculate node layer.Updating for network node can be the update to whole system version, and version iteration is very fast in the daily work,
It is frequently necessary to update.Whole system framework has management end and calculate node, and usually updating is to need to calculating, management node together
It updates.In addition to this it is possible to be to be updated to specific configuration file, for example, going wrong when in some configuration file
Or more news is needed, it needs for the configuration file after modification to be synchronized in corresponding node, realizes configuration file
It updates.It include at least many cloud computing nodes in cloud platform, these cloud computing nodes can be also possible to computer, work station
Server, herein without limitation.Cloud is that the mankind by figurative expression describe network, and it is empty that there is no specific forms for it
The address of quasi-ization.User only needs to issue request to it, and cloud data center will service according to required offer and not necessarily worry
Its specific running position, this is also that there is still a need for adhere in cloud computing future development: improving the virtualization degree of system, leads to
It crosses integration and effective use to resource and realizes and the attribute of upper and lower level is hidden.
In the present embodiment, the configuration of each cloud computing node can be identical, be also possible to it is different, with carry out not
With the data processing work of task amount.We obtain each cloud meter before the configuration to cloud computing node is updated first
The configuration information of operator node, the mode obtained can be directly to be sent to management node with confidence by each cloud computing node
The mode of breath is also possible to input the configuration information that each cloud computing node in cloud platform is directly transferred in order by management node
Mode.
Configuration information in the present embodiment may include memory information, hard disk information, load information of cloud computing node etc.,
It can be memory amount, current memory amount;Hard disk total amount, current storage capacity;Load peak, the information such as present load amount,
Herein without limitation.In addition to this information such as Service-Port, system version, data transmission interface be can also be, acquisition is passed through
These configuration informations can make each calculate node in cloud platform carry out configuration update according to configuration file, to guarantee cloud
The data processing of platform can be normally carried out.
S102: the configuration information is sent according to the configuration information update management node, and after being updated successfully
To level-one calculate node;The level-one calculate node is chosen to obtain according to preset selection mode.
Cloud computing node in the present embodiment may include management node, level-one calculate node and second level calculate node.
Wherein, management node only one, be the highest cloud computing node of permission, can be used to manage other cloud computing nodes.Its
In, it is the core of cloud pipe platform that management node, which is used to manage many and provides the cluster of virtualization computing capability, mainly will be entire
Infrastructure, that is, service platform is summarised in this core to handle, and receives the operation of user and administrator.Management node can be to hair
The operation requests come are handled, and occur to go to execute to calculate node.Calculate node is most basic hard in cloud computing platform
One of part module, for providing virtualization capability and computing resource, the virtual machine of operation client's creation.Calculate node can have
Different size provides graphics processor, memory, storage or the Internet resources etc. that virtual machine needs by network interworking.Level-one
Calculate node and second level calculate node can have at least two respectively, permission of the level-one calculate node relative to second level calculate node
It is higher.Originally it is that the purpose of setting level-one calculate node and second level calculate node is in embodiment, first updates level-one calculate node,
The configuration information for updating file is determined after level-one calculate node is updated successfully in the case that there is no problem, by configuration information
It is sent in corresponding second level calculate node, so that second level calculate node realizes that configuration updates.It should be noted that the present embodiment
In a level-one calculate node can be corresponding at least one second level calculate node, by configuration information to be synchronized to based on second level
Operator node improves the synchronous efficiency of data, and then improves the efficiency of node updates.
Further, it after management node update, may be updated successfully, it is also possible to update failure.When being updated successfully,
Directly configuration information can be sent at level-one calculate node, so that level-one calculate node carries out configuration update.It is lost when updating
When losing, the updating record according to configuration file and management node can be, determine the reason of updating failure, and fail according to updating
The reason of the update failure of management node is safeguarded, meanwhile, the reason of according to failure is updated, it is appropriate to carry out to configuration file
The modification of property can not also be modified when there is no problem for configuration file.Configuration is re-started according to the configuration file after modification
It updates.And the configuration file after modification is sent to level-one calculate node.
In the present embodiment, it can choose to obtain at least two level-one calculate nodes by preset mode, for example, according to every
The current operating condition of a calculate node is determined for compliance with the calculate node of requirement as level-one calculate node.When institute in cloud platform
In the case where thering is the state of calculate node all to compare balance, with can determining the agreement interconnected between the network of each calculate node
Location (Internet Protocol, IP) or node identification, by determining the calculate node in preset range as level-one section
Point.Further, it in order to guarantee the authority of level-one calculate node, in the present embodiment, can be by each in measurement system
The current operating status of calculate node is chosen pre- either according to predetermined node level or permission in cloud platform
If the level-one calculate node of quantity.
S103: the information that is updated successfully of the level-one calculate node transmission is received, and is sent to the level-one calculate node
Update the more new command of second level calculate node;The more new command is used for institute after the level-one calculate node is updated successfully
It states configuration information and is synchronized to the second level calculate node;The second level calculate node is except the management node and the level-one meter
The calculate node of operator node.
After configuration information is sent to level-one calculate node by management node, by level-one calculate node according to configuration information
Carry out configuration update.After being updated successfully, the information that is updated successfully of level-one calculate node transmission is received, and calculates and saves to level-one
Point sends the more new command for updating second level calculate node.If but in the case where updating failure there are level-one calculate node, then
Configuration information first can be sent to second level calculate node by the level-one calculate node being updated successfully, the level-one for updating failure calculates section
Point needs to stop to update and sends configuration file, to be updated troubleshooting or maintenance, after troubleshooting terminates, and weight
Configuration update newly is carried out to the level-one calculate node for occurring updating failure.
More new command in the present embodiment is for being synchronized to two for configuration information after level-one calculate node is updated successfully
Configuration information is synchronized to second level calculate node after level-one calculate node is transmitted and received to more new command by grade calculate node,
So that second level calculate node is updated according to configuration information.Further, configuration was modified if going out in level-one calculate node
Information is then that the configuration information after modification is sent to second level calculate node by level-one calculate node, so that second level calculates section
Point is updated according to the configuration information after modification, guarantees the consistency that all calculate node data update in cloud platform.
S104: receive the second level calculate node transmission is updated successfully information;The information that is updated successfully is for indicating
All calculate nodes update in network finishes.
After configuration information is synchronized to second level calculate node by level-one calculate node, second level calculate node is according to confidence
Breath is updated.After second level calculate node is updated successfully, receive the transmission of second level calculate node is updated successfully information, is connecing
It receives and is updated successfully after information, then it represents that the update of all calculate nodes finishes in network.
It should be noted that can have one due to may include many calculate nodes in cloud platform in practical applications
A little node updates successes, and some calculate nodes update the case where failing, in this case, we can set, and be updated successfully
Calculate node send the information that is updated successfully, the node for updating failure, which is sent, updates failure information.Further, it is receiving
After updating failure information, according to the current situation of the calculate node and failure information is updated, individually manually to the calculating section
Point is updated, and is guaranteed that the update of all nodes in network can be consistent, is realized the effect of management by synchronization and operation.
Above scheme, by obtaining the configuration information for updating cloud computing node configuration;More according to the configuration information
New management node, and the configuration information is sent to level-one calculate node after being updated successfully;The level-one calculate node
It chooses to obtain according to preset selection mode;Receive the information that is updated successfully that the level-one calculate node sends, and to described one
Grade calculate node sends the more new command for updating second level calculate node;The more new command is for notifying the level-one calculate node
The configuration information is synchronized to the second level calculate node;The second level calculate node is except the management node and described one
The calculate node of grade calculate node;Receive the second level calculate node transmission is updated successfully information;It is described to be updated successfully information
For indicating that the update of all calculate nodes in network finishes.It is wrapped and after being updated successfully by receiving to update in management node,
The level-one calculate node wrapped and be sent in network will be updated, and packet will be updated after level-one calculate node is updated successfully and be sent to
Remaining second level calculate node is simultaneously updated, and improves the efficiency and success rate of nodes update.
Referring to fig. 2, Fig. 2 is the flow chart of cloud computing node configuration update method provided by Embodiment 2 of the present invention.This reality
The executing subject for applying cloud computing node configuration update method in example is terminal.Terminal includes but is not limited to smart phone, plate electricity
The mobile terminals such as brain, wearable device can also be desktop computer etc..Cloud computing node configuration update method as shown in the figure can
With the following steps are included:
S201: the configuration information for updating cloud computing node configuration is obtained.
The implementation of S101 is identical in S201 embodiment corresponding with Fig. 1 in the present embodiment, specifically refers to
The associated description of S101 in the corresponding embodiment of Fig. 1, details are not described herein.
S202: the configuration information and load information of all calculate nodes in network are obtained.
Include management node, level-one calculate node and second level calculate node in calculate node in the present embodiment, leads to
It crosses and classifies to the calculate node in network, determine different grades of calculate node.Section is calculated in network firstly the need of obtaining
The configuration information and load information of point, wherein configuration information is used to indicate the maximum load information of calculate node script, for example, most
Big memory size, Network Maximum Transmission bandwidth etc..Load information is for indicating the current loading condition of calculate node, wherein can be with
Including current memory size, current network bandwidth etc., herein without limitation.The configuration information of node can be the memory of node
Information, the storage information such as information or Internet resources, for indicating the data-handling capacity of each node;Duty factor information is used for
Expression present node is during handling data, occupied storage load capacity, memory load capacity and or network load amount,
Or ratio of these load capacity in the node total load in configuration information.
S203: according to the configuration information and the load information, the equivalent coefficient of each calculate node is calculated.
After getting configuration information and load information, each calculate node is calculated according to configuration information and load information
Equivalent coefficient.In the present solution, equivalent coefficient is used to measure the level condition of each calculate node, the more big then table of equivalent coefficient
Show that the higher grade of the node.
Further, step S203 can specifically include step S2031:
S2031: according to formulaCalculate the equivalent coefficient of each calculate node;Wherein,
P is for indicating that preset level-one calculate node chooses ratio;li、LiIt is respectively used to indicate that the actual use of each calculate node is negative
Load and total load;I is used to indicate the node identification of each calculate node.
Specifically, i is used to indicate the node identification of each calculate node, l in above-mentioned formulai、LiIt is respectively used to indicate
The actual use load of each calculate node and total load, i.e., the load percentage of each calculate node.Since load information can be with
Load information including many types, such as memory load, network load or storage load etc., therefore, we can also lead to
Cross formulaCalculate the equivalent coefficient of each calculate node, wherein n is for indicating same calculating
The quantity of the different types of duty factor of node.
S204: according to the equivalent coefficient, at least two level-one calculate nodes are chosen in all calculate nodes.
After the equivalent coefficient for calculating each calculate node, according to equivalent coefficient, chosen at least in calculate node
Two level-one calculate nodes, to for select come level-one calculate node carry out data processing.
Further, step S204 can specifically include step S2041~S2042:
S2041: according to the sequence of the equivalent coefficient of each calculate node from high to low, preset quantity is selected
Calculate node is as level-one calculate node.
In the present solution, a preset quantity is set with, for indicating the quantity of calculate node, to guarantee to draw in network respectively
The quantity balance of the calculate node of kind grade.In addition to this it is possible to a ratio be set, by the ratio multiplied by total in network
Calculate node quantity, can determine the number of level-one calculate node.The equivalent coefficient for calculating each calculate node it
Afterwards, the sequence according to the equivalent coefficient of each calculate node from high to low selects the calculate node of preset quantity as level-one meter
Operator node.
S2042:, will be described etc. according to the equivalent coefficient of each calculate node and preset equivalent coefficient threshold value
Grade coefficient is greater than or the calculate node of the equivalent coefficient threshold value is identified as the level-one calculate node.
It can determine an equivalent coefficient threshold value, other than the selection mode of step S2042, in the present embodiment for weighing
The equivalent coefficient being calculated is measured, if equivalent coefficient is more than or equal to equivalent coefficient threshold value, it is determined that the equivalent coefficient is corresponding
Calculate node be level-one calculate node.After calculating level-one calculate node, management node and level-one meter are removed in network
Other nodes except operator node are second level calculate nodes.
S205: the configuration information is sent according to the configuration information update management node, and after being updated successfully
To level-one calculate node;The level-one calculate node is chosen to obtain according to preset selection mode.
According to configuration information update management node, and configuration information is sent to level-one after being updated successfully and calculates section
Point, so that level-one calculate node can be updated according to the configuration information that management node is sent.
If but detect management node update failure, obtain management node sending fault message;According to update event
Barrier information carries out maintenance to management node and updates again;Configuration information is modified according to fault message is updated, and in management node
Modified configuration information is sent to level-one calculate node after being updated successfully.Pass through the side of the progressive update of this superior and the subordinate
Formula, can be according to the configuration information of the management node updated at first and the update of management node as a result, carrying out to configuration information
Modification is corrected, and the configuration information after modification is sent to level-one calculate node, and calculating section can be improved in this mode
The reliability that point configuration updates.
S206: the information that is updated successfully of the level-one calculate node transmission is received, and is sent to the level-one calculate node
Update the more new command of second level calculate node;The more new command is used for institute after the level-one calculate node is updated successfully
It states configuration information and is synchronized to the second level calculate node;The second level calculate node is except the management node and the level-one meter
The calculate node of operator node.
After configuration information is sent to level-one calculate node by management node, by level-one calculate node according to configuration information
Carry out configuration update.After being updated successfully, the information that is updated successfully of level-one calculate node transmission is received, and calculates and saves to level-one
Point sends the more new command for updating second level calculate node.If but in the case where updating failure there are level-one calculate node, then
Configuration information first can be sent to second level calculate node by the level-one calculate node being updated successfully, the level-one for updating failure calculates section
Point needs to stop to update and sends configuration file, to be updated troubleshooting or maintenance, after troubleshooting terminates, and weight
Configuration update newly is carried out to the level-one calculate node for occurring updating failure.
S207: receive the second level calculate node transmission is updated successfully information;The information that is updated successfully is for indicating
All calculate nodes update in network finishes.
After configuration information is synchronized to second level calculate node by level-one calculate node, second level calculate node is according to confidence
Breath is updated.After second level calculate node is updated successfully, receive the transmission of second level calculate node is updated successfully information, is connecing
It receives and is updated successfully after information, then it represents that the update of all calculate nodes finishes in network.
After second level calculate node is updated successfully, can receive the transmission of second level calculate node is updated successfully information,
Indicate that all node updates finish in network.But in practical applications, it is impossible to which all network nodes can be all updated successfully.
It is current to automatically update program not and can be carried out more for example, when in the higher situation of permission in the configuration information of some node
Newly, the password of higher permission is needed just to be able to achieve the update of configuration information;Either some network node before the update or
It breaks down in renewal process, cannot achieve configuration and update.Such case can also receive the failure log of network node,
In, it may include: the system of the record being updated successfully, the node identification for updating the calculate node to fail, node in failure log
The information such as version, the exception for updating failure error information or capturing, wherein updating failure error information can be specific to certain
The error information of a service, the exception information captured can also be the information such as unknown error.
Above scheme, by obtaining the configuration information for updating cloud computing node configuration;Obtain all calculating in network
The load information of node;According to the load information, the equivalent coefficient of each calculate node is calculated;According to the grade system
Number, chooses at least two level-one calculate nodes in all calculate nodes.According to the configuration information update management node,
And the configuration information is sent to level-one calculate node after being updated successfully;The level-one calculate node is according to preset choosing
Mode is taken to choose to obtain;The information that is updated successfully of the level-one calculate node transmission is received, and is sent out to the level-one calculate node
Send the more new command for updating second level calculate node;The more new command is for notifying the level-one calculate node described with confidence
Breath is synchronized to the second level calculate node;The second level calculate node is except the management node and the level-one calculate node
Calculate node;Receive the second level calculate node transmission is updated successfully information;The information that is updated successfully is for indicating network
In all calculate nodes update finish.By will update packet and send after management node receives and updates packet and be updated successfully
Level-one calculate node into network, and packet will be updated after level-one calculate node is updated successfully and be sent to remaining second level meter
Operator node is simultaneously updated, and improves the efficiency and success rate of nodes update.
It is a kind of schematic diagram for terminal device that the embodiment of the present invention three provides referring to Fig. 3, Fig. 3.What terminal device included
Each unit is used to execute each step in the corresponding embodiment of FIG. 1 to FIG. 2.Referring specifically to the corresponding implementation of FIG. 1 to FIG. 2
Associated description in example.For ease of description, only the parts related to this embodiment are shown.The terminal device of the present embodiment
300 include:
Acquiring unit 301, for obtaining the configuration information for updating cloud computing node configuration;
First updating unit 302 is used for according to the configuration information update management node, and by institute after being updated successfully
It states configuration information and is sent to level-one calculate node;The level-one calculate node is chosen to obtain according to preset selection mode;
Second updating unit 303, for receiving the information that is updated successfully that the level-one calculate node sends, and to described one
Grade calculate node sends the more new command for updating second level calculate node;The more new command is for notifying the level-one calculate node
The configuration information is synchronized to the second level calculate node;The second level calculate node is except the management node and described one
The calculate node of grade calculate node;
Receiving unit 304 is updated successfully information for receive that the second level calculate node sends;It is described to be updated successfully letter
Breath is for indicating that the update of all calculate nodes in network finishes.
Further, the terminal device can also include:
Information acquisition unit, for obtaining the load information of all calculate nodes in network;
Computing unit, for calculating the equivalent coefficient of each calculate node according to the load information;
Selection unit, for choosing at least two level-one meters in all calculate nodes according to the equivalent coefficient
Operator node.
Further, the computing unit may include:
According to formulaCalculate the equivalent coefficient of each calculate node;Wherein, p is used for
Indicate that preset level-one calculate node chooses ratio;li、LiIt is respectively used to indicate the actual use load of each calculate node and total
Load;I is used to indicate the node identification of each calculate node.
Further, the selection unit can also include:
First selection unit, for the sequence of the equivalent coefficient according to each calculate node from high to low, choosing
The calculate node of preset quantity is selected as level-one calculate node;Or
Second selection unit, for the equivalent coefficient and preset equivalent coefficient threshold according to each calculate node
The calculate node that the equivalent coefficient is more than or equal to the equivalent coefficient threshold value is identified as the level-one and calculates section by value
Point.
Further, first updating unit 302 may include:
Management node updating unit is used for the management node according to the configuration information update;
Information acquisition unit, if obtaining the management node for detecting that the management node updates failure and issuing
Fault message;
Node maintenance unit, for carrying out maintenance and again more to the management node according to the update fault message
Newly;
Modification information transmission unit for modifying the configuration information according to the fault message, and is saved in the management
Modified configuration information is sent to the level-one calculate node when point is updated successfully.
Above scheme, by obtaining the configuration information for updating cloud computing node configuration;Obtain all calculating in network
The load information of node;According to the load information, the equivalent coefficient of each calculate node is calculated;According to the grade system
Number, chooses at least two level-one calculate nodes in all calculate nodes.According to the configuration information update management node,
And the configuration information is sent to level-one calculate node after being updated successfully;The level-one calculate node is according to preset choosing
Mode is taken to choose to obtain;The information that is updated successfully of the level-one calculate node transmission is received, and is sent out to the level-one calculate node
Send the more new command for updating second level calculate node;The more new command is for notifying the level-one calculate node described with confidence
Breath is synchronized to the second level calculate node;The second level calculate node is except the management node and the level-one calculate node
Calculate node;Receive the second level calculate node transmission is updated successfully information;The information that is updated successfully is for indicating network
In all calculate nodes update finish.By will update packet and send after management node receives and updates packet and be updated successfully
Level-one calculate node into network, and packet will be updated after level-one calculate node is updated successfully and be sent to remaining second level meter
Operator node is simultaneously updated, and improves the efficiency and success rate of nodes update.
Fig. 4 is the schematic diagram for the terminal device that the embodiment of the present invention four provides.As shown in figure 4, the terminal of the embodiment is set
Standby 4 include: processor 40, memory 41 and are stored in the meter that can be run in the memory 41 and on the processor 40
Calculation machine program 42.The processor 40 realizes above-mentioned each cloud computing node configuration update side when executing the computer program 42
Step in method embodiment, such as step 101 shown in FIG. 1 is to 104.Alternatively, the processor 40 executes the computer journey
The function of each module/unit in above-mentioned each Installation practice, such as the function of unit 301 to 304 shown in Fig. 3 are realized when sequence 42.
Illustratively, the computer program 42 can be divided into one or more module/units, it is one or
Multiple module/units are stored in the memory 41, and are executed by the processor 40, to complete the present invention.Described one
A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for
Implementation procedure of the computer program 42 in the terminal device 4 is described.
The terminal device 4 can be the calculating such as desktop PC, notebook, palm PC and cloud server and set
It is standby.The terminal device may include, but be not limited only to, processor 40, memory 41.It will be understood by those skilled in the art that Fig. 4
The only example of terminal device 4 does not constitute the restriction to terminal device 4, may include than illustrating more or fewer portions
Part perhaps combines certain components or different components, such as the terminal device can also include input-output equipment, net
Network access device, bus etc..
Alleged processor 40 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng.
The memory 41 can be the internal storage unit of the terminal device 4, such as the hard disk or interior of terminal device 4
It deposits.The memory 41 is also possible to the External memory equipment of the terminal device 4, such as be equipped on the terminal device 4
Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge
Deposit card (Flash Card, FC) etc..Further, the memory 41 can also have been deposited both the inside including the terminal device 4
Storage unit also includes External memory equipment.The memory 41 is for storing the computer program and terminal device institute
Other programs and data needed.The memory 41 can be also used for temporarily storing the number that has exported or will export
According to.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function
Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing
The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also
To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated
Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list
Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system
The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment
The part of load may refer to the associated description of other embodiments.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or
In use, can store in a computer readable storage medium.Based on this understanding, the present invention realizes above-mentioned implementation
All or part of the process in example method, can also instruct relevant hardware to complete, the meter by computer program
Calculation machine program can be stored in a computer readable storage medium.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality
Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each
Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified
Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all
It is included within protection scope of the present invention.
Claims (10)
1. a kind of cloud computing node configures update method characterized by comprising
Obtain the configuration information for updating cloud computing node configuration;
According to the configuration information update management node, and the configuration information is sent to level-one after being updated successfully and is calculated
Node;The level-one calculate node is chosen to obtain according to preset selection mode;
Receive the level-one calculate node transmission is updated successfully information, and sends to the level-one calculate node and update second level meter
The more new command of operator node;The more new command is used to notify that the configuration information is synchronized to by the level-one calculate node described
Second level calculate node;The second level calculate node is the calculate node except the management node and the level-one calculate node;
Receive the second level calculate node transmission is updated successfully information;The information that is updated successfully is for indicating the institute in network
There is calculate node update to finish.
2. cloud computing node as described in claim 1 configures update method, which is characterized in that described according to the configuration information
Management node is updated, and the configuration information is sent to before level-one calculate node after being updated successfully, further includes:
Obtain the load information of all calculate nodes in network;
According to the load information, the equivalent coefficient of each calculate node is calculated;
According to the equivalent coefficient, at least two level-one calculate nodes are chosen in all calculate nodes.
3. cloud computing node as claimed in claim 2 configures update method, which is characterized in that described to be believed according to the load
Breath calculates the equivalent coefficient of each calculate node, comprising:
According to formulaCalculate the equivalent coefficient of each calculate node;Wherein, p is for indicating
Preset level-one calculate node chooses ratio;li、LiIt is respectively used to indicate the actual use load of each calculate node and always bear
It carries;I is used to indicate the node identification of each calculate node.
4. cloud computing node as claimed in claim 2 configures update method, which is characterized in that described according to the grade system
Number, chooses at least two level-one calculate nodes in all calculate nodes, comprising:
According to the equivalent coefficient sequence from high to low of each calculate node, the calculate node of preset quantity is selected to make
For level-one calculate node;Or
According to the equivalent coefficient of each calculate node and preset equivalent coefficient threshold value, the equivalent coefficient is greater than
Or the level-one calculate node is identified as equal to the calculate node of the equivalent coefficient threshold value.
5. cloud computing node according to any one of claims 1-4 configures update method, which is characterized in that described according to
Configuration information update management node, and the configuration information is sent to level-one calculate node after being updated successfully, comprising:
According to management node described in the configuration information update;
If detecting, the management node updates failure, obtains the fault message that the management node issues;
Maintenance is carried out to the management node according to the update fault message and is updated again;
The configuration information is modified according to the fault message, and when the management node is updated successfully by modified configuration
Information is sent to the level-one calculate node.
6. a kind of terminal device, which is characterized in that including memory and processor, being stored in the memory can be described
The computer program run on processor, which is characterized in that when the processor executes the computer program, realize following step
It is rapid:
Obtain the configuration information for updating cloud computing node configuration;
According to the configuration information update management node, and the configuration information is sent to level-one after being updated successfully and is calculated
Node;The level-one calculate node is chosen to obtain according to preset selection mode;
Receive the level-one calculate node transmission is updated successfully information, and sends to the level-one calculate node and update second level meter
The more new command of operator node;The more new command is used to notify that the configuration information is synchronized to by the level-one calculate node described
Second level calculate node;The second level calculate node is the calculate node except the management node and the level-one calculate node;
Receive the second level calculate node transmission is updated successfully information;The information that is updated successfully is for indicating the institute in network
There is calculate node update to finish.
7. terminal device as claimed in claim 6, which is characterized in that it is described according to the configuration information update management node,
And the configuration information is sent to before level-one calculate node after being updated successfully, further includes:
Obtain the load information of all calculate nodes in network;
According to the load information, the equivalent coefficient of each calculate node is calculated;
According to the equivalent coefficient, at least two level-one calculate nodes are chosen in all calculate nodes.
8. terminal device as claimed in claim 7, which is characterized in that it is described according to the equivalent coefficient, in all meters
At least two level-one calculate nodes are chosen in operator node, comprising:
According to the equivalent coefficient sequence from high to low of each calculate node, the calculate node of preset quantity is selected to make
For level-one calculate node;Or
According to the equivalent coefficient of each calculate node and preset equivalent coefficient threshold value, the equivalent coefficient is greater than
Or the level-one calculate node is identified as equal to the calculate node of the equivalent coefficient threshold value.
9. a kind of terminal device characterized by comprising
Acquiring unit, for obtaining the configuration information for updating cloud computing node configuration;
First updating unit is used for according to the configuration information update management node, and by the configuration after being updated successfully
Information is sent to level-one calculate node;The level-one calculate node is chosen to obtain according to preset selection mode;
Second updating unit is updated successfully information for receive that the level-one calculate node sends, and calculates to the level-one
Node sends the more new command for updating second level calculate node;The more new command is for notifying the level-one calculate node described
Configuration information is synchronized to the second level calculate node;The second level calculate node is except the management node and the level-one calculate
The calculate node of node;
Receiving unit is updated successfully information for receive that the second level calculate node sends;The information that is updated successfully is used for
Indicate that all calculate nodes update in network finishes.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists
In when the computer program is executed by processor the step of any one of such as claim 1 to 5 of realization the method.
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 true CN109873714A (en) | 2019-06-11 |
CN109873714B 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) |
Cited By (5)
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 |
CN113127030A (en) * | 2021-03-18 | 2021-07-16 | 山东英信计算机技术有限公司 | Multi-node server BMC loading method, system, device and storage medium |
US20210344556A1 (en) * | 2020-12-21 | 2021-11-04 | Beijing Baidu Netcom Science And Technology Co., Ltd. | Method and apparatus for updating an edge node, device, medium and program product |
CN115314504A (en) * | 2022-08-08 | 2022-11-08 | 重庆物奇科技有限公司 | Data transmission method and firmware upgrading method |
JP2022170887A (en) * | 2021-04-30 | 2022-11-11 | 株式会社日立製作所 | Update device, update method, and program |
Citations (6)
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 |
-
2019
- 2019-01-04 CN CN201910007891.6A patent/CN109873714B/en active Active
Patent Citations (6)
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 |
Cited By (7)
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 |
US20210344556A1 (en) * | 2020-12-21 | 2021-11-04 | Beijing Baidu Netcom Science And Technology Co., Ltd. | Method and apparatus for updating an edge node, device, medium and program product |
US11824714B2 (en) * | 2020-12-21 | 2023-11-21 | Beijing Baidu Netcom Science And Technology Co., Ltd. | Method and apparatus for updating an edge node, device, medium and program product |
CN113127030A (en) * | 2021-03-18 | 2021-07-16 | 山东英信计算机技术有限公司 | Multi-node server BMC loading method, system, device and storage medium |
JP2022170887A (en) * | 2021-04-30 | 2022-11-11 | 株式会社日立製作所 | Update device, update method, and program |
JP7240439B2 (en) | 2021-04-30 | 2023-03-15 | 株式会社日立製作所 | Update device, update method and program |
CN115314504A (en) * | 2022-08-08 | 2022-11-08 | 重庆物奇科技有限公司 | Data transmission method and firmware upgrading method |
Also Published As
Publication number | Publication date |
---|---|
CN109873714B (en) | 2023-12-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109873714A (en) | Cloud computing node configures update method and terminal device | |
CN112866333B (en) | Cloud-native-based micro-service scene optimization method, system, device and medium | |
US20200081731A1 (en) | Method, system and apparatus for creating virtual machine | |
CN106385329B (en) | Processing method, device and the equipment of resource pool | |
WO2021190360A1 (en) | Virtualized resource scheduling system and method in vehicle diagnostic cloud platform | |
CN105357296A (en) | Elastic caching system based on Docker cloud platform | |
CN103607424B (en) | Server connection method and server system | |
CN105049268A (en) | Distributed computing resource allocation system and task processing method | |
CN109218100A (en) | Distributed objects storage cluster and its request responding method, system and storage medium | |
CN108351806A (en) | Database trigger of the distribution based on stream | |
CN103399781B (en) | Cloud Server and virtual machine management method thereof | |
CN108667867A (en) | Date storage method and device | |
CN111124277A (en) | Deep learning data set caching method, system, terminal and storage medium | |
US11379264B2 (en) | Advanced cloud architectures for power outage mitigation and flexible resource use | |
CN104092756A (en) | Cloud storage system resource dynamic allocation method based on DHT mechanism | |
CN107645410A (en) | A kind of virtual machine management system and method based on OpenStack cloud platforms | |
CN106686140A (en) | Network virtualization storage method, equipment and system | |
CN109739640A (en) | A kind of container resource management system based on Shen prestige framework | |
US12026536B2 (en) | Rightsizing virtual machine deployments in a cloud computing environment | |
CN109614227A (en) | Task resource concocting method, device, electronic equipment and computer-readable medium | |
CN102929769A (en) | Virtual machine internal-data acquisition method based on agency service | |
US10891148B2 (en) | Methods and systems for identifying application components in distributed computing facilities | |
CN108924249A (en) | Method and device for deploying OpenStack platform | |
CN107343023A (en) | Resource allocation methods, device and electronic equipment in a kind of Mesos management cluster | |
US20170373937A1 (en) | Method and subsystem that collects, stores, and monitors population metric data within a computer system |
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 |