CN103209197B - cluster server deployment method and system - Google Patents

cluster server deployment method and system Download PDF

Info

Publication number
CN103209197B
CN103209197B CN201210009381.0A CN201210009381A CN103209197B CN 103209197 B CN103209197 B CN 103209197B CN 201210009381 A CN201210009381 A CN 201210009381A CN 103209197 B CN103209197 B CN 103209197B
Authority
CN
China
Prior art keywords
server
deployment
configuration
cluster
cluster server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210009381.0A
Other languages
Chinese (zh)
Other versions
CN103209197A (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201210009381.0A priority Critical patent/CN103209197B/en
Publication of CN103209197A publication Critical patent/CN103209197A/en
Application granted granted Critical
Publication of CN103209197B publication Critical patent/CN103209197B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present invention proposes a kind of cluster server deployment method and system.Cluster server deployment method comprises the following steps: send Disposition Instructions;Situation according to the server in described Disposition Instructions and described cluster server generates multiple configuration files comprising configuration information, wherein configuration file and server one_to_one corresponding to be configured;According to the plurality of configuration file comprising configuration information, deployment strategy is set;Deployment task is generated according to the plurality of configuration file comprising configuration information and described deployment strategy;And according to described deployment task, the server in described cluster server is disposed.Cluster server deployment method according to embodiments of the present invention and system, can efficiently and automatically dispose cluster server.

Description

Cluster server deployment method and system
Technical field
The present invention relates to automatization's O&M field, particularly to a kind of cluster server deployment method and system.
Background technology
Recently as the high speed development of Internet technology, data center may have tens thousand of host nodes, and a service may be deployed on up to ten thousand machines simultaneously.How to manage service and deployment information, how to dispose large-scale cluster main frame accurately and rapidly be industry problem demanding prompt solution.
The most generally being disposed by artificial some scripts of disposing, the maintenance of the information such as service and deployment scenario simultaneously also relies on manual maintenance.Along with server count purpose is on the increase, deployment, dependence complicated between service make it easy to maloperation.When scale reaches to a certain degree, a large amount of service arrangement and maintenance cannot be the most manually realized.
Summary of the invention
The purpose of the present invention is intended at least solve one of above-mentioned technological deficiency.
To this end, it is an object of the present invention to propose a kind of cluster server deployment method that can efficiently and automatically cluster server be disposed.
Further object is that a kind of cluster server deployment system of proposition.
To achieve these goals, the cluster server deployment method of embodiment according to a first aspect of the present invention, comprise the following steps: send Disposition Instructions;Situation according to the server in described Disposition Instructions and described cluster server generates multiple configuration files comprising configuration information, wherein configuration file and server one_to_one corresponding to be configured;According to the plurality of configuration file comprising configuration information, deployment strategy is set;Deployment task is generated according to the plurality of configuration file comprising configuration information and described deployment strategy;And according to described deployment task, the server in described cluster server is disposed.
Cluster server deployment method according to embodiments of the present invention, can be with automatic deployment cluster server, it is not necessary to rely on manual maintenance, improves deployment speed and accuracy and reduce cost, it is possible to achieve large-scale cluster server quick, accurately dispose.
To achieve these goals, the cluster server deployment system of embodiment according to a second aspect of the present invention includes cluster server and controls subsystem, and wherein said control subsystem includes: command device, and described command device is used for sending Disposition Instructions;Configuration file generating means, described configuration file generating means generates multiple configuration files comprising configuration information, wherein configuration file and server one_to_one corresponding to be configured for the situation according to the server in described Disposition Instructions and described cluster server;Deployment strategy arranges device, and described deployment strategy arranges device for arranging deployment strategy according to the plurality of configuration file comprising configuration information;Deployment task generating means, described deployment task generating means is for generating deployment task according to the plurality of configuration file comprising configuration information and described deployment strategy;And dispose execution device, described deployment performs device for disposing the server in described cluster server according to described deployment task.
Cluster server deployment system according to embodiments of the present invention, can be with automatic deployment cluster server, it is not necessary to rely on manual maintenance, improves deployment speed and accuracy and reduce cost, it is possible to achieve large-scale cluster server quick, accurately dispose.
Aspect and advantage that the present invention adds will part be given in the following description, and part will become apparent from the description below, or is recognized by the practice of the present invention.
Accompanying drawing explanation
The present invention above-mentioned and/or that add aspect and advantage will be apparent from easy to understand, wherein from the following description of the accompanying drawings of embodiments:
Fig. 1 is the flow chart of cluster server deployment method according to an embodiment of the invention;
Fig. 2 is the flow chart of cluster server deployment method according to an embodiment of the invention;
Fig. 3 is the flow chart of cluster server deployment method according to an embodiment of the invention;
Fig. 4 is the flow chart of cluster server deployment method according to an embodiment of the invention;
Fig. 5 is the structured flowchart of cluster server deployment system according to an embodiment of the invention;
Fig. 6 is the structured flowchart of cluster server deployment system according to an embodiment of the invention;And
Fig. 7 is the structured flowchart of cluster server deployment system according to an embodiment of the invention.
Detailed description of the invention
Embodiments of the invention are described below in detail, and the example of described embodiment is shown in the drawings, and the most same or similar label represents same or similar element or has the element of same or like function.The embodiment described below with reference to accompanying drawing is exemplary, is only used for explaining the present invention, and is not construed as limiting the claims.
In describing the invention, it is to be understood that term " first ", " second " etc. be only used for describe purpose, and it is not intended that instruction or hint relative importance.In describing the invention, it should be noted that unless otherwise clearly defined and limited, term " is connected ", " connection " should be interpreted broadly, and connects for example, it may be fixing, it is also possible to be to removably connect, or be integrally connected;Can be to be mechanically connected, it is also possible to be electrical connection;Can be to be joined directly together, it is also possible to be indirectly connected to by intermediary.For the ordinary skill in the art, above-mentioned term concrete meaning in the present invention can be understood with concrete condition.Additionally, in describing the invention, except as otherwise noted, " multiple " are meant that two or more.
In flow chart or at this, any process described otherwise above or method description are construed as, represent and include one or more module of code, fragment or part for the executable instruction of the step that realizes specific logical function or process, and the scope of the preferred embodiment of the present invention includes other realization, wherein can not be by order that is shown or that discuss, including according to involved function by basic mode simultaneously or in the opposite order, performing function, this should be understood by embodiments of the invention person of ordinary skill in the field.
Below with reference to the accompanying drawings 14 cluster server deployment method according to embodiments of the present invention is described.
A kind of cluster server deployment method, comprises the following steps: send Disposition Instructions;Situation according to the server in Disposition Instructions and cluster server generates multiple configuration files comprising configuration information, wherein configuration file and server one_to_one corresponding to be configured;According to multiple configuration files comprising configuration information, deployment strategy is set;Deployment task is generated according to multiple configuration files comprising configuration information and deployment strategy;And according to deployment task, the server in cluster server is disposed.
Fig. 1 is the flow chart of cluster server deployment method according to an embodiment of the invention.
As it is shown in figure 1, cluster server deployment method comprises the steps.
Step S101, sends Disposition Instructions.
This Disposition Instructions can be that artificial trigger can also be automatically to trigger.This Disposition Instructions can include such as installation procedure, the CPU of needs or hard disk size etc. on cluster server.
In one embodiment of the invention, Disposition Instructions is automatically triggered according to condition set in advance.
In one embodiment of the invention, condition set in advance includes arriving the reservation service cycle and predetermined number destination server needs to update.After cluster server work certain time, all cluster servers are disposed (this deployment can include such as reinstalling operating system, installing new service software etc. on all cluster servers) for example, it is possible to prespecified;When monitoring predetermined number destination server and needing and update, this predetermined number destination server can also be disposed, when the disposal ability of the most prespecified 5 station servers is less than predetermined process ability, this 5 station server can be disposed.
Step S102, generates multiple configuration files comprising configuration information, wherein configuration file and server one_to_one corresponding to be configured according to the situation of the server in Disposition Instructions and cluster server.
In one embodiment of the invention, the situation of the server in cluster server includes that the busy-idle condition of each server, CPU and hard disk use state and disposal ability.Such as, if Disposition Instructions is the hard-disk capacity disposing 200G, then according to the busy-idle condition of server in cluster server, prioritizing selection server that is idle and that have idle hard-disk capacity, by configuration file corresponding with server to be configured for the write of these configuration informations.
In one embodiment of the invention, configuration information can include but not limited to server numbering to be configured, the busy-idle condition of server to be configured, the disposal ability of server to be configured, the CPU configured on server to be configured and hard disk size and program name to be mounted on server to be configured.
Step S103, arranges deployment strategy according to multiple configuration files comprising configuration information.
For each server to be configured, all there is corresponding configuration file, with configuration information in configuration file.
In one embodiment of the invention, such as configuration sequence can be determined according to the busy-idle condition of server to be configured according to configuration information.In one embodiment of the invention, configuration sequence can include that series arrangement, parallel deployment and serial parallel combine configuration.
Such as, if needing 5 station servers are configured, first looking at the configuration file of this 5 station server, determining the busy-idle condition of this 5 station server, first idle server is configured, busy server is configured after a while.This 5 station server can be carried out series arrangement according to the order of idle degrees.This 5 station server can also be carried out parallel deployment.If 3 station servers are the most idle, can configure this 3 station server, be then arranged in order other 2 station servers simultaneously, i.e. serial parallel combines and configures.
In one embodiment of the invention, such as configuration sequence can be determined according to the disposal ability of server to be configured according to configuration information.In one embodiment of the invention, configuration sequence can include that series arrangement, parallel deployment and serial parallel combine configuration.
Such as, if needing to configure 5 station servers, first looking at the configuration file of this 5 station server, determining the disposal ability of this 5 station server, first the server strong for disposal ability configure, and the server weak for disposal ability configures after a while.This 5 station server can be carried out series arrangement according to the size of disposal ability.This 5 station server can also be carried out parallel deployment.If the disposal ability of 3 station servers is essentially identical, can configure this 3 station server, be then arranged in order other 2 station servers simultaneously, i.e. serial parallel combines and configures.
Step S104, generates deployment task according to multiple configuration files comprising configuration information and deployment strategy.
After determining deployment strategy, i.e. after idle condition or the disposal ability etc. that analyze server to be configured, it is determined that for the configuration sequence etc. of server to be configured.Then according to the configuration information in the configuration file corresponding with each server to be configured, generate the deployment task for each server to be configured.
Such as, for 5 servers to be configured, determine after carrying out series arrangement according to disposal ability, check the configuration file of this 5 station server, determine for which kind of configuration this 5 station server to carry out, such as, take much CPU, many big hard disks or which kind of program is installed.
Step S105, disposes the server in cluster server according to deployment task.
After determining deployment task, just each server is disposed according to deployment task.
Cluster server deployment method according to embodiments of the present invention, can be with automatic deployment cluster server, it is not necessary to rely on manual maintenance, improves deployment speed and accuracy and reduce cost, it is possible to achieve large-scale cluster server quick, accurately dispose.
Fig. 2 is the flow chart of cluster server deployment method according to an embodiment of the invention.
As in figure 2 it is shown, cluster server deployment method comprises the steps.
Step S201, user sends demand.The demand of user can include hard disk size, CPU size, OS Type etc..
Step S202, sends Disposition Instructions according to user's request.
Analyze user's request, and obtain Disposition Instructions according to this demand.This Disposition Instructions can include such as installation procedure, the CPU of needs or hard disk size etc. on cluster server.
Step S203, generates multiple configuration files comprising configuration information, wherein configuration file and server one_to_one corresponding to be configured according to the situation of the server in Disposition Instructions and cluster server.
In one embodiment of the invention, the situation of the server in cluster server includes that the busy-idle condition of each server, CPU and hard disk use state and disposal ability.Such as, if Disposition Instructions is the hard-disk capacity disposing 200G, then according to the busy-idle condition of server in cluster server, prioritizing selection server that is idle and that have idle hard-disk capacity, by configuration file corresponding with server to be configured for the write of these configuration informations.
In one embodiment of the invention, configuration information can include but not limited to server numbering to be configured, the busy-idle condition of server to be configured, the disposal ability of server to be configured, the CPU configured on server to be configured and hard disk size and program name to be mounted on server to be configured.
Step S204, arranges deployment strategy according to multiple configuration files comprising configuration information.
For each server to be configured, all there is corresponding configuration file, with configuration information in configuration file.
In one embodiment of the invention, such as configuration sequence can be determined according to the busy-idle condition of server to be configured according to configuration information.In one embodiment of the invention, configuration sequence can include that series arrangement, parallel deployment and serial parallel combine configuration.
Such as, if needing 5 station servers are configured, first looking at the configuration file of this 5 station server, determining the busy-idle condition of this 5 station server, first idle server is configured, busy server is configured after a while.This 5 station server can be carried out series arrangement according to the order of idle degrees.This 5 station server can also be carried out parallel deployment.If 3 station servers are the most idle, can configure this 3 station server, be then arranged in order other 2 station servers simultaneously, i.e. serial parallel combines and configures.
In one embodiment of the invention, such as configuration sequence can be determined according to the disposal ability of server to be configured according to configuration information.In one embodiment of the invention, configuration sequence can include that series arrangement, parallel deployment and serial parallel combine configuration.
Such as, if needing to configure 5 station servers, first looking at the configuration file of this 5 station server, determining the disposal ability of this 5 station server, first the server strong for disposal ability configure, and the server weak for disposal ability configures after a while.This 5 station server can be carried out series arrangement according to the size of disposal ability.This 5 station server can also be carried out parallel deployment.If the disposal ability of 3 station servers is essentially identical, can configure this 3 station server, be then arranged in order other 2 station servers simultaneously, i.e. serial parallel combines and configures.
Step S205, generates deployment task according to multiple configuration files comprising configuration information and deployment strategy.
After determining deployment strategy, i.e. after idle condition or the disposal ability etc. that analyze server to be configured, it is determined that for the configuration sequence etc. of server to be configured.Then according to the configuration information in the configuration file corresponding with each server to be configured, generate the deployment task for each server to be configured.
Such as, for 5 servers to be configured, determine after carrying out series arrangement according to disposal ability, check the configuration file of this 5 station server, determine for which kind of configuration this 5 station server to carry out, such as, take much CPU, many big hard disks or which kind of program is installed.
Step S206, disposes the server in cluster server according to deployment task.
After determining deployment task, just each server is disposed according to deployment task.
Cluster server deployment method according to embodiments of the present invention, interface can be provided the user, actual demand automatic deployment cluster server according to user, need not rely on manual maintenance, improve deployment speed and accuracy and reduce cost, it is possible to achieve large-scale cluster server quick, accurately dispose.
Fig. 3 is the flow chart of cluster server deployment method according to an embodiment of the invention.
As it is shown on figure 3, cluster server deployment method comprises the steps.
Step S301, sends Disposition Instructions.
This Disposition Instructions can be that artificial trigger can also be automatically to trigger.This Disposition Instructions can include such as installation procedure, the CPU of needs or hard disk size etc. on cluster server.
In one embodiment of the invention, Disposition Instructions is automatically triggered according to condition set in advance.
In one embodiment of the invention, condition set in advance includes arriving the reservation service cycle and predetermined number destination server needs to update.After cluster server work certain time, all cluster servers are disposed (this deployment can include such as reinstalling operating system, installing new service software etc. on all cluster servers) for example, it is possible to prespecified;When monitoring predetermined number destination server and needing and update, this predetermined number destination server can also be disposed, when the disposal ability of the most prespecified 5 station servers is less than predetermined process ability, this 5 station server can be disposed.
Step S302, generates multiple configuration files comprising configuration information, wherein configuration file and server one_to_one corresponding to be configured according to the situation of the server in Disposition Instructions and cluster server.
In one embodiment of the invention, the situation of the server in cluster server includes that the busy-idle condition of each server, CPU and hard disk use state and disposal ability.Such as, if Disposition Instructions is the hard-disk capacity disposing 200G, then according to the busy-idle condition of server in cluster server, prioritizing selection server that is idle and that have idle hard-disk capacity, by configuration file corresponding with server to be configured for the write of these configuration informations.
In one embodiment of the invention, configuration information can include but not limited to server numbering to be configured, the busy-idle condition of server to be configured, the disposal ability of server to be configured, the CPU configured on server to be configured and hard disk size and program name to be mounted on server to be configured.
Step S303, arranges deployment strategy according to multiple configuration files comprising configuration information.
For each server to be configured, all there is corresponding configuration file, with configuration information in configuration file.
In one embodiment of the invention, such as configuration sequence can be determined according to the busy-idle condition of server to be configured according to configuration information.In one embodiment of the invention, configuration sequence can include that series arrangement, parallel deployment and serial parallel combine configuration.
Such as, if needing 5 station servers are configured, first looking at the configuration file of this 5 station server, determining the busy-idle condition of this 5 station server, first idle server is configured, busy server is configured after a while.This 5 station server can be carried out series arrangement according to the order of idle degrees.This 5 station server can also be carried out parallel deployment.If 3 station servers are the most idle, can configure this 3 station server, be then arranged in order other 2 station servers simultaneously, i.e. serial parallel combines and configures.
In one embodiment of the invention, such as configuration sequence can be determined according to the disposal ability of server to be configured according to configuration information.In one embodiment of the invention, configuration sequence can include that series arrangement, parallel deployment and serial parallel combine configuration.
Such as, if needing to configure 5 station servers, first looking at the configuration file of this 5 station server, determining the disposal ability of this 5 station server, first the server strong for disposal ability configure, and the server weak for disposal ability configures after a while.This 5 station server can be carried out series arrangement according to the size of disposal ability.This 5 station server can also be carried out parallel deployment.If the disposal ability of 3 station servers is essentially identical, can configure this 3 station server, be then arranged in order other 2 station servers simultaneously, i.e. serial parallel combines and configures.
Step S304, extracts configuration information identical in multiple configuration file comprising configuration information.
For each server to be configured, all there is a corresponding configuration file.In each configuration file, if there is identical configuration information, then the configuration information that this is identical is extracted, generate unified configuration information.
Such as, for 5 servers to be configured, if 5 configuration files all existing configuration information " install Windows operating system on the server ", then this configuration information is extracted, reduce configuration file size, improve processing speed.
After determining deployment strategy, i.e. after idle condition or the disposal ability etc. that analyze server to be configured, it is determined that for the configuration sequence etc. of server to be configured.Then according to the configuration information in configuration file corresponding to each server to be configured, generate the deployment task for each server to be configured.
Such as, for 5 servers to be configured, determine after carrying out series arrangement according to disposal ability, check the configuration file of this 5 station server, determine for which kind of configuration this 5 station server to carry out, such as, take much CPU, many big hard disks or which kind of program is installed.
Step S305, generates the configuration task that server to be configured is unified configuration according to identical configuration information and deployment strategy.
Such as, for 5 servers to be configured, if unified configuration information is " installing Windows operating system on the server ", then generate the configuration task that this 5 station server is unified configuration.
Step S306, generates the configuration task that server to be configured carries out each configuration according to different configuration informations and described deployment strategy.
Such as, for 5 servers to be configured, after being extracted unified configuration information and " Windows operating system being installed on the server ", each configuration file there is also different configuration informations.Such as, for No. 1 server, also configuration information " disposes 5G hard disk ";For No. 2 servers, also configuration information " disposes 3G hard disk ", then generate different configuration tasks according to this different configuration information.
Step S307, disposes the server in cluster server according to deployment task.
After determining deployment task, just each server is disposed according to deployment task.
In the above-described embodiments, before step S301, it is also possible to include that user sends demand and sends the step of Disposition Instructions according to demand.
Cluster server deployment method according to embodiments of the present invention, polymerization process can be carried out for different configuration files, reduce the size of configuration file, realize automatic deployment cluster server, need not rely on manual maintenance, improve deployment speed and accuracy and reduce cost, it is possible to achieve large-scale cluster server quick, accurately dispose.
Fig. 4 is the flow chart of cluster server deployment method according to an embodiment of the invention.
As shown in Figure 4, cluster server deployment method comprises the steps.
Step S401, sends Disposition Instructions.
This Disposition Instructions can be that artificial trigger can also be automatically to trigger.This Disposition Instructions can include such as installation procedure, the CPU of needs or hard disk size etc. on cluster server.
In one embodiment of the invention, Disposition Instructions is automatically triggered according to condition set in advance.
In one embodiment of the invention, condition set in advance includes arriving the reservation service cycle and predetermined number destination server needs to update.After cluster server work certain time, all cluster servers are disposed (this deployment can include such as reinstalling operating system, installing new service software etc. on all cluster servers) for example, it is possible to prespecified;When monitoring predetermined number destination server and needing and update, this predetermined number destination server can also be disposed, when the disposal ability of the most prespecified 5 station servers is less than predetermined process ability, this 5 station server can be disposed.
Step S402, generates multiple configuration files comprising configuration information, wherein configuration file and server one_to_one corresponding to be configured according to the situation of the server in Disposition Instructions and cluster server.
In one embodiment of the invention, the situation of the server in cluster server includes that the busy-idle condition of each server, CPU and hard disk use state and disposal ability.Such as, if Disposition Instructions is the hard-disk capacity disposing 200G, then according to the busy-idle condition of server in cluster server, prioritizing selection server that is idle and that have idle hard-disk capacity, by configuration file corresponding with server to be configured for the write of these configuration informations.
In one embodiment of the invention, configuration information can include but not limited to server numbering to be configured, the busy-idle condition of server to be configured, the disposal ability of server to be configured, the CPU configured on server to be configured and hard disk size and program name to be mounted on server to be configured.
Step S403, arranges deployment strategy according to multiple configuration files comprising configuration information.
For each server to be configured, all there is corresponding configuration file, with configuration information in configuration file.
In one embodiment of the invention, such as configuration sequence can be determined according to the busy-idle condition of server to be configured according to configuration information.In one embodiment of the invention, configuration sequence can include that series arrangement, parallel deployment and serial parallel combine configuration.
Such as, if needing 5 station servers are configured, first looking at the configuration file of this 5 station server, determining the busy-idle condition of this 5 station server, first idle server is configured, busy server is configured after a while.This 5 station server can be carried out series arrangement according to the order of idle degrees.This 5 station server can also be carried out parallel deployment.If 3 station servers are the most idle, can configure this 3 station server, be then arranged in order other 2 station servers simultaneously, i.e. serial parallel combines and configures.
In one embodiment of the invention, such as configuration sequence can be determined according to the disposal ability of server to be configured according to configuration information.In one embodiment of the invention, configuration sequence can include that series arrangement, parallel deployment and serial parallel combine configuration.
Such as, if needing to configure 5 station servers, first looking at the configuration file of this 5 station server, determining the disposal ability of this 5 station server, first the server strong for disposal ability configure, and the server weak for disposal ability configures after a while.This 5 station server can be carried out series arrangement according to the size of disposal ability.This 5 station server can also be carried out parallel deployment.If the disposal ability of 3 station servers is essentially identical, can configure this 3 station server, be then arranged in order other 2 station servers simultaneously, i.e. serial parallel combines and configures.
Step S404, generates deployment task according to multiple configuration files comprising configuration information and deployment strategy.
After determining deployment strategy, i.e. after idle condition or the disposal ability etc. that analyze server to be configured, it is determined that for the configuration sequence etc. of server to be configured.Then according to the configuration information in the configuration file corresponding with each server to be configured, generate the deployment task for each server to be configured.
Such as, for 5 servers to be configured, determine after carrying out series arrangement according to disposal ability, check the configuration file of this 5 station server, determine for which kind of configuration this 5 station server to carry out, such as, take much CPU, many big hard disks or which kind of program is installed.
Step S405, disposes the server in cluster server according to deployment task.
After determining deployment task, just each server is disposed according to deployment task.
Step S406, if a step in performing deployment task is made mistakes, then deployment task quickly rolls back to this step to redeploy.
Such as, during No. 1 server is disposed, if made mistakes in the step disposing " 5G hard disk ", the most quickly roll back to dispose the step of " 5G hard disk " to redeploy.
In the above-described embodiments, before step 401, it is also possible to include that user sends demand and sends the step of Disposition Instructions according to demand.Step can also be included: extract configuration information identical in multiple configuration file comprising configuration information;The configuration task that server to be configured is unified configuration is generated according to identical configuration information and deployment strategy;And the configuration task that server to be configured is carried out each configuration is generated according to different configuration informations and deployment strategy.
Cluster server deployment method according to embodiments of the present invention, when deployment makes mistakes can quickly rollback, improve deployment speed and efficiency.Furthermore, it is possible to automatic deployment cluster server, it is not necessary to rely on manual maintenance, improve deployment speed and accuracy and reduce cost, it is possible to achieve large-scale cluster server quick, accurately dispose.
Below with reference to the accompanying drawings 57 cluster server deployment system according to embodiments of the present invention is described.
A kind of cluster server deployment system, including cluster server and control subsystem, wherein controls subsystem and includes: command device, command device is used for sending Disposition Instructions;Configuration file generating means, configuration file generating means generates multiple configuration files comprising configuration information, wherein configuration file and server one_to_one corresponding to be configured for the situation according to the server in Disposition Instructions and cluster server;Deployment strategy arranges device, and deployment strategy arranges device for arranging deployment strategy according to multiple configuration files comprising configuration information;Deployment task generating means, deployment task generating means is for generating deployment task according to multiple configuration files comprising configuration information and deployment strategy;And dispose execution device, dispose and perform device for the server in cluster server being disposed according to deployment task.
Fig. 5 is the structured flowchart of cluster server deployment system according to an embodiment of the invention.As it is shown in figure 5, cluster server deployment system 1 includes controlling subsystem 10 and cluster server 20.
Specifically, controlling subsystem 10 and include: command device 110, configuration file generating means 120, deployment strategy arranges device 130, deployment task generating means 140, disposes and perform device 150.
Command device 110 is used for sending Disposition Instructions.This Disposition Instructions can be that artificial trigger can also be automatically to trigger.This Disposition Instructions can include such as installation procedure, the CPU of needs or hard disk size etc. on cluster server.
In one embodiment of the invention, command device 110 triggers Disposition Instructions automatically according to condition set in advance.
In one embodiment of the invention, condition set in advance includes arriving the reservation service cycle and predetermined number destination server needs to update.After cluster server work certain time, all cluster servers are disposed (this deployment can include such as reinstalling operating system, installing new service software etc. on all cluster servers) for example, it is possible to prespecified;When monitoring predetermined number destination server and needing and update, this predetermined number destination server can also be disposed, when the disposal ability of the most prespecified 5 station servers is less than predetermined process ability, this 5 station server can be disposed.
Configuration file generating means 120 generates multiple configuration files comprising configuration information, wherein configuration file and server one_to_one corresponding to be configured for the situation according to the server in Disposition Instructions and cluster server.
In one embodiment of the invention, the situation of the server in cluster server includes that the busy-idle condition of each server, CPU and hard disk use state and disposal ability.Such as, if Disposition Instructions is the hard-disk capacity disposing 200G, then configuration file generating means 120 is according to the busy-idle condition of server in cluster server, prioritizing selection server that is idle and that have idle hard-disk capacity, by configuration file corresponding with server to be configured for the write of these configuration informations.
In one embodiment of the invention, configuration information can include but not limited to server numbering to be configured, the busy-idle condition of server to be configured, the disposal ability of server to be configured, the CPU configured on server to be configured and hard disk size and program name to be mounted on server to be configured.
Deployment strategy arranges device 130 for arranging deployment strategy according to multiple configuration files comprising configuration information.
For each server to be configured, all there is corresponding configuration file, with configuration information in configuration file.
In one embodiment of the invention, deployment strategy arranges device 130 and such as can determine configuration sequence according to the busy-idle condition of server to be configured according to configuration information.In one embodiment of the invention, configuration sequence can include that series arrangement, parallel deployment and serial parallel combine configuration.
Such as, if needing to configure 5 station servers, deployment strategy arranges device 130 and first looks at the configuration file of this 5 station server, determines the busy-idle condition of this 5 station server, first configures for idle server, configures after a while for busy server.This 5 station server can be carried out series arrangement according to the order of idle degrees.This 5 station server can also be carried out parallel deployment.If 3 station servers are the most idle, can configure this 3 station server, be then arranged in order other 2 station servers simultaneously, i.e. serial parallel combines and configures.
In one embodiment of the invention, deployment strategy arranges device 130 and such as can determine configuration sequence according to the disposal ability of server to be configured according to configuration information.In one embodiment of the invention, configuration sequence can include that series arrangement, parallel deployment and serial parallel combine configuration.
Such as, if needing to configure 5 station servers, deployment strategy arranges device 130 and first looks at the configuration file of this 5 station server, determines the disposal ability of this 5 station server, first the server strong for disposal ability configure, and the server weak for disposal ability configures after a while.This 5 station server can be carried out series arrangement according to the size of disposal ability.This 5 station server can also be carried out parallel deployment.If the disposal ability of 3 station servers is essentially identical, can configure this 3 station server, be then arranged in order other 2 station servers simultaneously, i.e. serial parallel combines and configures.
Deployment task generating means 140 is for generating deployment task according to multiple configuration files comprising configuration information and deployment strategy.
After determining deployment strategy, i.e. after idle condition or the disposal ability etc. that analyze server to be configured, it is determined that for the configuration sequence etc. of server to be configured.Then deployment task generating means 140 is according to the configuration information in the configuration file corresponding with each server to be configured, generates the deployment task for each server to be configured.
Such as, for 5 servers to be configured, determine after carrying out series arrangement according to disposal ability, deployment task generating means 140 checks the configuration file of this 5 station server, determine for which kind of configuration this 5 station server to carry out, such as, take much CPU, many big hard disks or which kind of program is installed.
Dispose and perform device 150 for the server in cluster server being disposed according to deployment task.
After determining deployment task, dispose execution device 150 and just each server is disposed according to deployment task.
In one embodiment of the invention, when the step that deployment execution device 150 is further used in performing deployment task is made mistakes, control deployment task and quickly roll back to a step to redeploy.Thus when deployment makes mistakes can quickly rollback, improve deployment speed and efficiency.
Cluster server deployment system according to embodiments of the present invention, can be with automatic deployment cluster server, it is not necessary to rely on manual maintenance, improves deployment speed and accuracy and reduce cost, it is possible to achieve large-scale cluster server quick, accurately dispose.
Fig. 6 is the structured flowchart of cluster server deployment system according to an embodiment of the invention.As shown in Figure 6, on the basis of the embodiment shown in Fig. 5, this control subsystem 10 also includes interface arrangement 160.
Interface arrangement 160 is for receiving the demand that user sends, and wherein command device 110 is for sending Disposition Instructions according to described demand.The demand of user can include hard disk size, CPU size, OS Type etc..Command device 110 analyzes user's request, and obtains Disposition Instructions according to this demand.This Disposition Instructions can include such as installation procedure, the CPU of needs or hard disk size etc. on cluster server.
Interface arrangement 160 can provide a user with api interface.
Cluster server deployment system according to embodiments of the present invention, interface can be provided the user, actual demand automatic deployment cluster server according to user, need not rely on manual maintenance, improve deployment speed and accuracy and reduce cost, it is possible to achieve large-scale cluster server quick, accurately dispose.
Fig. 7 is the structured flowchart of cluster server deployment system according to an embodiment of the invention.As it is shown in fig. 7, on the basis of the embodiment shown in Fig. 5, this control subsystem 10 also includes extraction element 170.
Extraction element 170 is for extracting configuration information identical in multiple configuration file comprising configuration information, and wherein deployment task generating means 140 carries out the configuration task of each configuration for generating the configuration task that server to be configured is unified configuration generating according to different configuration informations and deployment strategy according to identical configuration information and deployment strategy to server to be configured.
For each server to be configured, all there is a corresponding configuration file.In each configuration file, if there is identical configuration information, then the configuration information that this is identical is extracted by extraction element 170, generates unified configuration information.
Such as, for 5 servers to be configured, if all there is configuration information in 5 configuration files " to install Windows operating system on the server ", then this configuration information is extracted by extraction element 170, reduces configuration file size, improves processing speed.
After determining deployment strategy, i.e. after idle condition or the disposal ability etc. that analyze server to be configured, it is determined that for the configuration sequence etc. of server to be configured.Then according to the configuration information in configuration file corresponding to each server to be configured, generate the deployment task for each server to be configured.
Such as, for 5 servers to be configured, determine after carrying out series arrangement according to disposal ability, check the configuration file of this 5 station server, determine for which kind of configuration this 5 station server to carry out, such as, take much CPU, many big hard disks or which kind of program is installed.
Such as, for 5 servers to be configured, if unified configuration information is " installing Windows operating system on the server ", then deployment task generating means 140 generates the configuration task that this 5 station server is unified configuration.
Such as, for 5 servers to be configured, after extraction element 170 is extracted unified configuration information " installation Windows operating system on the server ", each configuration file there is also different configuration informations.Such as, for No. 1 server, also configuration information " disposes 5G hard disk ";For No. 2 servers, also configuration information " disposes 3G hard disk ", then deployment task generating means 140 generates different configuration tasks according to this different configuration information.
In the above-described embodiments, it is also possible to include interface arrangement 160, it is used for providing a user with interface.
Cluster server deployment system according to embodiments of the present invention, polymerization process can be carried out for different configuration files, reduce the size of configuration file, realize automatic deployment cluster server, need not rely on manual maintenance, improve deployment speed and accuracy and reduce cost, it is possible to achieve large-scale cluster server quick, accurately dispose.
Should be appreciated that each several part of the present invention can realize by hardware, software, firmware or combinations thereof.In the above-described embodiment, multiple steps or method can realize with software or the firmware that storage in memory and is performed by suitable instruction execution system.Such as, if realized with hardware, as in another embodiment, can realize by any one in following technology well known in the art or their combination: there is the discrete logic of logic gates for data signal realizes logic function, there is the special IC of suitable combination logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc..
In the description of this specification, the description of reference term " embodiment ", " some embodiments ", " example ", " concrete example " or " some examples " etc. means that the specific features, structure, material or the feature that combine this embodiment or example description are contained at least one embodiment or the example of the present invention.In this manual, the schematic representation to above-mentioned term is not necessarily referring to identical embodiment or example.And, the specific features of description, structure, material or feature can combine in any one or more embodiments or example in an appropriate manner.
Although an embodiment of the present invention has been shown and described, for the ordinary skill in the art, being appreciated that and these embodiments can carry out multiple change without departing from the principles and spirit of the present invention, revise, replace and modification, the scope of the present invention is limited by claims and equivalent thereof.

Claims (22)

1. a cluster server deployment method, it is characterised in that comprise the following steps:
Send Disposition Instructions;
Situation according to the server in described Disposition Instructions and described cluster server generates multiple configuration files comprising configuration information, wherein configuration file and server one_to_one corresponding to be configured;
According to the plurality of configuration file comprising configuration information, deployment strategy is set;
Deployment task is generated according to the plurality of configuration file comprising configuration information and described deployment strategy, wherein, extract configuration information identical in the plurality of configuration file comprising configuration information, and generate, according to described identical configuration information and described deployment strategy, the configuration task that server to be configured is unified to be configured, and generate the configuration task that server to be configured is carried out each configuration according to different configuration informations and described deployment strategy;And
According to described deployment task, the server in described cluster server is disposed.
Cluster server deployment method the most according to claim 1, it is characterised in that farther include step:
User sends demand;And
Disposition Instructions is sent according to described demand.
Cluster server deployment method the most according to claim 1, it is characterised in that described in send Disposition Instructions and include automatically triggering Disposition Instructions.
Cluster server deployment method the most according to claim 3, it is characterised in that automatically trigger Disposition Instructions according to condition set in advance.
Cluster server deployment method the most according to claim 4, it is characterised in that described condition set in advance includes arriving the reservation service cycle and predetermined number destination server needs to update.
Cluster server deployment method the most according to claim 1, it is characterised in that the situation of the server in described cluster server includes that the busy-idle condition of each server, CPU and hard disk use state and the disposal ability of each server.
Cluster server deployment method the most according to claim 1, it is characterized in that, described configuration information includes server numbering to be configured, the busy-idle condition of server to be configured, the disposal ability of server to be configured, the CPU configured on server to be configured and hard disk size and program name to be mounted on server to be configured.
Cluster server deployment method the most according to claim 1, it is characterised in that deployment strategy is set according to configuration information and includes that the busy-idle condition according to server to be configured determines configuration sequence.
Cluster server deployment method the most according to claim 1, it is characterised in that deployment strategy is set according to configuration information and includes that the disposal ability according to server to be configured determines configuration sequence.
Cluster server deployment method the most according to claim 8 or claim 9, it is characterised in that described configuration sequence includes that series arrangement, parallel deployment and serial parallel combine configuration.
11. cluster server deployment method according to claim 1, it is characterised in that farther include step:
If a step in performing described deployment task is made mistakes, the most described deployment task quickly rolls back to one step to redeploy.
12. 1 kinds of cluster server deployment systems, it is characterised in that including cluster server and control subsystem, wherein said control subsystem includes:
Command device, described command device is used for sending Disposition Instructions;
Configuration file generating means, described configuration file generating means generates multiple configuration files comprising configuration information, wherein configuration file and server one_to_one corresponding to be configured for the situation according to the server in described Disposition Instructions and described cluster server;
Deployment strategy arranges device, and described deployment strategy arranges device for arranging deployment strategy according to the plurality of configuration file comprising configuration information;
Deployment task generating means, described deployment task generating means is for generating deployment task according to the plurality of configuration file comprising configuration information and described deployment strategy;
Extraction element, described extraction element is for extracting configuration information identical in the plurality of configuration file comprising configuration information, and described deployment task generating means is used for generating according to described identical configuration information and described deployment strategy and server to be configured is unified the configuration task of configuration and generates the configuration task that server to be configured carries out each configuration according to different configuration informations and described deployment strategy;And
Disposing and perform device, described deployment performs device for disposing the server in described cluster server according to described deployment task.
13. cluster server deployment systems according to claim 12, it is characterised in that described control subsystem farther includes:
Interface arrangement, described interface arrangement is for receiving the demand that user sends, and wherein said command device is for sending Disposition Instructions according to described demand.
14. cluster server deployment systems according to claim 12, it is characterised in that described command device triggers Disposition Instructions automatically.
15. cluster server deployment systems according to claim 14, it is characterised in that described command device triggers Disposition Instructions automatically according to condition set in advance.
16. cluster server deployment systems according to claim 15, it is characterised in that described condition set in advance includes arriving the reservation service cycle and predetermined number destination server needs to update.
17. cluster server deployment systems according to claim 12, it is characterised in that the situation of the server in described cluster server includes that the busy-idle condition of each server, CPU and hard disk use state and the disposal ability of each server.
18. cluster server deployment systems according to claim 12, it is characterized in that, described configuration information includes server numbering to be configured, the busy-idle condition of server to be configured, the disposal ability of server to be configured, the CPU configured on server to be configured and hard disk size and program name to be mounted on server to be configured.
19. cluster server deployment systems according to claim 12, it is characterised in that described deployment strategy arranges device for determining configuration sequence according to the busy-idle condition of server to be configured.
20. cluster server deployment systems according to claim 12, it is characterised in that described deployment strategy arranges device for determining configuration sequence according to the disposal ability of server to be configured.
21. according to the cluster server deployment system described in claim 19 or 20, it is characterised in that described configuration sequence includes that series arrangement, parallel deployment and serial parallel combine configuration.
22. cluster server deployment systems according to claim 12, it is characterized in that, when the step that described deployment execution device is further used in performing described deployment task is made mistakes, control described deployment task and quickly roll back to one step to redeploy.
CN201210009381.0A 2012-01-12 2012-01-12 cluster server deployment method and system Active CN103209197B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210009381.0A CN103209197B (en) 2012-01-12 2012-01-12 cluster server deployment method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210009381.0A CN103209197B (en) 2012-01-12 2012-01-12 cluster server deployment method and system

Publications (2)

Publication Number Publication Date
CN103209197A CN103209197A (en) 2013-07-17
CN103209197B true CN103209197B (en) 2016-08-03

Family

ID=48756281

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210009381.0A Active CN103209197B (en) 2012-01-12 2012-01-12 cluster server deployment method and system

Country Status (1)

Country Link
CN (1) CN103209197B (en)

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103532974B (en) * 2013-10-28 2017-05-03 曙光云计算技术有限公司 Virtual firewall configuration method and device
CN104780058A (en) * 2014-01-13 2015-07-15 联想(北京)有限公司 Electronic equipment configuration method and system
CN104767641B (en) * 2015-04-01 2018-08-14 北京京东尚科信息技术有限公司 Server capability dispatching method, equipment, server and system
CN105743703B (en) * 2016-03-10 2019-05-03 郑州悉知信息科技股份有限公司 A kind of cluster interior joint server configuration method, node server and system
CN107229646A (en) * 2016-03-24 2017-10-03 中兴通讯股份有限公司 Dispositions method, the apparatus and system of data cluster
CN108733533B (en) * 2017-04-18 2021-07-13 微软技术许可有限责任公司 Optional manual scheduling of planned host maintenance
CN107276835A (en) * 2017-08-11 2017-10-20 郑州云海信息技术有限公司 A kind of clustered deploy(ment) collocation method and system
CN107632834A (en) * 2017-09-08 2018-01-26 北京小度信息科技有限公司 Self-defined application dispositions method, device, equipment and computer-readable recording medium
CN107908414A (en) * 2017-11-22 2018-04-13 中国银行股份有限公司 A kind of method, apparatus and system of the deployment of application server version
CN108345536A (en) * 2017-12-26 2018-07-31 阿里巴巴集团控股有限公司 A kind of dispositions method, device and the equipment of continuous integrating environment
CN108924193A (en) * 2018-06-15 2018-11-30 广东小天才科技有限公司 A kind of service deployment method and device based on server
CN108958744B (en) * 2018-06-21 2022-08-09 京东科技控股股份有限公司 Deployment method, device, medium and electronic equipment of big data distributed cluster
CN109189415A (en) * 2018-08-31 2019-01-11 郑州云海信息技术有限公司 Device, method, system and the computer readable storage medium of deployment services device
CN109901842A (en) * 2019-01-17 2019-06-18 深圳壹账通智能科技有限公司 Application deployment method, apparatus, computer equipment and storage medium
CN109977099A (en) * 2019-03-16 2019-07-05 平安城市建设科技(深圳)有限公司 Database portion arranging method, user equipment, storage medium and device
CN111258592B (en) * 2020-01-20 2022-07-08 苏州浪潮智能科技有限公司 Installation-free serial execution method and system applied to cluster server
CN115396437B (en) * 2022-08-24 2023-06-13 中电金信软件有限公司 Cluster building method and device, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101014034A (en) * 2006-12-31 2007-08-08 武汉蓝星科技股份有限公司 U disk server-based cluster solving method
CN102075358A (en) * 2010-12-31 2011-05-25 网宿科技股份有限公司 System and method for distributing and deploying content of large-scale server cluster

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8046694B1 (en) * 2007-08-06 2011-10-25 Gogrid, LLC Multi-server control panel
CN102223398B (en) * 2011-05-30 2013-09-11 北京航空航天大学 Method for deploying services in cloud computing environment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101014034A (en) * 2006-12-31 2007-08-08 武汉蓝星科技股份有限公司 U disk server-based cluster solving method
CN102075358A (en) * 2010-12-31 2011-05-25 网宿科技股份有限公司 System and method for distributing and deploying content of large-scale server cluster

Also Published As

Publication number Publication date
CN103209197A (en) 2013-07-17

Similar Documents

Publication Publication Date Title
CN103209197B (en) cluster server deployment method and system
US9207929B2 (en) Integrated system and firmware update method
CN103399840B (en) The outer amending method of the band of a kind of allocation of computer file and computer
CN104360878B (en) A kind of method and device of application software deployment
CN102609281B (en) Distributed software patch update method and system
CN103458086B (en) A kind of smart mobile phone and fault detection method thereof
WO2016188100A1 (en) Information system fault scenario information collection method and system
WO2021022713A1 (en) Distributed module update method, device, and storage medium
CN102404603B (en) Detection method and the system of the USB device plug on Set Top Box
CN110515673A (en) Plug-in unit system and method
CN102819466B (en) The disposal route of operating system exception and device thereof
CN107741876A (en) A kind of virtual machine process monitoring system and method
US10353786B2 (en) Virtualization substrate management device, virtualization substrate management system, virtualization substrate management method, and recording medium for recording virtualization substrate management program
CN109697070B (en) Ambari-based cluster management method, device and medium
US9519537B2 (en) Apparatus, system and method for application log data processing
CN110134518A (en) A kind of method and system improving big data cluster multinode high application availability
CN106406980B (en) A kind of dispositions method and device of virtual machine
WO2015062217A1 (en) Connection processing method and device for peripheral in virtual desktop system
CN105790991A (en) Link aggregation method and system for virtualization server and intelligent network adapter thereof
CN105490864A (en) Business module monitoring method based on OSGI
CN103019706A (en) Method and device for processing startup item
CN104516796A (en) Command set based network element backup and recovery method and device
CN106875018B (en) Method and device for automatic maintenance of super-large-scale machine
CN113658351B (en) Method and device for producing product, electronic equipment and storage medium
CN106909382B (en) Method and device for outputting different types of system starting information

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