CN103475521A - Method and device for deploying server - Google Patents

Method and device for deploying server Download PDF

Info

Publication number
CN103475521A
CN103475521A CN2013104101454A CN201310410145A CN103475521A CN 103475521 A CN103475521 A CN 103475521A CN 2013104101454 A CN2013104101454 A CN 2013104101454A CN 201310410145 A CN201310410145 A CN 201310410145A CN 103475521 A CN103475521 A CN 103475521A
Authority
CN
China
Prior art keywords
deployment
node
rule
regular
message
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
Application number
CN2013104101454A
Other languages
Chinese (zh)
Other versions
CN103475521B (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.)
XFusion Digital Technologies Co Ltd
Original Assignee
Hangzhou Huawei Digital Technologies 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 Hangzhou Huawei Digital Technologies Co Ltd filed Critical Hangzhou Huawei Digital Technologies Co Ltd
Priority to CN201310410145.4A priority Critical patent/CN103475521B/en
Publication of CN103475521A publication Critical patent/CN103475521A/en
Application granted granted Critical
Publication of CN103475521B publication Critical patent/CN103475521B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a method and device for deploying a server, and relates to the technical field of controlling. The deployment of the servers of different varieties can be supported, and the application range is wide. The method is applied to a server system, and the server system comprises a computational node, a storage node and an I/O node. The method comprises the steps that a deployment rule is acquired, first target nodes matched with the deployment rule are determined in the nodes included in the server system, and the first target nodes comprise a target computational node, a target storage node and a target I/O node; deployment is carried out on the first target node according to the deployment rule.

Description

