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.
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.