CN109918089A - A kind of software deployment method and system - Google Patents
A kind of software deployment method and system Download PDFInfo
- Publication number
- CN109918089A CN109918089A CN201910105676.XA CN201910105676A CN109918089A CN 109918089 A CN109918089 A CN 109918089A CN 201910105676 A CN201910105676 A CN 201910105676A CN 109918089 A CN109918089 A CN 109918089A
- Authority
- CN
- China
- Prior art keywords
- software
- deployment
- server
- software deployment
- platform
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 27
- 230000005540 biological transmission Effects 0.000 claims description 19
- 239000000284 extract Substances 0.000 claims description 9
- 230000010365 information processing Effects 0.000 claims 1
- 238000005516 engineering process Methods 0.000 abstract description 3
- 230000008569 process Effects 0.000 description 4
- 230000008901 benefit Effects 0.000 description 2
- 238000009434 installation Methods 0.000 description 2
- 206010000210 abortion Diseases 0.000 description 1
- 231100000176 abortion Toxicity 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
Landscapes
- Hardware Redundancy (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a kind of software deployment method and systems, belong to software deployment technologies field.The described method includes: the software deployment for the destination server cluster that software deployment service device is sent according to the software deployment platform is requested, software deployment information is sent to the Servers-all of the destination server cluster;The software deployment service device sends the software deployment status information of the server according to the feedback information of the server received, Xiang Suoshu software deployment platform;The software deployment platform determines that the software of the server retries deployment strategy according to the software deployment status information of the server.Software deployment efficiency can be improved in the present invention.
Description
Technical field
The present invention relates to software deployment technologies field more particularly to a kind of software deployment method and systems.
Background technique
Distributed system usually provides various business services as unit of server cluster for user, and therefore, it is necessary to be clothes
Every server in business device cluster all disposes corresponding software.Since the number of servers that server cluster includes is huge, mesh
Before mostly use automation mode to carry out software deployment.
When needing deployment software, the server in server cluster obtains the software of the software from software deployment service device
Then installation kit and configuration file can dispose the software in server local, after software deployment completion, server
It can be to provide corresponding business service for user.However, during deployment, it may be due to the various problems such as network delay
Cause the software deployment on server to fail, is checked the reason of causing software deployment to fail at this point, generally requiring administrative staff, and
It performs corresponding processing, the software could be disposed on that server again later.
In the implementation of the present invention, inventor discovery in the prior art the prior art has at least the following problems:
Since number of servers is huge in server cluster, when the whole server disposition targets for including for server cluster
When software, the number of servers that deployment failure occurs also can be more, so, software deployment efficiency is lower.
Summary of the invention
In order to solve problems in the prior art, the embodiment of the invention provides a kind of method and systems of software deployment.Institute
It is as follows to state technical solution:
In a first aspect, providing a kind of software deployment method, comprising:
The software deployment for the destination server cluster that software deployment service device is sent according to the software deployment platform is requested,
Software deployment information is sent to the Servers-all of the destination server cluster;
Feedback information of the software deployment service device according to the server received, the transmission of Xiang Suoshu software deployment platform
The software deployment status information of the server;
The software deployment platform determines the software of the server according to the software deployment status information of the server
Retry deployment strategy.
Further, feedback information of the software deployment service device according to the server received, Xiang Suoshu software portion
Administration's platform sends the software deployment status information of the server, comprising:
The software deployment service device receives the feedback information that the server is sent, and obtains in the feedback information and includes
Software deployment result;
When the software deployment result is deployment failure, the software deployment service device determines that the deployment unsuccessfully corresponds to
Failure cause;
The software deployment service device sends the software deployment status information of the server to the software deployment platform,
Wherein, the software deployment status information includes at least: the software deployment result and corresponding reason.
Further, the software deployment platform determines the clothes according to the software deployment status information of the server
The software of business device retries deployment strategy, comprising:
The software deployment platform receives the software deployment state for the server that the software deployment service device is sent
Information;
The software deployment platform determines the software deployment knot of the server according to the software deployment status information
Fruit;
When the software deployment result is deployment failure, the software deployment platform is according to the destination server cluster
Software deployment type, determine the server retries deployment strategy.
Further, the software deployment platform determines institute according to the software deployment type of the destination server cluster
That states server retries deployment strategy, comprising:
When the software deployment type of the destination server cluster is that batch is disposed, the software deployment platform calculating is worked as
The software deployment success rate of preceding destination server cluster;
If the software deployment success rate is less than preset threshold, the software deployment platform is to the software deployment service
Device transmission retries deployment request for the software of the server;
The software is retried deployment request and is transmitted to the server by the software deployment service device, so that the service
Device redeploys the software.
Further, the software deployment platform determines institute according to the software deployment type of the destination server cluster
That states server retries deployment strategy, comprising:
When the software deployment type of the destination server cluster is a small amount of deployment, the software deployment platform extracts institute
State the failure cause for including in software deployment status information;
If the failure cause is network cause, the software deployment platform sends needle to the software deployment service device
Deployment request is retried to the software of the server;
The software is retried deployment request and is transmitted to the server by the software deployment service device, so that the service
Device redeploys the software.
Further, the software deployment platform determines institute according to the software deployment type of the destination server cluster
That states server retries deployment strategy, comprising:
When the software deployment type of the destination server cluster is a small amount of deployment, the software deployment platform extracts institute
State the failure cause for including in software deployment status information;
If the failure cause is configuration reason, the software deployment platform determines corresponding processing information;
The processing information is sent to the server by the software deployment platform, so that the server is according to
Processing information performs corresponding processing;
After receiving the processing that the server sends and completing information, the software deployment platform is to the software deployment
Server transmission retries deployment request for the software of the server;
The software is retried deployment request and is transmitted to the server by the software deployment service device, so that the service
Device redeploys the software.
Further, the method also includes:
After sending the software for the server to the software deployment service device and retrying deployment request, the software
The software deployment status information for the server that deployment platform is sent again according to the software deployment service device, determine described in
Software retries deployment and requests corresponding software deployment result;
The software that the software deployment platform generates the server retries deployment analysis information, described to retry deployment analysis
Include at least in information: the title of the server described retry deployment and requests corresponding software deployment result, preceding primary described
The corresponding processing information of the failure cause and the failure cause for including in software deployment status information;
The software of Servers-all is retried deployment analysis information and is ranked up by preset rules by the software deployment platform.
Second aspect provides a kind of software deployment system, and the system comprises software deployment platforms and software deployment to take
Business device:
The software deployment service device, the software of the destination server cluster for being sent according to the software deployment platform
Software deployment information, is sent to the Servers-all of the destination server cluster by deployment request;
The software deployment service device, for the feedback information according to the server received, Xiang Suoshu software deployment is flat
Platform sends the software deployment status information of the server;
The software deployment platform determines the server for the software deployment status information according to the server
Software retry deployment strategy.
Further, the software deployment service device, is specifically used for:
The feedback information that the server is sent is received, the software deployment result for including in the feedback information is obtained;
When the software deployment result is deployment failure, the corresponding failure cause of the deployment failure is determined;
The software deployment status information of the server is sent to the software deployment platform, wherein the software deployment
Status information includes at least: the software deployment result and corresponding reason.
Further, the software deployment platform, is specifically used for:
Receive the software deployment status information for the server that the software deployment service device is sent;
According to the software deployment status information, the software deployment result of the server is determined;
When the software deployment result is deployment failure, according to the software deployment type of the destination server cluster,
Determine the server retries deployment strategy.
Further, the software deployment platform is batch for the software deployment type when the destination server cluster
When amount deployment, the software deployment success rate of current goal server cluster is calculated;If the software deployment success rate is less than pre-
If threshold value, the transmission of Xiang Suoshu software deployment service device retries deployment request for the software of the server;
The software deployment service device is transmitted to the server for the software to be retried deployment request, so that institute
It states server and redeploys the software.
Further, the software deployment platform is few for the software deployment type when the destination server cluster
When amount deployment, the failure cause for including in the software deployment status information is extracted;If the failure cause is network cause,
Deployment request is retried for the software of the server to software deployment service device transmission;
The software deployment service device is transmitted to the server for the software to be retried deployment request, so that institute
It states server and redeploys the software.
Further, the software deployment platform is few for the software deployment type when the destination server cluster
When amount deployment, the failure cause for including in the software deployment status information is extracted;If the failure cause is configuration reason,
Determine corresponding processing information;The processing information is sent to the server, so that the server is according to the processing
Information performs corresponding processing;After receiving the processing that the server is sent and completing information, Xiang Suoshu software deployment service
Device transmission retries deployment request for the software of the server;
The software deployment service device is transmitted to the server for the software to be retried deployment request, so that institute
It states server and redeploys the software.
Further, the software deployment platform, is also used to:
After sending the software for the server to the software deployment service device and retrying deployment request, according to described
The software deployment status information for the server that software deployment service device is sent again determines that the software retries deployment request
Corresponding software deployment result;
The software for generating the server retries deployment analysis information, and described retry includes at least in deployment analysis information:
The title of the server, described retry dispose the corresponding software deployment result of request, the preceding primary software deployment state letter
The corresponding processing information of the failure cause and the failure cause for including in breath;
The software of Servers-all is retried deployment analysis information to be ranked up by preset rules.
Technical solution provided in an embodiment of the present invention has the benefit that
In the embodiment of the present invention, destination server cluster that software deployment service device is sent according to the software deployment platform
Software deployment request, software deployment information is sent to the Servers-all of the destination server cluster;The software portion
Server is affixed one's name to according to the feedback information of the server received, Xiang Suoshu software deployment platform sends the software portion of the server
Affix one's name to status information;The software deployment platform determines the server according to the software deployment status information of the server
Software retries deployment strategy.In this way, by retrying deployment strategy, the server of software deployment failure can be disposed directly again
The software does not need manual operation, saves manpower, improves software deployment efficiency.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other
Attached drawing.
Fig. 1 is a kind of flow chart of software deployment method provided in an embodiment of the present invention;
Fig. 2 is a kind of structural schematic diagram of software deployment system provided in an embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention
Formula is described in further detail.
The embodiment of the invention provides a kind of software deployment method, this method can be by software deployment platform and software deployment
Server realizes that software deployment service device is determined for providing the software deployments information such as software installation packet and configuration file jointly
The failure cause of software deployment failure;Software deployment platform retries deployment request, root for sending software deployment request and software
According to the software deployment type of server subordinate server cluster, determine that the software of server retries deployment strategy.Software deployment is flat
Platform is connect with software deployment service device, and is respectively connected with the Servers-all in server cluster, software deployment service device
It is respectively connected with the Servers-all in server cluster.The application scenarios of the present embodiment may is that software deployment platform to soft
Part deployment services device sends the software deployment request of destination server cluster, and software deployment service device is requested according to software deployment,
All services software deployment information including software installation packet and configuration file being sent in destination server cluster
Device receives the server of software deployment information according to software deployment information in the local disposition software.Software deployment completes it
Afterwards, no matter dispose and whether succeed, server all sends feedback information to software deployment platform.Software deployment service device is according to reception
The feedback information arrived sends the software deployment status information of the server to software deployment platform.Software deployment platform is according to connecing
The software deployment status information received determines that the software of the server retries deployment strategy, decides whether in the server
Redeploy the software.
Below in conjunction with specific embodiment, a kind of process of software deployment shown in FIG. 1 is described in detail, it is interior
Appearance can be such that
Step 101: the software deployment for the destination server cluster that software deployment service device is sent according to software deployment platform
Software deployment information, is sent to the Servers-all of destination server cluster by request.
In an implementation, when providing business service using distributed system for user, the destination service of business service is provided
It needs to be deployed with corresponding software on the Servers-all that device cluster includes.Therefore, it is possible to use software deployment platform and software
The corresponding software of Servers-all local disposition that deployment services device includes in destination server cluster.Administrative staff pass through first
Software deployment platform issues the software deployment request for destination server cluster to software deployment service device.Software deployment service
The software installation packet and corresponding configuration file of various softwares are previously stored on device, it is soft after receiving software deployment request
Part deployment services device is requested according to software deployment, is obtained corresponding software installation packet and software deployment request from local, then will
Software deployment information comprising software installation packet and configuration file is sent to the Servers-all of destination server cluster.In this way,
The server that destination server cluster includes is after obtaining software deployment information, so that it may using including in software deployment information
Software installation packet installs the software in the server local, and loads the configuration file of the software, to complete in the server
The deployment of the software.
Step 102: software deployment service device is sent according to the feedback information of the server received to software deployment platform
The software deployment status information of server.
In an implementation, after server completes software deployment, no matter deployment success or deployment failure, server all can
Corresponding feedback information is sent to software deployment service device.Software deployment service device is according to the feedback information received, then to soft
Part deployment platform sends the software deployment status information of the server.
Optionally, the feedback information that software deployment service device can be sent according to server is analyzed soft on determining server
The reason of part deployment success or deployment failure correspondence, correspondingly, the processing of step 102 can be such that software deployment service device connects
The feedback information that server is sent is received, the software deployment result for including in feedback information is obtained;When software deployment result is deployment
When failure, software deployment service device determines the corresponding failure cause of deployment failure;Software deployment service device is to software deployment platform
Send the software deployment status information of server.
Wherein, software deployment status information includes at least: software deployment result and corresponding reason.
In an implementation, server sends feedback information to software deployment platform after deployment software, feedback server
Software deployment result.Software deployment service device after receiving the feedback information that server is sent, obtain feedback information in include
Software deployment result.When software deployment result is deployment failure, the log of the available server of software deployment service device
File, so that it is determined that corresponding failure cause, in general, failure cause may include:, server is unresponsive, server connection is super
When, software configuration file copy failure, software configuration file load failure, software configuration file parsing failure, server delay machine
Deng.Then, software deployment service device sends the software deployment status information of the server, software deployment shape to software deployment platform
State information may include: server ip address, software deployment result and reason corresponding to software deployment result.In this way, software portion
Platform is affixed one's name to after receiving software deployment status information, so that it may determine on server software whether deployment success, and lead
The reason of causing deployment failure.It should be noted that not needing to determine corresponding success when software deployment result is deployment success
Reason, at this point, reason corresponding to software deployment result is empty (NULL) in software deployment status information.
Step 103: software deployment platform determines that the software of server retries according to the software deployment status information of server
Deployment strategy.
In an implementation, software deployment platform receives the software deployment status information that software deployment service device is sent, from software
The software deployment result of server is confirmed in deployable state information.It should be understood that only when the software deployment result of server
When failing for deployment, just need to consider to redeploy software in the server, software deployment platform can determine the server
Software retries deployment strategy;For software deployment result be deployment success server, due to do not need the server again
Deployment software, therefore, what software deployment platform will not determine the server retries deployment strategy.
Optionally, software deployment platform is after the software deployment status information received, when software deployment status information packet
When the software deployment result contained is deployment failure, correspondingly, the processing of step 103 can be such that the reception of software deployment platform is soft
The software deployment status information for the server that part deployment services device is sent;Software deployment platform according to software deployment status information,
Determine the software deployment result of server;When software deployment result is deployment failure, software deployment platform is according to destination service
The software deployment type of device cluster, determine server retries deployment strategy.
In an implementation, software deployment platform receives the software deployment status information that software deployment service device is sent, and determines clothes
The software deployment result of business device.When the software deployment result of server is deployment failure, software deployment platform determines the service
The software deployment type of destination server cluster belonging to device, software deployment type can be according to the clothes for including in server cluster
Business device quantity, software deployment demand or other factors are divided, and at least may include batch deployment and a small amount of deployment.Then,
For software deployment platform according to software deployment type, further determine that the server retries deployment strategy.
It optionally, is that batch is disposed for the software deployment type of destination server cluster, software deployment platform determines clothes
The respective handling for retrying deployment strategy of business device can be such that when the software deployment type of destination server cluster is batch portion
When administration, software deployment platform calculates the software deployment success rate of current goal server cluster;If software deployment success rate is small
In preset threshold, software deployment platform retries deployment request for the software of server to the transmission of software deployment service device;Software
Software is retried deployment request and is transmitted to server by deployment services device, so that server redeploys software.
In an implementation, since the number of servers generally comprised using the server cluster of batch deployment is huge, no
It is required that every server in server cluster can deployment success software (i.e. software deployment success of server cluster
100%) rate reaches, as long as making to have in server cluster the server disposition of specified quantity or more successfully software (i.e. server
The software deployment success rate of cluster is higher than preset threshold), it can corresponding service service is provided for user, meets the need of user
It asks.So being software deployment after batch is disposed in the software deployment type for determining destination server cluster belonging to the server
Platform passes through all software deployment status informations being currently received, and determines each server that destination server cluster includes
Software deployment as a result, statistics current goal server cluster in software deployment result be deployment success server quantity (or
Software deployment result is the quantity of the server of deployment failure), it further calculates to obtain the software of current goal server cluster
It is deployed to power.If the software deployment success rate being calculated is less than preset threshold, illustrate to need on that server again
Deployment software.With reference to described previously, due to there are many kinds of the corresponding failure causes of deployment failure, kimonos unresponsive for server
Device of being engaged in connects deployment failure caused by both overtime network causes, as long as constantly retrying, software may deployment success, and this
Two kinds of failure causes also occupy higher proportion, so, software deployment platform can not consider specifically to lead to software deployment failure
Failure cause directly retries deployment request for the software of the server to the transmission of software deployment service device.Software deployment service
Device receive this retry deployment request after, be transmitted to the server.In this way, after receiving this and retrying deployment request, the service
Device can retry deployment request according to this, locally redeploy software.It should be understood that as it was noted above, if calculating
Obtained software deployment success rate is greater than or equal to preset threshold, indicates there has been specified quantity or more in destination server cluster
The successful software of server disposition, at this point, destination server cluster has been able to provide business service for user, and meet use
The business demand at family, therefore, software deployment platform will not retry deployment request to the transmission of software deployment service device again.
It optionally, is a small amount of deployment for the software deployment type of destination server cluster, software deployment platform determines clothes
The respective handling for retrying deployment strategy of business device can be such that when the software deployment type of destination server cluster is a small amount of portion
When administration, software deployment platform extracts the failure cause for including in software deployment status information;If failure cause is network cause,
Software deployment platform retries deployment request for the software of server to the transmission of software deployment service device;Software deployment service device will
Software retries deployment request and is transmitted to server, so that server redeploys software.
In an implementation, since the number of servers generally comprised using the server cluster disposed on a small quantity is less, it needs
To guarantee that every server in server cluster can the deployment success software as far as possible.And refer to described previously, network original
Failure is disposed because caused by, it is only necessary to constantly retry, software may deployment success.So determining belonging to the server
The software deployment type of destination server cluster is after disposing on a small quantity, and software deployment platform extracts in the software deployment status information
The failure cause for including, if failure cause is network cause, such as server is unresponsive or server connection is overtime.Software
Deployment platform directly retries deployment request for the software of the server to the transmission of software deployment service device.Software deployment service device
Receive this retry deployment request after, be transmitted to the server.In this way, after receiving this and retrying deployment request, the server
Deployment request can be retried according to this, locally redeploying software.
It optionally, is a small amount of deployment for the software deployment type of destination server cluster, software deployment platform determines clothes
The respective handling for retrying deployment strategy of business device can be such that when the software deployment type of destination server cluster is a small amount of portion
When administration, software deployment platform extracts the failure cause for including in software deployment status information;If failure cause is configuration reason,
Software deployment platform determines corresponding processing information;Software deployment platform is sent to server for information is handled, so that server
It is performed corresponding processing according to processing information;After receiving the processing that server sends and completing information, software deployment platform to
The transmission of software deployment service device retries deployment request for the software of server;Software is retried deployment and asked by software deployment service device
It asks and is transmitted to server, so that server redeploys software.
In an implementation, since the number of servers generally comprised using the server cluster disposed on a small quantity is less, it needs
To guarantee that every server in server cluster can the deployment success software as far as possible.And reference is described previously, in addition to net
Other than deployment failure caused by network reason, fails for being disposed caused by other failure causes, rely only on and constantly retry, Ke Nengwu
Method makes software deployment success, needs to consider to perform corresponding processing these failure causes, can make software deployment success.Therefore
And after the software deployment type for determining destination server cluster belonging to the server is a small amount of deployment, software deployment platform
The failure cause for including in the software deployment status information is extracted, if failure cause is configuration reason, such as software configuration text
The failure of part copy, software configuration file load failure or software configuration file parsing failure.Software deployment platform, which determines, to be corresponded to
Processing information, then will processing information be transmitted directly to the server.In this way, server receive processing information after, just
It can be performed corresponding processing according to processing information, after processing is completed, server retransmits processing completion information and gives software portion
Affix one's name to platform.After software deployment platform receives processing completion information, send to software deployment service device for the soft of the server
Part retries deployment request.Software deployment service device receive this retry deployment request after, be transmitted to the server.In this way, connecing
It receives after this retries deployment request, which can retry deployment request according to this, locally redeploy software.
For abortion described above reason, the corresponding information that handles be can be such that
If failure cause are as follows: the configuration file of software copies failure.Handling information can be with are as follows: extracts installation software process
In configuration file (software name .conf), copy the configuration file to specified path.
If failure cause are as follows: the configuration file of software loads failure.Handling information may include: stopping software process,
CACHE DIRECTORY is created in server local, initializers finally reload software.
If failure cause are as follows: the configuration file of software parses failure.Software deployment platform is further according on server
Journal file extract critical field, determination be parsing failure caused by parsing failure, certificate caused by domain name is related are related or
Person's analysis software is not installed.Parsing failure caused by related for domain name, processing information can be with are as follows: to domain name product line administrator
Member's alarm;Parsing failure caused by related for certificate, processing information can be with are as follows: alert to certificate SSL administrative staff;For solution
Analysis software is not installed, and processing information can be with are as follows: installation analysis software.
It should be noted that if failure cause are as follows: server delay machine.Since before restart, server can not
Any information is received, any processing operation can not be carried out, at this point, software deployment platform is no longer any to destination server progress
Software retries the relevant operation of deployment.
It should be understood that when server retries deployment request according to the software received, after locally redeploying software,
Server can send corresponding feedback information to software deployment service device again.In the feedback information for receiving the server again
Afterwards, software deployment service device and software deployment platform can repeat step 102 and step 103 and corresponding steps described previously
Content.
It should be noted that software deployment platform no longer can send needle to software deployment service device in following situations
Deployment request is retried to the software of the server:
Software deployment platform receives to be wrapped in the software deployment status information of the server that software deployment service device is sent
The software deployment result contained is deployment success;
Software deployment platform receives to be wrapped in the software deployment status information of the server that software deployment service device is sent
The software deployment result contained is deployment failure, and the software deployment type of destination server cluster belonging to the server is batch portion
Administration, and the software deployment success rate of current goal server cluster is calculated more than or equal to preset threshold in software deployment platform;
Software deployment platform receives to be wrapped in the software deployment status information of the server that software deployment service device is sent
The software deployment result contained is deployment failure, and the software deployment type of destination server cluster belonging to the server is a small amount of portion
Administration comprising failure cause is configuration reason in software deployment status information, and the failure cause and the service that receives before
The failure cause for including in the software deployment status information of device is identical (to illustrate the server according to the corresponding processing of the failure cause
After information performs corresponding processing, it can not solve the problems, such as server software deployment failure, artificial treatment can only be transferred to).
Optionally, it is analyzed for the ease of software deployment result of the administrative staff to server, corresponding processing can be with
As follows: after sending the software for server to software deployment service device and retrying deployment request, software deployment platform is according to soft
The software deployment status information for the server that part deployment services device is sent again determines that software retries deployment and requests corresponding software
Dispose result;The software that software deployment platform generates server retries deployment analysis information;Software deployment platform is by all services
The software of device retries deployment analysis information and is ranked up by preset rules.
Wherein, retry and include at least in deployment analysis information: the title of server retries the corresponding software portion of deployment request
The failure cause and the corresponding processing information of failure cause for including in administration's result, a preceding software deployment status information.
In an implementation, as described above, deployment is retried in the software for being directed to server to the transmission of software deployment service device to ask
After asking, after receiving the software deployment status information for the server that software deployment service device is sent again, software deployment platform
Determine that the software of the server retries deployment and requests corresponding software deployment result and corresponding processing.At this point, for software portion
Administration's type is the server in the destination server cluster disposed on a small quantity, and software deployment platform can also generate the software of server
Deployment analysis information is retried, it may include: the title of the server in deployment analysis information that software, which retries, retry deployment request pair
The failure cause for including in the software deployment result answered, the preceding primary software deployment status information and the corresponding place of failure cause
Manage information.The corresponding processing information of failure cause can refer to described above, it should be noted that when failure cause is server
When unresponsive or server connects overtime this kind of network cause, due to no corresponding processing information, this can be preset
The corresponding processing information of class failure cause are as follows: non-treated.Later, the software of Servers-all is retried deployment by software deployment platform
Analysis information summarizes, and can be ranked up and screen lookup according to preset rules.Such as first arrangement can be preset and retried
It is that the software of deployment failure retries deployment analysis information that corresponding software deployment result is requested in deployment, and rearrangement retries deployment request
Corresponding software deployment result is that the software of deployment success retries deployment analysis information.It can also be arranged not for processing information in advance
Same difficulty weighted value, then from low to high according to difficulty weighted value, i.e. the sequence of processing information from easy to difficult is to software
Retry deployment analysis information sorting.It can be convenient administrative staff in this way to check, be convenient for analyzing, improve working efficiency.
In the embodiment of the present invention, destination server cluster that software deployment service device is sent according to the software deployment platform
Software deployment request, software deployment information is sent to the Servers-all of the destination server cluster;The software portion
Server is affixed one's name to according to the feedback information of the server received, Xiang Suoshu software deployment platform sends the software portion of the server
Affix one's name to status information;The software deployment platform determines the server according to the software deployment status information of the server
Software retries deployment strategy.In this way, by retrying deployment strategy, the server of software deployment failure can be disposed directly again
The software does not need manual operation, saves manpower, improves software deployment efficiency.
Based on the same technical idea, the embodiment of the invention also provides a kind of systems of software deployment, as shown in Fig. 2,
Including software deployment platform and software deployment service device:
The software deployment service device, the software of the destination server cluster for being sent according to the software deployment platform
Software deployment information, is sent to the Servers-all of the destination server cluster by deployment request;
The software deployment service device, for the feedback information according to the server received, Xiang Suoshu software deployment is flat
Platform sends the software deployment status information of the server;
The software deployment platform determines the server for the software deployment status information according to the server
Software retry deployment strategy.
Further, the software deployment service device, is specifically used for:
The feedback information that the server is sent is received, the software deployment result for including in the feedback information is obtained;
When the software deployment result is deployment failure, the corresponding failure cause of the deployment failure is determined;
The software deployment status information of the server is sent to the software deployment platform, wherein the software deployment
Status information includes at least: the software deployment result and corresponding reason.
Further, the software deployment platform, is specifically used for:
Receive the software deployment status information for the server that the software deployment service device is sent;
According to the software deployment status information, the software deployment result of the server is determined;
When the software deployment result is deployment failure, according to the software deployment type of the destination server cluster,
Determine the server retries deployment strategy.
Further, the software deployment platform is batch for the software deployment type when the destination server cluster
When amount deployment, the software deployment success rate of current goal server cluster is calculated;If the software deployment success rate is less than pre-
If threshold value, the transmission of Xiang Suoshu software deployment service device retries deployment request for the software of the server;
The software deployment service device is transmitted to the server for the software to be retried deployment request, so that institute
It states server and redeploys the software.
Further, the software deployment platform is few for the software deployment type when the destination server cluster
When amount deployment, the failure cause for including in the software deployment status information is extracted;If the failure cause is network cause,
Deployment request is retried for the software of the server to software deployment service device transmission;
The software deployment service device is transmitted to the server for the software to be retried deployment request, so that institute
It states server and redeploys the software.
Further, the software deployment platform is few for the software deployment type when the destination server cluster
When amount deployment, the failure cause for including in the software deployment status information is extracted;If the failure cause is configuration reason,
Determine corresponding processing information;The processing information is sent to the server, so that the server is according to the processing
Information performs corresponding processing;After receiving the processing that the server is sent and completing information, Xiang Suoshu software deployment service
Device transmission retries deployment request for the software of the server;
The software deployment service device is transmitted to the server for the software to be retried deployment request, so that institute
It states server and redeploys the software.
Further, the software deployment platform, is also used to:
After sending the software for the server to the software deployment service device and retrying deployment request, according to described
The software deployment status information for the server that software deployment service device is sent again determines that the software retries deployment request
Corresponding software deployment result;
The software for generating the server retries deployment analysis information, and described retry includes at least in deployment analysis information:
The title of the server, described retry dispose the corresponding software deployment result of request, the preceding primary software deployment state letter
The corresponding processing information of the failure cause and the failure cause for including in breath;
The software of Servers-all is retried deployment analysis information to be ranked up by preset rules.
It should be understood that the system of software deployment provided by the above embodiment and the embodiment of the method for software deployment belong to
Same design, specific implementation process are detailed in embodiment of the method, and which is not described herein again.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can
It realizes by means of software and necessary general hardware platform, naturally it is also possible to pass through hardware.Based on this understanding, on
Stating technical solution, substantially the part that contributes to existing technology can be embodied in the form of software products in other words, should
Computer software product may be stored in a computer readable storage medium, such as ROM/RAM, magnetic disk, CD, including several fingers
It enables and using so that a computer equipment (can be personal computer, server-side or the network equipment etc.) executes each implementation
Method described in certain parts of example or embodiment.
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and
Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.
Claims (14)
1. a kind of software deployment method, which is characterized in that the described method includes:
The software deployment for the destination server cluster that software deployment service device is sent according to the software deployment platform is requested, will be soft
Part deployment information is sent to the Servers-all of the destination server cluster;
The software deployment service device is according to the feedback information of the server received, described in Xiang Suoshu software deployment platform is sent
The software deployment status information of server;
The software deployment platform determines that the software of the server retries according to the software deployment status information of the server
Deployment strategy.
2. the method according to claim 1, wherein the software deployment service device is according to the server received
Feedback information, Xiang Suoshu software deployment platform sends the software deployment status information of the server, comprising:
The software deployment service device receives the feedback information that the server is sent, and obtains include in the feedback information soft
Part disposes result;
When the software deployment result is deployment failure, the software deployment service device determines the corresponding mistake of the deployment failure
Lose reason;
The software deployment service device sends the software deployment status information of the server to the software deployment platform,
In, the software deployment status information includes at least: the software deployment result and corresponding reason.
3. according to the method described in claim 2, it is characterized in that, the software deployment platform is according to the software of the server
Deployable state information determines that the software of the server retries deployment strategy, comprising:
The software deployment platform receives the software deployment status information for the server that the software deployment service device is sent;
The software deployment platform determines the software deployment result of the server according to the software deployment status information;
When the software deployment result is deployment failure, the software deployment platform is soft according to the destination server cluster
Part deployment types, determine the server retries deployment strategy.
4. according to the method described in claim 3, it is characterized in that, the software deployment platform is according to the destination server collection
The software deployment type of group, determine the server retries deployment strategy, comprising:
When the software deployment type of the destination server cluster is that batch is disposed, the software deployment platform calculates current mesh
Mark the software deployment success rate of server cluster;
If the software deployment success rate is less than preset threshold, the software deployment platform is sent out to the software deployment service device
The software for the server is sent to retry deployment request;
The software is retried deployment request and is transmitted to the server by the software deployment service device, so that the service is thought highly of
Newly dispose the software.
5. according to the method described in claim 3, it is characterized in that, the software deployment platform is according to the destination server collection
The software deployment type of group, determine the server retries deployment strategy, comprising:
When the software deployment type of the destination server cluster is a small amount of deployment, the software deployment platform extracts described soft
The failure cause for including in part deployable state information;
If the failure cause is network cause, the software deployment platform sends to the software deployment service device and is directed to institute
The software for stating server retries deployment request;
The software is retried deployment request and is transmitted to the server by the software deployment service device, so that the service is thought highly of
Newly dispose the software.
6. according to the method described in claim 3, it is characterized in that, the software deployment platform is according to the destination server collection
The software deployment type of group, determine the server retries deployment strategy, comprising:
When the software deployment type of the destination server cluster is a small amount of deployment, the software deployment platform extracts described soft
The failure cause for including in part deployable state information;
If the failure cause is configuration reason, the software deployment platform determines corresponding processing information;
The processing information is sent to the server by the software deployment platform, so that the server is according to the processing
Information performs corresponding processing;
After receiving the processing that the server sends and completing information, the software deployment platform is to the software deployment service
Device transmission retries deployment request for the software of the server;
The software is retried deployment request and is transmitted to the server by the software deployment service device, so that the service is thought highly of
Newly dispose the software.
7. according to the described in any item methods of claim 5 or 6, which is characterized in that the method also includes:
After sending the software for the server to the software deployment service device and retrying deployment request, the software deployment
The software deployment status information for the server that platform is sent again according to the software deployment service device, determines the software
It retries deployment and requests corresponding software deployment result;
The software that the software deployment platform generates the server retries deployment analysis information, described to retry deployment analysis information
In include at least: the title of the server described retry deployment and requests corresponding software deployment result, the preceding primary software
The corresponding processing information of the failure cause and the failure cause for including in deployable state information;
The software of Servers-all is retried deployment analysis information and is ranked up by preset rules by the software deployment platform.
8. a kind of software deployment system, which is characterized in that the system comprises software deployment platforms and software deployment service device:
The software deployment service device, the software deployment of the destination server cluster for being sent according to the software deployment platform
Software deployment information, is sent to the Servers-all of the destination server cluster by request;
The software deployment service device, for the feedback information according to the server received, Xiang Suoshu software deployment platform hair
Send the software deployment status information of the server;
The software deployment platform determines the soft of the server for the software deployment status information according to the server
Part retries deployment strategy.
9. system according to claim 8, which is characterized in that the software deployment service device is specifically used for:
The feedback information that the server is sent is received, the software deployment result for including in the feedback information is obtained;
When the software deployment result is deployment failure, the corresponding failure cause of the deployment failure is determined;
The software deployment status information of the server is sent to the software deployment platform, wherein the software deployment state
Information includes at least: the software deployment result and corresponding reason.
10. system according to claim 9, which is characterized in that the software deployment platform is specifically used for:
Receive the software deployment status information for the server that the software deployment service device is sent;
According to the software deployment status information, the software deployment result of the server is determined;
When the software deployment result is deployment failure, according to the software deployment type of the destination server cluster, determine
The server retries deployment strategy.
11. system according to claim 10, it is characterised in that:
The software deployment platform, for calculating when the software deployment type of the destination server cluster is that batch is disposed
The software deployment success rate of current goal server cluster;If the software deployment success rate is less than preset threshold, Xiang Suoshu
The transmission of software deployment service device retries deployment request for the software of the server;
The software deployment service device is transmitted to the server for the software to be retried deployment request, so that the clothes
Business device redeploys the software.
12. system according to claim 10, it is characterised in that:
The software deployment platform, for extracting when the software deployment type of the destination server cluster is a small amount of deployment
The failure cause for including in the software deployment status information;If the failure cause is network cause, Xiang Suoshu software portion
Administration's server transmission retries deployment request for the software of the server;
The software deployment service device is transmitted to the server for the software to be retried deployment request, so that the clothes
Business device redeploys the software.
13. system according to claim 10, it is characterised in that:
The software deployment platform, for extracting when the software deployment type of the destination server cluster is a small amount of deployment
The failure cause for including in the software deployment status information;If the failure cause is configuration reason, corresponding place is determined
Manage information;The processing information is sent to the server, so that the server carries out accordingly according to the processing information
Processing;After receiving the processing that the server is sent and completing information, Xiang Suoshu software deployment service device, which is sent, is directed to institute
The software for stating server retries deployment request;
The software deployment service device is transmitted to the server for the software to be retried deployment request, so that the clothes
Business device redeploys the software.
14. 2 or 13 described in any item systems according to claim 1, which is characterized in that the software deployment platform is also used to:
After sending the software for the server to the software deployment service device and retrying deployment request, according to the software
The software deployment status information for the server that deployment services device is sent again determines that the software retries deployment request and corresponds to
Software deployment result;
The software for generating the server retries deployment analysis information, and described retry includes at least in deployment analysis information: described
The title of server described retry deployment and requests corresponding software deployment result, in the preceding primary software deployment status information
The corresponding processing information of the failure cause and the failure cause for including;
The software of Servers-all is retried deployment analysis information to be ranked up by preset rules.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910105676.XA CN109918089B (en) | 2019-02-01 | 2019-02-01 | Software deployment method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910105676.XA CN109918089B (en) | 2019-02-01 | 2019-02-01 | Software deployment method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109918089A true CN109918089A (en) | 2019-06-21 |
CN109918089B CN109918089B (en) | 2022-07-26 |
Family
ID=66961396
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910105676.XA Expired - Fee Related CN109918089B (en) | 2019-02-01 | 2019-02-01 | Software deployment method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109918089B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110569212A (en) * | 2019-09-12 | 2019-12-13 | 深圳市网心科技有限公司 | File deployment method, system, storage medium and electronic equipment |
CN113242147A (en) * | 2021-05-17 | 2021-08-10 | 上海八彦图信息科技有限公司 | Automatic operation and maintenance deployment method, device, equipment and storage medium in multi-cloud environment |
CN113312086A (en) * | 2021-06-10 | 2021-08-27 | 重庆小易智联智能技术有限公司 | Software robot system based on instruction set and robot operation method |
CN113434321A (en) * | 2021-06-24 | 2021-09-24 | 平安国际智慧城市科技股份有限公司 | Method, device and equipment for processing deployment errors in operation and maintenance and storage medium |
CN115001956A (en) * | 2022-05-24 | 2022-09-02 | 中国平安财产保险股份有限公司 | Server cluster operation method, device, equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102075358A (en) * | 2010-12-31 | 2011-05-25 | 网宿科技股份有限公司 | System and method for distributing and deploying content of large-scale server cluster |
CN106095483A (en) * | 2016-05-31 | 2016-11-09 | 乐视控股(北京)有限公司 | The Automation arranging method of service and device |
WO2017041486A1 (en) * | 2015-09-10 | 2017-03-16 | 中兴通讯股份有限公司 | Cluster deployment implementation method and apparatus |
CN108737463A (en) * | 2017-04-17 | 2018-11-02 | 北京神州泰岳软件股份有限公司 | A kind of software deployment method, server and system |
-
2019
- 2019-02-01 CN CN201910105676.XA patent/CN109918089B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102075358A (en) * | 2010-12-31 | 2011-05-25 | 网宿科技股份有限公司 | System and method for distributing and deploying content of large-scale server cluster |
WO2017041486A1 (en) * | 2015-09-10 | 2017-03-16 | 中兴通讯股份有限公司 | Cluster deployment implementation method and apparatus |
CN106095483A (en) * | 2016-05-31 | 2016-11-09 | 乐视控股(北京)有限公司 | The Automation arranging method of service and device |
CN108737463A (en) * | 2017-04-17 | 2018-11-02 | 北京神州泰岳软件股份有限公司 | A kind of software deployment method, server and system |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110569212A (en) * | 2019-09-12 | 2019-12-13 | 深圳市网心科技有限公司 | File deployment method, system, storage medium and electronic equipment |
CN113242147A (en) * | 2021-05-17 | 2021-08-10 | 上海八彦图信息科技有限公司 | Automatic operation and maintenance deployment method, device, equipment and storage medium in multi-cloud environment |
CN113242147B (en) * | 2021-05-17 | 2023-09-12 | 上海八彦图信息科技有限公司 | Automatic operation and maintenance deployment method, device, equipment and storage medium of multi-cloud environment |
CN113312086A (en) * | 2021-06-10 | 2021-08-27 | 重庆小易智联智能技术有限公司 | Software robot system based on instruction set and robot operation method |
CN113434321A (en) * | 2021-06-24 | 2021-09-24 | 平安国际智慧城市科技股份有限公司 | Method, device and equipment for processing deployment errors in operation and maintenance and storage medium |
CN113434321B (en) * | 2021-06-24 | 2022-07-19 | 平安国际智慧城市科技股份有限公司 | Method, device and equipment for processing deployment errors in operation and maintenance and storage medium |
CN115001956A (en) * | 2022-05-24 | 2022-09-02 | 中国平安财产保险股份有限公司 | Server cluster operation method, device, equipment and storage medium |
CN115001956B (en) * | 2022-05-24 | 2023-06-16 | 中国平安财产保险股份有限公司 | Method, device, equipment and storage medium for running server cluster |
Also Published As
Publication number | Publication date |
---|---|
CN109918089B (en) | 2022-07-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109918089A (en) | A kind of software deployment method and system | |
CN112839111B (en) | System, method, and medium for customizable event-triggered computation at edge locations | |
CN100544272C (en) | Network apparatus management system and control method thereof | |
CN101355524B (en) | Method, system, server and terminal for processing information | |
EP3125117A1 (en) | Update management system and update management method | |
US8825750B2 (en) | Application server management system, application server management method, management apparatus, application server and computer program | |
CN110233881A (en) | Service request processing method, device, equipment and storage medium | |
US6757901B1 (en) | Method and system for setting expressions in network management notifications at an agent | |
CN107181804B (en) | The method for down loading and device of resource | |
CN107465666A (en) | A kind of client ip acquisition methods and device | |
CN109684155B (en) | Monitoring configuration method, device, equipment and readable storage medium | |
CN106657426A (en) | Processing method and device for domain name parsing request, and server | |
CN104954506B (en) | A kind of account management method, terminal device and system | |
CN107315641A (en) | Message queue high-availability system and method based on Qconf | |
CN111917833B (en) | Application method, device and system of client program in cloud environment | |
EP2187586A1 (en) | Facilitating the transmission of electronic mail | |
CN109491895A (en) | Server stress test method and device | |
CN112039710A (en) | Service fault processing method, terminal device and readable storage medium | |
CN103778026A (en) | Object calling method and device | |
CN107707689A (en) | A kind of DHCP message processing method, Dynamic Host Configuration Protocol server and gateway device | |
JP3766540B2 (en) | Notification transmission method in network including notification service and network for using the same | |
CN110636072B (en) | Target domain name scheduling method, device, equipment and storage medium | |
CN113038394B (en) | Session binding relationship processing method and device, electronic equipment and readable medium | |
CN105721231A (en) | Service quality sensing detection method and service quality sensing detection device | |
CN107872493A (en) | A kind of information processing method, terminal and server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20220726 |
|
CF01 | Termination of patent right due to non-payment of annual fee |