A kind of method and apparatus of deployment server
Technical field
The present invention relates to the control technology field, relate in particular to a kind of method and apparatus of deployment server.
Background technology
In data center's cloud platform management, the method of traditional deployment server is: the user is according to business demand, configure a plurality of different configuration files, script, by these configuration files, script, server is disposed, thereby make it reach specific business demand.The method of the deployment server that this is traditional is strongly professional, complicated operation, and the user often needs a large amount of time and efforts just can complete the deployment to a station server.
For the shortcoming of the method for traditional deployment server, at present, the method that can carry out unified management by the server to one species is disposed server, and wherein, the server of one species refers to the server of configuration identical type.But different business demands requires server to have different configurations, that is to say and need to use different types of server just can meet different business demands, cause the scope of application of this dispositions method little.
Summary of the invention
Embodiments of the invention provide a kind of method and apparatus of deployment server, can support the deployment of different types of server, applied widely.
For achieving the above object, embodiments of the invention adopt following technical scheme:
First aspect, provide a kind of method of deployment server, is applied to server system, and described server system comprises computing node, memory node and I/O node, and described method comprises:
Obtain and dispose rule;
In each node comprised at described server system, determine and the first object node of described deployment rule match, described first object node comprises target computing node, target memory node and target I/O node;
According to described deployment rule, described first object node is disposed.
In conjunction with first aspect, in the first, in possible implementation, in described each node comprised at described server system, determine and the first object node of described deployment rule match, comprising:
In default deployment rule base, determine that meeting the regular target of described deployment disposes rule;
Scan each node in described server system, obtain disposing with described target the enabled node of node matching corresponding to rule;
Determine the first object node with described deployment rule match in described enabled node.
The possible implementation in conjunction with the first of first aspect, at the second, in possible implementation, described enabled node comprises available computing node, describedly in described enabled node, determines and the first object node of described deployment rule match, comprising:
With the first prompting message prompting user; Described the first prompting message comprises the sign of described available computing node, in order to point out the user, selects the target computing node with described deployment rule match from described available computing node;
Obtain the described target computing node of user's indication.
In conjunction with first aspect, at the third, in possible implementation, described obtaining disposed rule, comprising:
Dispose regular message, m>1 for generation m that obtains user's indication;
According to described m the message that deployment is regular, the regular masterplate of generation deployment of generating;
Generate m described deployment rule according to the regular masterplate of described deployment.
In conjunction with the third possible implementation of first aspect, in the 4th kind of possible implementation, there is incidence relation in the regular masterplate of described deployment and m described deployment rule, and described method also comprises:
Obtain the renewal of user indication and dispose regular message, described renewal is disposed regular message and is comprised upgating object and fresh content more, and described upgating object is that m the n in a described deployment rule described deployment is regular, 1≤n<m;
Remove n the described incidence relation of disposing rule and the regular masterplate of described deployment according to described upgating object;
According to described renewal content update n described deployment rule.
In conjunction with the third possible implementation of first aspect, in the 5th kind of possible implementation, there is incidence relation in the regular masterplate of described deployment and m described deployment rule, and described method also comprises:
Obtain the renewal of user indication and dispose regular message, described renewal is disposed regular message and is comprised upgating object and fresh content more, and described upgating object is that m described deployment is regular;
According to described upgating object, according to the regular masterplate of the described deployment of described renewal content update;
Upgrade m described deployment rule according to the rule of the deployment after described renewal masterplate.
In conjunction with the first of first aspect, first aspect possible five kinds of possible implementations of implementation to any, in the 6th kind of possible implementation, described method also comprises:
Obtain the actual deployment rule;
When described actual deployment rule is not mated with described deployment rule, with the second prompting message prompting user;
Obtain the Indication message that the user sends according to described the second prompting message;
Respond described Indication message.
In conjunction with the 6th kind of possible implementation of first aspect, in the 7th kind of possible implementation, described the second Indication message is to comprise the regular message of amended described deployment; The described Indication message of described response comprises:
In each node comprised at described server system, determine the second destination node with described amended described deployment rule match;
According to described amended described deployment rule, described the second destination node is disposed;
Perhaps, described the second Indication message is for deleting the regular message of described deployment; The described Indication message of described response comprises:
According to the described deployment of described deletion, regular message is deleted described deployment rule.
Second aspect, provide a kind of device of deployment server, is applied to server system, and described server system comprises computing node, memory node and I/O node, and described device comprises:
Acquiring unit, dispose rule for obtaining;
Determining unit for each node comprised at described server system, determines and the first object node of described deployment rule match that described first object node comprises target computing node, target memory node and target I/O node;
Deployment unit, for being disposed described first object node according to described deployment rule.
In conjunction with second aspect, in the first in possible implementation, described determining unit specifically for,
In default deployment rule base, determine that meeting the regular target of described deployment disposes rule;
Scan each node in described server system, obtain disposing with described target the enabled node of node matching corresponding to rule;
Determine the first object node with described deployment rule match in described enabled node.
The possible implementation in conjunction with the first of second aspect, at the second, in possible implementation, described enabled node comprises available computing node, described determining unit specifically for,
With the first prompting message prompting user; Described the first prompting message comprises the sign of described available computing node, in order to point out the user, selects the target computing node with described deployment rule match from described available computing node;
Obtain the described target computing node of user's indication.
In conjunction with second aspect, at the third in possible implementation, described acquiring unit specifically for,
Dispose regular message, m>1 for generation m that obtains user's indication;
According to described m the message that deployment is regular, the regular masterplate of generation deployment of generating;
Generate m described deployment rule according to the regular masterplate of described deployment.
In conjunction with the third possible implementation of second aspect, in the 4th kind of possible implementation, there is incidence relation in the regular masterplate of described deployment and m described deployment rule;
Described acquiring unit also for, obtain the renewal of user indication and dispose regular message, described renewal is disposed regular message and is comprised upgating object and fresh content more, described upgating object is that m the n in a described deployment rule described deployment is regular, 1≤n<m;
Described device also comprises:
Remove unit, for remove the individual described incidence relation regular and the regular masterplate of described deployment of disposing of n according to described upgating object;
Updating block, for regular according to described renewal content update n described deployment.
In conjunction with the third possible implementation of second aspect, in the 5th kind of possible implementation, there is incidence relation in the regular masterplate of described deployment and m described deployment rule;
Described acquiring unit also for, obtain the renewal of user indication and dispose regular message, described renewal is disposed regular message and is comprised upgating object and fresh content more, described upgating object is that m described deployment is regular;
Described device also comprises:
Updating block, for according to described upgating object, according to the regular masterplate of the described deployment of described renewal content update; Upgrade m described deployment rule according to the rule of the deployment after described renewal masterplate.
In conjunction with the first of second aspect, second aspect possible five kinds of possible implementations of implementation to any, in the 6th kind of possible implementation, described acquiring unit also for, obtain the actual deployment rule;
Described device also comprises: Tip element, for when described actual deployment rule is not mated with described deployment rule, with the second prompting message prompting user;
Described acquiring unit also for, obtain the Indication message that the user sends according to described the second prompting message;
Described device also comprises: response unit, and for responding described Indication message.
In conjunction with the 6th kind of possible implementation of second aspect, in the 7th kind of possible implementation, described the second Indication message is to comprise the regular message of amended described deployment; Described response unit specifically for,
In each node comprised at described server system, determine the second destination node with described amended described deployment rule match;
According to described amended described deployment rule, described the second destination node is disposed;
Perhaps, described the second Indication message is for deleting the regular message of described deployment; Described response unit specifically for, it is regular that according to the described deployment of described deletion, regular message is deleted described deployments.
The method and apparatus of the deployment server that the embodiment of the present invention provides, be applied to server system, server system comprises computing node, memory node and I/O node, dispose rule by obtaining, and in each node comprised at server system, determine and the first object node of disposing rule match, this first object node comprises target computing node, target memory node and target I/O node; According to this deployment rule, the first object node is disposed.This programme, by selecting the first object node, forms the user by the first object node of selection and realizes the needed server of certain business, by the deployment to the first object node, realizes the deployment to this server.Like this, when the kind of the server that makes required deployment due to the business demand difference is different, can form needed server by selecting different first object nodes, thereby realize the deployment to this server, that is to say, this programme can be supported the deployment of different types of server, thereby the wider scope of application is arranged.
The accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, below will the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The schematic flow sheet of the method for a kind of deployment server that Fig. 1 provides for the embodiment of the present invention;
The schematic flow sheet of the method for the another kind of deployment server that Fig. 2 provides for the embodiment of the present invention;
The schematic flow sheet of the method for the another kind of deployment server that Fig. 3 provides for the embodiment of the present invention;
The schematic flow sheet of the method for the deployment rule that a kind of monitor server that Fig. 4 provides for the embodiment of the present invention is corresponding;
The structural representation of the device of a kind of deployment server that Fig. 5 provides for the embodiment of the present invention;
The structural representation of the device of the another kind of deployment server that Fig. 6 provides for the embodiment of the present invention;
The structural representation of the device of the another kind of deployment server that Fig. 7 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making under the creative work prerequisite the every other embodiment obtained, belong to the scope of protection of the invention.
Embodiment mono-
Referring to Fig. 1, the method for a kind of deployment server provided for the embodiment of the present invention, be applied to server system, and described server system comprises computing node, memory node and I/O node, and the method comprises:
101: obtain and dispose rule.
Wherein, the embodiment of the present invention can be applied in server system, and this server system consists of computing node, memory node and I/O node.Several computing nodes, memory node and I/O node can form a server with complete function.The executive agent of this method can be for carrying out the administration module (also can be called control module, controller etc.) of unified management to each node in server system.
Disposing rule can configure according to business demand for the user.Specifically can comprise: installation procedure, user are configuration realized the needed server of certain business etc., wherein, the user is that the configuration that realizes the needed server of certain business can comprise: the size of CPU, the size of hard disk, bandwidth etc., the size of CPU can corresponding computing node, the size of hard disk can the corresponding stored node, and bandwidth can corresponding I/O node.
102: in each node comprised at described server system, determine and the first object node of described deployment rule match, described first object node comprises target computing node, target memory node and target I/O node.
Wherein, each node refers to, each computing node that server system comprises, each memory node and each I/O node.
Exemplary, if dispose the size of the hard disk comprised in rule, be 20G, with the first object node of this deployment rule match, can be the memory node that is 20G of the capacity in this server system.
Optionally, step 102 can comprise:
A), in default deployment rule base, determine that meeting the regular target of described deployment disposes rule;
B) scan each node in described server system, obtain disposing with described target the enabled node of node matching corresponding to rule;
C) determine the first object node with described deployment rule match in described enabled node.
Exemplary, node in each node that enabled node can comprise for server system, that be not used; Specifically can comprise: available computing node, available memory node and available I/O node.
Further alternative, step C) can comprise:
With the first prompting message prompting user; Described the first prompting message comprises the sign of described available computing node, in order to point out the user, selects the target computing node with described deployment rule match from described available computing node;
Obtain the described target computing node of user's indication.
It should be noted that, during actual the realization, step C) can also comprise: server system is determined the target computing node automatically in enabled node.
103: according to described deployment rule, described first object node is disposed.
Step 103 is the deployment to hardware, to realize certain business demand of user.
It should be noted that, the server in the embodiment of the present invention is according to user's Location of requirement, and server is disposed and can be disposed for each node to forming this server.Concrete, first object node definite in step 102 is formed to a server, this server refers to that the user, for realizing the needed server of certain business, disposes to be specifically as follows to this server the first object node is disposed.
Optionally, in one embodiment of the invention, step 101 can comprise:
1) dispose regular message, m>1 for generation m that, obtains user's indication;
2), according to described m the message that deployment is regular, the regular masterplate of generation deployment of generating;
3), according to the regular masterplate of described deployment, generate m described deployment rule.
Further alternative, there is incidence relation in the regular masterplate of described deployment and m described deployment rule, and after step 3), described method can also comprise: upgrade and dispose rule, specifically include but not limited to following two kinds of modes:
Mode one:
Obtain the renewal of user indication and dispose regular message, described renewal is disposed regular message and is comprised upgating object and fresh content more, and described upgating object is that m the n in a described deployment rule described deployment is regular, 1≤n<m;
Remove n the described incidence relation of disposing rule and the regular masterplate of described deployment according to described upgating object;
According to described renewal content update n described deployment rule.
Mode two:
Obtain the renewal of user indication and dispose regular message, described renewal is disposed regular message and is comprised upgating object and fresh content more, and described upgating object is that m described deployment is regular;
According to described upgating object, according to the regular masterplate of the described deployment of described renewal content update;
Upgrade m described deployment rule according to the rule of the deployment after described renewal masterplate.
Optionally, after step 103, described method can also comprise whether the actual deployment rule of monitor server and deployment rule mate, and prompting user when not mating specifically comprises:
I), obtain the actual deployment rule;
Ii), when described actual deployment rule is not mated with described deployment rule, with the second prompting message prompting user;
Iii), obtain the Indication message that the user sends according to described the second prompting message;
Iv), respond described Indication message.
Exemplary property, in this optional mode, can comprise following two kinds of situations:
Situation 1: described the second Indication message is to comprise the regular message of amended described deployment; Iv) specifically can comprise:
In each node comprised at described server system, determine the second destination node with described amended described deployment rule match;
According to described amended described deployment rule, described the second destination node is disposed;
Situation 2: described the second Indication message is for deleting the regular message of described deployment; Iv) specifically can comprise:
According to the described deployment of described deletion, regular message is deleted described deployment rule.
Further, if there are incidence relation in the regular masterplate of described deployment and described deployment rule, described delete described deployment rule according to the regular message of the described deployment of described deletion before, described method also comprises:
Remove the described incidence relation of disposing rule and the regular masterplate of described deployment.
The method of the deployment server that the embodiment of the present invention provides, be applied to server system, server system comprises computing node, memory node and I/O node, dispose rule by obtaining, and in each node comprised at server system, determine and the first object node of disposing rule match, this first object node comprises target computing node, target memory node and target I/O node; According to this deployment rule, the first object node is disposed.This programme, by selecting the first object node, forms the user by the first object node of selection and realizes the needed server of certain business, by the deployment to the first object node, realizes the deployment to this server.Like this, when the kind of the server that makes required deployment due to the business demand difference is different, can form needed server by selecting different first object nodes, thereby realize the deployment to this server, that is to say, this programme can be supported the deployment of different types of server, thereby the wider scope of application is arranged.
Embodiment bis-
The present embodiment specifically describes and how the server of a server or a plurality of identical type is disposed.
Referring to Fig. 2, the method for a kind of deployment server provided for the embodiment of the present invention, be applied to server system, and server system comprises computing node, memory node and I/O node, and the method comprises:
201: dispose regular message, m >=1 for generation m that obtains user's indication.
Wherein, each disposes the corresponding server of rule.
When m=1, the present embodiment is specially to be disposed a server; When m>1, the present embodiment is specially to be disposed the server of a plurality of identical type.
202: judge whether m is greater than 1.
If perform step 203; If not, perform step 205.
203: dispose regular message according to generating m, generate and dispose regular masterplate.
Wherein, this is disposed regular masterplate and is mainly used in m the server that management is disposed according to m deployment rule, and specifically how managing can be including but not limited to the content shown in following embodiment tri-and embodiment tetra-.
204: according to disposing regular masterplate, generate m deployment rule.
It should be noted that equal acquiescence in the present embodiment and following embodiment tri-and embodiment tetra-: after carrying out 204 steps, dispose regular masterplate and have incidence relation with this m deployment rule.
Perform step 206 after step 204.
205: dispose regular message according to generating m, generate 1 and dispose rule.
Perform step 206 after step 205.
206: in default deployment rule base, determine that meeting this m disposes regular target deployment rule;
Wherein, when m is greater than 1, because m deployment rule is all identical, therefore, in this step 206, can be specially: in default deployment rule base, determine that meeting 1 disposes regular target deployment rule.Wherein, the deployment rule of disposing in rule base can set in advance in server system, and these dispose rule can be for rule of thumb or project demands is that arrange, deployment rule more commonly used.
Exemplary, if disposing the size of regular desired hard disk is 19.8G, disposing the memory node that the capacity comprised in rule base is greater than or equal to 19.8G is 20G memory node, 30G memory node, and meeting this, to dispose regular target memory node be 20G memory node, 30G memory node.In like manner, can class release the definite computing node of the regular requirement of deployment and method of I/O node of meeting, repeat no more herein.
207: each node in the scanning server system obtains disposing with target the enabled node of node matching corresponding to rule.
Wherein, enabled node refers to, node in each node of server system, that be not used; Specifically can comprise: available computing node, available memory node and available I/O node.
208: server system is automatically determined and the first object node of disposing rule match in enabled node.
Concrete, server system is automatically determined the target computing node in available computing node, automatically determines the target memory node in available memory node, automatically determines target I/O node in available I/O node.
Exemplary, if available memory node comprises 5, and dispose regular desired memory node, be 3, server system can select wherein 3 as the target memory node automatically.
209: according to this deployment rule, the first object node is disposed.
Optionally, determine that in available computing node the target computing node can also comprise:
With the first prompting message prompting user, this first prompting message comprises the sign of available computing node, in order to point out the user select target computing node from available computing node;
Obtain the described target computing node of user's indication.
The method of the deployment server that the embodiment of the present invention provides, be applied to server system, when rule is disposed in 1 of the generation that gets user's indication, generates 1 and dispose rule; When rule is disposed at least 2 of the generations that gets user indication, generate and dispose regular masterplate, then dispose regular masterplate according to this and generate at least 2 and dispose rule; By default deployment rule base, determine and the first object node of disposing rule match; And then according to this deployment rule, the first object node is disposed.This programme, by selecting the first object node, forms server by the first object node of selecting, and by the deployment to the first object node, realizes the deployment to server.Like this, when the kind of the server that makes required deployment due to the business demand difference is different, can form needed server by selecting different first object nodes, thereby realize the deployment to this server, that is to say, this programme can be supported the deployment of different types of server, thereby the wider scope of application is arranged.In addition, when this programme is disposed rule by least 2 of the generations getting user indication, generate and dispose regular masterplate, will dispose regular masterplate and these at least 2 deployment rules carry out associated, for these at least 2 deployment rules of unified management are provided convenience.
Embodiment tri-
The present embodiment specifically describes after the server to a plurality of identical type is disposed, how to realize that the deployment rule corresponding to one or more server upgraded, wherein, the server of a plurality of identical type being disposed can be referring to above-described embodiment two.
Referring to Fig. 3, the method for a kind of deployment server provided for the embodiment of the present invention comprises:
301: regular message is disposed in the renewal of obtaining user indication, and this message comprises upgating object and fresh content more; Upgating object is: m n of disposing in rule disposes rule, 1≤n≤m.
Wherein, upgating object can be upgraded for to n, disposing one or more in regular desired computing node, memory node or I/O node.
302: judge whether n equals m.
If not, perform step 303; If perform step 305.
303: remove n according to upgating object and dispose rule and the incidence relation of disposing regular masterplate.
304: according to upgrading n of content update, dispose rule.
Perform step 307 after step 304.
305: according to upgrading content update, dispose regular masterplate.
306: upgrade n according to the deployment rule masterplate after upgrading and dispose rule, dispose rule for the n after being upgraded.
307: according to n after upgrading dispose rule determine with upgrade after the 3rd destination node of n deployment rule match.
Wherein, the process of determining the 3rd destination node can, with reference to above-described embodiment one and embodiment bis-, repeat no more herein.
It should be noted that, for embodiment mono-and embodiment tetra-in the second destination node distinguished, in the present embodiment will with upgrade after the destination node of n deployment rule match be called the 3rd destination node.
308: dispose rule according to n after upgrading the 3rd destination node is disposed.
The method of the deployment server that the embodiment of the present invention provides, in the method according in embodiment bis-, dispose on the basis of server of a plurality of identical type, if deployment rule that need to be corresponding to part server is wherein upgraded, remove deployment rule and the incidence relation of disposing regular masterplate that this part server is corresponding, according to upgrading deployment rule corresponding to this part server of content update; If deployment rule that need to be corresponding to whole servers is upgraded, according to upgrading content update, dispose regular masterplate, generate the deployment rule after upgrading according to the deployment rule masterplate after upgrading; Finally the deployment rule based on after upgrading is disposed server according to the method in embodiment bis-.This programme realized in the situation that the batch deployment server upgrades separately or deployment rule corresponding to batch updating server, to the unified management of the server of a plurality of identical type, way to manage flexibly, convenient.
Embodiment tetra-
The present embodiment specifically describes after the server to a plurality of identical type is disposed, and whether the actual deployment of monitor server rule mates with the deployment rule, and points out the user when not mating.Wherein, the server of a plurality of identical type being carried out to dispositions method can be referring to above-described embodiment two.
Referring to Fig. 4, the method for the deployment rule that a kind of monitor server provided for the embodiment of the present invention is corresponding comprises:
401: obtain the actual deployment rule of i server, the initial value of i is 1,1≤i≤m, m>1.
Exemplary, corresponding one of each server is disposed rule, and i corresponding i of server disposed rule.Server system can periodically be monitored or the actual deployment rule of each server of Real-Time Monitoring.
402: judge whether the actual deployment rule of i server and deployment rule mate.
Wherein, this deployment rule refers to the deployment rule of user's indication of obtaining in step 201 in embodiment bis-, can be m any one of disposing in rule.
If not, perform step 403; If perform step 411.
403: with the second prompting message prompting user.
After step 403, perform step 404 or step 407.
404: that obtains that the user sends according to the second prompting message comprises the regular message of amended deployment.
405: remove i the deployment rule and the incidence relation of disposing regular masterplate that server is corresponding.
It should be noted that, because the amended rule of disposing is different from the deployment rule of disposing regular masterplate generation, so this amended deployment rule can not keep incidence relation with the regular masterplate of deployment again.
406: in each node comprised at server system, determine the second destination node with amended deployment rule match.
407: according to amended deployment rule, the second destination node is disposed.
Wherein, the second destination node is i the destination node that server is corresponding, that is to say, this i server consists of the second destination node.
After step 407, perform step 411.
408: obtain the deletion that the user sends according to the second prompting message and dispose regular message.
409: remove i the deployment rule and the incidence relation of disposing regular masterplate that server is corresponding.
410: according to deleting the regular message of deployment, delete i the deployment rule that server is corresponding.
411: judge whether i equates with m.
If not, perform step 412; If finish.
411:i is from adding 1.
After step 412, return to step 401.
The method of the deployment rule that the monitor server that the embodiment of the present invention provides is corresponding, realized in the situation that actual deployment rule corresponding to batch deployment server each server of monitoring, prompting user when the deployment rule when actual deployment rule corresponding to server and batch deployment server is inconsistent, make the user do corresponding remedial measure according to this information, guaranteed that the actual deployment rule that the server in the server system is corresponding is the consistency that realizes the deployment rule that the needed server of certain business is corresponding (the deployment rule during batch deployment server) with the user, improved the overall performance of server system.
Embodiment five
Referring to Fig. 5, the device of a kind of deployment server provided for the embodiment of the present invention, be applied to server system, in order to the method for the deployment server shown in execution graph 1, described server system comprises computing node, memory node and I/O node, and described device comprises:
Acquiring unit 51, dispose rule for obtaining;
Determining unit 52 for each node comprised at described server system, determines and the first object node of described deployment rule match that described first object node comprises target computing node, target memory node and target I/O node;
Deployment unit 53, for being disposed described first object node according to described deployment rule.
Optionally, described determining unit 52 specifically for,
In default deployment rule base, determine that meeting the regular target of described deployment disposes rule;
Scan each node in described server system, obtain disposing with described target the enabled node of node matching corresponding to rule;
Determine the first object node with described deployment rule match in described enabled node.
Optionally, described enabled node comprises available computing node, described determining unit 52 specifically for,
With the first prompting message prompting user; Described the first prompting message comprises the sign of described available computing node, in order to point out the user, selects the target computing node with described deployment rule match from described available computing node;
Obtain the described target computing node of user's indication.
Optionally, described acquiring unit 51 specifically for,
Dispose regular message, m>1 for generation m that obtains user's indication;
According to described m the message that deployment is regular, the regular masterplate of generation deployment of generating;
Generate m described deployment rule according to the regular masterplate of described deployment.
Optionally, there is incidence relation in the regular masterplate of described deployment and m described deployment rule;
Described acquiring unit 51 also for, obtain the renewal of user indication and dispose regular message, described renewal is disposed regular message and is comprised upgating object and fresh content more, described upgating object is that m the n in a described deployment rule described deployment is regular, 1≤n<m;
Referring to Fig. 6, described device also comprises:
Remove unit 54, for remove the individual described incidence relation regular and the regular masterplate of described deployment of disposing of n according to described upgating object;
Updating block 55, for regular according to described renewal content update n described deployment.
Optionally, there is incidence relation in the regular masterplate of described deployment and m described deployment rule;
Described acquiring unit 51 also for, obtain the renewal of user indication and dispose regular message, described renewal is disposed regular message and is comprised upgating object and fresh content more, described upgating object is that m described deployment is regular;
Referring to Fig. 6, described device also comprises:
Updating block 55, for according to described upgating object, according to the regular masterplate of the described deployment of described renewal content update; Upgrade m described deployment rule according to the rule of the deployment after described renewal masterplate.
Optionally, described acquiring unit 51 also for, obtain the actual deployment rule;
Referring to Fig. 6, described device also comprises: Tip element 56, for when described actual deployment rule is not mated with described deployment rule, with the second prompting message prompting user;
Described acquiring unit 51 also for, obtain the Indication message that the user sends according to described the second prompting message;
Described device also comprises: response unit 57, and for responding described Indication message.
Optionally, described the second Indication message is to comprise the regular message of amended described deployment; Described response unit 57 specifically for,
In each node comprised at described server system, determine the second destination node with described amended described deployment rule match;
According to described amended described deployment rule, described the second destination node is disposed;
Perhaps, described the second Indication message is for deleting the regular message of described deployment; Described response unit specifically for, it is regular that according to the described deployment of described deletion, regular message is deleted described deployments.
The device of the deployment server that the embodiment of the present invention provides, be applied to server system, server system comprises computing node, memory node and I/O node, dispose rule by obtaining, and in each node comprised at server system, determine and the first object node of disposing rule match, this first object node comprises target computing node, target memory node and target I/O node; According to this deployment rule, the first object node is disposed.This programme, by selecting the first object node, forms the user by the first object node of selection and realizes the needed server of certain business, by the deployment to the first object node, realizes the deployment to this server.Like this, when the kind of the server that makes required deployment due to the business demand difference is different, can form needed server by selecting different first object nodes, thereby realize the deployment to this server, that is to say, this programme can be supported the deployment of different types of server, thereby the wider scope of application is arranged.
Embodiment six
Referring to Fig. 7, the device of a kind of deployment server provided for the embodiment of the present invention, be applied to server system, method in order to the deployment server shown in execution graph 1, described server system comprises computing node, memory node and I/O node, described device comprises: memory 71 and processor 72, wherein
Memory 71, for storing one group of code, this code is carried out following action for control processor 72:
Obtain and dispose rule;
In each node comprised at described server system, determine and the first object node of described deployment rule match, described first object node comprises target computing node, target memory node and target I/O node;
According to described deployment rule, described first object node is disposed.
Optionally, processor 72 specifically for,
In default deployment rule base, determine that meeting the regular target of described deployment disposes rule;
Scan each node in described server system, obtain disposing with described target the enabled node of node matching corresponding to rule;
Determine the first object node with described deployment rule match in described enabled node.
Optionally, described enabled node comprises available computing node, processor 72 specifically for,
With the first prompting message prompting user; Described the first prompting message comprises the sign of described available computing node, in order to point out the user, selects the target computing node with described deployment rule match from described available computing node;
Obtain the described target computing node of user's indication.
Optionally, processor 72 specifically for,
Dispose regular message, m>1 for generation m that obtains user's indication;
According to described m the message that deployment is regular, the regular masterplate of generation deployment of generating;
Generate m described deployment rule according to the regular masterplate of described deployment.
Optionally, there is incidence relation in the regular masterplate of described deployment and m described deployment rule, processor 72 also for,
Obtain the renewal of user indication and dispose regular message, described renewal is disposed regular message and is comprised upgating object and fresh content more, and described upgating object is that m the n in a described deployment rule described deployment is regular, 1≤n<m;
Remove n the described incidence relation of disposing rule and the regular masterplate of described deployment according to described upgating object;
According to described renewal content update n described deployment rule.
Optionally, there is incidence relation in the regular masterplate of described deployment and m described deployment rule, processor 72 also for,
Obtain the renewal of user indication and dispose regular message, described renewal is disposed regular message and is comprised upgating object and fresh content more, and described upgating object is that m described deployment is regular;
According to described upgating object, according to the regular masterplate of the described deployment of described renewal content update;
Upgrade m described deployment rule according to the rule of the deployment after described renewal masterplate.
Optionally, processor 72 also for, obtain the actual deployment rule;
When described actual deployment rule is not mated with described deployment rule, with the second prompting message prompting user;
Obtain the Indication message that the user sends according to described the second prompting message;
Respond described Indication message.
Optionally, described the second Indication message is to comprise the regular message of amended described deployment; Processor 72 specifically for, in each node comprised at described server system, determine the second destination node with described amended described deployment rule match; According to described amended described deployment rule, described the second destination node is disposed;
Perhaps, described the second Indication message is for deleting the regular message of described deployment; Processor 72 specifically for, it is regular that according to the described deployment of described deletion, regular message is deleted described deployments.
The device of the deployment server that the embodiment of the present invention provides, be applied to server system, server system comprises computing node, memory node and I/O node, dispose rule by obtaining, and in each node comprised at server system, determine and the first object node of disposing rule match, this first object node comprises target computing node, target memory node and target I/O node; According to this deployment rule, the first object node is disposed.This programme, by selecting the first object node, forms the user by the first object node of selection and realizes the needed server of certain business, by the deployment to the first object node, realizes the deployment to this server.Like this, when the kind of the server that makes required deployment due to the business demand difference is different, can form needed server by selecting different first object nodes, thereby realize the deployment to this server, that is to say, this programme can be supported the deployment of different types of server, thereby the wider scope of application is arranged.
The those skilled in the art can be well understood to, for convenience and simplicity of description, the system of foregoing description, the specific works process of device and unit, can, with reference to the corresponding process in preceding method embodiment, not repeat them here.
In the several embodiment that provide in the application, should be understood that, disclosed system, apparatus and method, can realize by another way.For example, device embodiment described above is only schematic, for example, the division of described unit, be only that a kind of logic function is divided, during actual the realization, other dividing mode can be arranged, for example a plurality of unit or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, indirect coupling or the communication connection of device or unit can be electrically, machinery or other form.
The described unit as the separating component explanation can or can not be also physically to separate, and the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed on a plurality of network element.Can select according to the actual needs some or all of unit wherein to realize the purpose of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can be also that the independent physics of unit comprises, also can be integrated in a unit two or more unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, the form that also can adopt hardware to add SFU software functional unit realizes.
The integrated unit that the above-mentioned form with SFU software functional unit realizes, can be stored in a computer read/write memory medium.Above-mentioned SFU software functional unit is stored in a storage medium, comprise some instructions with so that computer equipment (can be personal computer, server, or the network equipment etc.) carry out the part steps of the described method of each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, read-only memory (Read-Only Memory, abbreviation ROM), the various media that can be program code stored such as random access memory (Random Access Memory is called for short RAM), magnetic disc or CD.
Finally it should be noted that: above embodiment only, in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment, the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: its technical scheme that still can put down in writing aforementioned each embodiment is modified, or part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (16)

1. the method for a deployment server, is characterized in that, is applied to server system, and described server system comprises computing node, memory node and I/O node, and described method comprises:
Obtain and dispose rule;
In each node comprised at described server system, determine and the first object node of described deployment rule match, described first object node comprises target computing node, target memory node and target I/O node;
According to described deployment rule, described first object node is disposed.
2. method according to claim 1, is characterized in that, in described each node comprised at described server system, determines and the first object node of described deployment rule match, comprising:
In default deployment rule base, determine that meeting the regular target of described deployment disposes rule;
Scan each node in described server system, obtain disposing with described target the enabled node of node matching corresponding to rule;
Determine the first object node with described deployment rule match in described enabled node.
3. method according to claim 2, is characterized in that, described enabled node comprises available computing node, describedly in described enabled node, determines and the first object node of described deployment rule match, comprising:
With the first prompting message prompting user; Described the first prompting message comprises the sign of described available computing node, in order to point out the user, selects the target computing node with described deployment rule match from described available computing node;
Obtain the described target computing node of user's indication.
4. method according to claim 1, is characterized in that, described obtaining disposed rule, comprising:
Dispose regular message, m>1 for generation m that obtains user's indication;
According to described m the message that deployment is regular, the regular masterplate of generation deployment of generating;
Generate m described deployment rule according to the regular masterplate of described deployment.
5. method according to claim 4, is characterized in that, there is incidence relation in the regular masterplate of described deployment and m described deployment rule, and described method also comprises:
Obtain the renewal of user indication and dispose regular message, described renewal is disposed regular message and is comprised upgating object and fresh content more, and described upgating object is that m the n in a described deployment rule described deployment is regular, 1≤n<m;
Remove n the described incidence relation of disposing rule and the regular masterplate of described deployment according to described upgating object;
According to described renewal content update n described deployment rule.
6. method according to claim 4, is characterized in that, there is incidence relation in the regular masterplate of described deployment and m described deployment rule, and described method also comprises:
Obtain the renewal of user indication and dispose regular message, described renewal is disposed regular message and is comprised upgating object and fresh content more, and described upgating object is that m described deployment is regular;
According to described upgating object, according to the regular masterplate of the described deployment of described renewal content update;
Upgrade m described deployment rule according to the rule of the deployment after described renewal masterplate.
7. according to the described method of claim 1-6 any one, it is characterized in that, described method also comprises:
Obtain the actual deployment rule;
When described actual deployment rule is not mated with described deployment rule, with the second prompting message prompting user;
Obtain the Indication message that the user sends according to described the second prompting message;
Respond described Indication message.
8. method according to claim 7, is characterized in that,
Described the second Indication message is to comprise the regular message of amended described deployment; The described Indication message of described response comprises:
In each node comprised at described server system, determine the second destination node with described amended described deployment rule match;
According to described amended described deployment rule, described the second destination node is disposed;
Perhaps, described the second Indication message is for deleting the regular message of described deployment; The described Indication message of described response comprises:
According to the described deployment of described deletion, regular message is deleted described deployment rule.
9. the device of a deployment server, is characterized in that, is applied to server system, and described server system comprises computing node, memory node and I/O node, and described device comprises:
Acquiring unit, dispose rule for obtaining;
Determining unit for each node comprised at described server system, determines and the first object node of described deployment rule match that described first object node comprises target computing node, target memory node and target I/O node;
Deployment unit, for being disposed described first object node according to described deployment rule.
10. device according to claim 9, is characterized in that, described determining unit specifically for,
In default deployment rule base, determine that meeting the regular target of described deployment disposes rule;
Scan each node in described server system, obtain disposing with described target the enabled node of node matching corresponding to rule;
Determine the first object node with described deployment rule match in described enabled node.
11. device according to claim 10, is characterized in that, described enabled node comprises available computing node, described determining unit specifically for,
With the first prompting message prompting user; Described the first prompting message comprises the sign of described available computing node, in order to point out the user, selects the target computing node with described deployment rule match from described available computing node;
Obtain the described target computing node of user's indication.
12. device according to claim 9, is characterized in that, described acquiring unit specifically for,
Dispose regular message, m>1 for generation m that obtains user's indication;
According to described m the message that deployment is regular, the regular masterplate of generation deployment of generating;
Generate m described deployment rule according to the regular masterplate of described deployment.
13. device according to claim 12, is characterized in that, there is incidence relation in the regular masterplate of described deployment and m described deployment rule;
Described acquiring unit also for, obtain the renewal of user indication and dispose regular message, described renewal is disposed regular message and is comprised upgating object and fresh content more, described upgating object is that m the n in a described deployment rule described deployment is regular, 1≤n<m;
Described device also comprises:
Remove unit, for remove the individual described incidence relation regular and the regular masterplate of described deployment of disposing of n according to described upgating object;
Updating block, for regular according to described renewal content update n described deployment.
14. device according to claim 12, is characterized in that, there is incidence relation in the regular masterplate of described deployment and m described deployment rule;
Described acquiring unit also for, obtain the renewal of user indication and dispose regular message, described renewal is disposed regular message and is comprised upgating object and fresh content more, described upgating object is that m described deployment is regular;
Described device also comprises:
Updating block, for according to described upgating object, according to the regular masterplate of the described deployment of described renewal content update; Upgrade m described deployment rule according to the rule of the deployment after described renewal masterplate.
15. according to the described device of claim 9-14 any one, it is characterized in that,
Described acquiring unit also for, obtain the actual deployment rule;
Described device also comprises: Tip element, for when described actual deployment rule is not mated with described deployment rule, with the second prompting message prompting user;
Described acquiring unit also for, obtain the Indication message that the user sends according to described the second prompting message;
Described device also comprises: response unit, and for responding described Indication message.
16. device according to claim 15, is characterized in that, described the second Indication message is to comprise the regular message of amended described deployment; Described response unit specifically for,
In each node comprised at described server system, determine the second destination node with described amended described deployment rule match;
According to described amended described deployment rule, described the second destination node is disposed;
Perhaps, described the second Indication message is for deleting the regular message of described deployment; Described response unit specifically for, it is regular that according to the described deployment of described deletion, regular message is deleted described deployments.
CN201310410145.4A 2013-09-10 2013-09-10 A kind of method and apparatus of deployment server Active CN103475521B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310410145.4A CN103475521B (en) 2013-09-10 2013-09-10 A kind of method and apparatus of deployment server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310410145.4A CN103475521B (en) 2013-09-10 2013-09-10 A kind of method and apparatus of deployment server

Publications (2)

Publication Number Publication Date
CN103475521A true CN103475521A (en) 2013-12-25
CN103475521B CN103475521B (en) 2016-11-16

Family

ID=49800231

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310410145.4A Active CN103475521B (en) 2013-09-10 2013-09-10 A kind of method and apparatus of deployment server

Country Status (1)

Country Link
CN (1) CN103475521B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103685568A (en) * 2013-12-31 2014-03-26 曙光云计算技术有限公司 Platform service application deployment method and system of PAAS (Platform As A Service) platform under cloud computing environment
CN107172208A (en) * 2017-06-30 2017-09-15 联想(北京)有限公司 The dispositions method and its system of server
CN107769949A (en) * 2016-08-19 2018-03-06 华为技术有限公司 A kind of application component dispositions method and deployment node
CN111769971A (en) * 2020-05-28 2020-10-13 苏州浪潮智能科技有限公司 Server ad hoc network method, device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1976289A (en) * 2006-12-22 2007-06-06 中国建设银行股份有限公司 Program arranging method and system based on distributing network
WO2012041763A1 (en) * 2010-09-30 2012-04-05 International Business Machines Corporation Data transform method and data transformer
CN102571591A (en) * 2012-01-18 2012-07-11 中国人民解放军国防科学技术大学 Method, edge router and system for realizing marked network communication

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1976289A (en) * 2006-12-22 2007-06-06 中国建设银行股份有限公司 Program arranging method and system based on distributing network
WO2012041763A1 (en) * 2010-09-30 2012-04-05 International Business Machines Corporation Data transform method and data transformer
CN102571591A (en) * 2012-01-18 2012-07-11 中国人民解放军国防科学技术大学 Method, edge router and system for realizing marked network communication

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103685568A (en) * 2013-12-31 2014-03-26 曙光云计算技术有限公司 Platform service application deployment method and system of PAAS (Platform As A Service) platform under cloud computing environment
CN107769949A (en) * 2016-08-19 2018-03-06 华为技术有限公司 A kind of application component dispositions method and deployment node
US10684850B2 (en) 2016-08-19 2020-06-16 Huawei Technologies Co., Ltd. Application component deployment method and deployment node
CN107769949B (en) * 2016-08-19 2021-02-12 华为技术有限公司 Application component deployment method and deployment node
CN107172208A (en) * 2017-06-30 2017-09-15 联想(北京)有限公司 The dispositions method and its system of server
CN107172208B (en) * 2017-06-30 2021-09-14 联想(北京)有限公司 Server deployment method and system
CN111769971A (en) * 2020-05-28 2020-10-13 苏州浪潮智能科技有限公司 Server ad hoc network method, device and storage medium

Also Published As

Publication number Publication date
CN103475521B (en) 2016-11-16

Similar Documents

Publication Publication Date Title
US10585691B2 (en) Distribution system, computer, and arrangement method for virtual machine
CN111782232A (en) Cluster deployment method and device, terminal equipment and storage medium
CN110389832B (en) ZooKeeper container cluster deployment method, system, device and storage medium
CN104866391B (en) A kind of end message backup method and device based on increment information system
CN112256348B (en) Cloud service platform creation method and system, electronic equipment and storage medium
CN103748569A (en) System and methods for driverless operation of USB device
CN108563440A (en) The automatic adding method of List Controller code, device and readable storage medium storing program for executing
CN103475521A (en) Method and device for deploying server
CN104899049A (en) File deletion method and device
CN102662591B (en) Data processing method and device
CN102419753B (en) Information processing equipment, information processing method and information processing system
CN104978204A (en) Application installing and updating method based on mobile terminal and application installing and updating device based on mobile terminal
CN115578096A (en) Block chain parallel transaction method, device, equipment and storage medium
CN113190241B (en) Method and device for expanding capacity of data partition, electronic equipment and storage medium
CN102880478A (en) Software updating method
CN104123200A (en) Method, system and device for backing up picture in mobile terminal and mobile terminal
CN107678751B (en) Virtual machine software deployment method and terminal
CN104598281A (en) Method for upgrading system of electronic device
CN116302398A (en) Workflow arrangement method, device, equipment and medium based on cloud protogenesis
CN106095643A (en) The establishing method of systematic parameter access and server thereof
CN115145634A (en) System management software self-adaption method, device and medium
CN114553859A (en) BMC configuration management method and device, electronic equipment and storage medium
CN104980564A (en) Recharge socket and mobile terminal processing method based on recharge socket
CN113326052A (en) Method and device for upgrading service component, computer equipment and storage medium
GB2515598A (en) Information processing apparatus and information processing method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20200422

Address after: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee after: HUAWEI TECHNOLOGIES Co.,Ltd.

Address before: 301, A building, room 3, building 301, foreshore Road, No. 310052, Binjiang District, Zhejiang, Hangzhou

Patentee before: Hangzhou Huawei Digital Technology Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20211221

Address after: 450046 Floor 9, building 1, Zhengshang Boya Plaza, Longzihu wisdom Island, Zhengdong New Area, Zhengzhou City, Henan Province

Patentee after: xFusion Digital Technologies Co., Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right