CN110096285A - Dispositions method, device, computer equipment and the storage medium of software systems - Google Patents

Dispositions method, device, computer equipment and the storage medium of software systems Download PDF

Info

Publication number
CN110096285A
CN110096285A CN201910354394.3A CN201910354394A CN110096285A CN 110096285 A CN110096285 A CN 110096285A CN 201910354394 A CN201910354394 A CN 201910354394A CN 110096285 A CN110096285 A CN 110096285A
Authority
CN
China
Prior art keywords
deployment
verification
resource
file
destination node
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910354394.3A
Other languages
Chinese (zh)
Other versions
CN110096285B (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.)
Hangzhou Dt Dream Technology Co Ltd
Original Assignee
Hangzhou Dt Dream 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 Hangzhou Dt Dream Technology Co Ltd filed Critical Hangzhou Dt Dream Technology Co Ltd
Priority to CN201910354394.3A priority Critical patent/CN110096285B/en
Publication of CN110096285A publication Critical patent/CN110096285A/en
Application granted granted Critical
Publication of CN110096285B publication Critical patent/CN110096285B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention proposes the dispositions method and device of a kind of software systems, wherein this method comprises: obtaining this deployment resource of destination node corresponding with the destination node marking by requesting in response to the deployment including destination node marking to software systems;This described deployment resource is handled, obtain this deployment resource verification and;Inquire it is preset verification and database in the presence or absence of the destination node last time deployment resource verification and;If it exists, then whether unanimously described this of judgement dispose the verification of resource and with the verification of last time deployment resource and;If inconsistent, according to destination node described in this described deployment resource deployment.Compared in the related technology, the whether consistent mode of the deployment resource disposed twice by comparing front and back is to determine whether need to redeploy destination node according to corresponding deployment resource, deployment way based on verification sum, it can quickly judge whether need to redeploy destination node, it is not necessary that the deployment file disposed every time is backed up, occupied space is few, disposes high-efficient.

Description

Dispositions method, device, computer equipment and the storage medium of software systems
Technical field
The present invention relates to software deployment technologies field more particularly to a kind of dispositions methods of software systems, device, computer Equipment and storage medium.
Background technique
Large software system especially distributed system generally comprises multiple nodes, and different clothes are run on each node Business.The deployment of large software system is usually relatively complex, and step is relatively more, and each step is related to multiple nodes, deployment failure or Person needs to adjust the case where redeploying frequent occurrence.
In the related technology, some schemes are to redeploying whether need to carry out some step some node in the process again Deployment does not make a decision, and simply carries out repeating deployment., can be to whether needing to some when some schemes carry out redeploying operation Some node in step, which redeploys, to be judged, the scheme taken is:
(1) for the increase of file and modification, the file disposed originally is backed up in deployment, is compared when redeploying Compared with if modification is consistent, it is believed that do not need to execute deployment movement again;
(2) for the instructing combination of execution, original instructing combination is recorded in deployment, is compared when redeploying, If instructing combination is consistent, it is believed that do not need to execute deployment movement again.
The above-mentioned judgement scheme that redeploys is initiated to occupy more disk space on node in deployment, and executes Generally take a long time.
Summary of the invention
The present invention is directed to solve at least some of the technical problems in related technologies.
For this purpose, the first purpose of this invention is to propose a kind of dispositions method of software systems.
Second object of the present invention is to propose a kind of deployment device of software systems.
Third object of the present invention is to propose a kind of computer equipment.
Fourth object of the present invention is to propose a kind of storage medium.
In order to achieve the above object, first aspect present invention embodiment proposes a kind of dispositions method of software systems, comprising:
It requests, obtains and the destination node marking pair in response to the deployment including destination node marking to software systems This deployment resource for the destination node answered;
This described deployment resource is handled, obtain this deployment resource verification and;
Inquire it is preset verification and database in the presence or absence of the destination node last time deployment resource verification and;
If it exists, then the verification of judgement this deployment resource and with the verification of last time deployment resource and whether one It causes;
If inconsistent, according to destination node described in this described deployment resource deployment.
Further, the last time in the preset verification of the inquiry and database with the presence or absence of the destination node is disposed The verification of resource and later, the method also includes:
If there is no the last time of the destination node in the preset verification and database to dispose resource, according to this Dispose destination node described in resource deployment;
Further, the verification of this deployment resource described in the judgement and with the verification of last time deployment resource and Whether it is consistent after, the method also includes:
If described this disposes the verification of resource and with the verification of last time deployment resource and unanimously, refusal is according to this Destination node described in secondary deployment resource deployment.
Further, this described deployment resource includes this deployment file and/or this is executed instruction;
It is described that this described deployment resource is handled, obtain this deployment resource verification and, comprising:
When this described deployment resource includes this described deployment file, the verification of this deployment file is calculated With;
When this described deployment resource includes that described this executes instruction, the verification that this is executed instruction is calculated With.
Further, when this described deployment resource includes this described deployment file, this portion described in the calculating Affix one's name to file verification and, comprising:
When the updating type of this deployment file is to increase type or modification type, this described deployment text is calculated The verification of the file content of part and;
When the updating type of this deployment file is to delete type, the complete trails of this deployment file is calculated The verification of filename and.
Further, described when this described deployment resource includes this described deployment file, calculate this described portion Affix one's name to file verification and, further includes:
When the updating type of this deployment file is to increase type or modification type, this described deployment text is calculated The verification of the complete trails filename of part and.
Further, described when this described deployment resource includes that described this executes instruction, it calculates described this and holds Row instruction verification and, comprising:
The record script file that this is executed instruction is obtained, the verification of the file content of the script file is calculated With;
Obtain described this and execute instruction corresponding environmental information, calculate the environmental information verification and.
Further, the method also includes:
By the verification of this deployment resource and save into the preset verification and database.
The dispositions method of software systems provided in an embodiment of the present invention, by response to software systems include target section The deployment of point identification is requested, this deployment resource of destination node corresponding with the destination node marking is obtained;To described Secondary deployment resource is handled, obtain this deployment resource verification and;Inquire it is preset verification and database in whether There are the last time of the destination node deployment resource verification and;If it exists, then the verification of judgement this deployment resource and With the last time deployment resource verification and whether unanimously;If inconsistent, according to mesh described in this described deployment resource deployment Mark node.Compared to the whether consistent mode of deployment resource in the related technology, disposed twice by comparing front and back to determine whether It needs to redeploy destination node according to corresponding deployment resource, based on the deployment way of verification sum, can quickly sentence It is disconnected to go out whether to need to redeploy destination node, without backing up the deployment file disposed every time, occupy empty Between it is few, dispose high-efficient.
In order to achieve the above object, second aspect of the present invention embodiment proposes a kind of deployment device of software systems, comprising:
Obtain module, for being requested in response to the deployment to software systems including destination node marking, acquisition with it is described This deployment resource of the corresponding destination node of destination node marking;
Processing module, for handling this described deployment resource, obtain this deployment resource verification and;
Enquiry module, for inquiring the last time deployment money in preset verification and database with the presence or absence of the destination node The verification in source and;
Judgment module, for there are the last time of destination node deployment resources in the preset verification and database Verification and when, then the verification of judgement this deployment resource and with the verification of last time deployment resource and whether unanimously;
Deployment module, for the verification in this deployment resource and with the verification of last time deployment resource and unanimously When, then destination node described in resource deployment is disposed according to described this.
Further, the deployment module, if being also used to not inquire in the preset verification and database described The last time of destination node disposes resource, then the destination node according to this deployment resource deployment;
Further, the deployment module, if being also used to the verification of this deployment resource and being disposed with the last time The verification of resource with it is consistent, then refusal according to this deployment resource deployment described in destination node.
Further, this described deployment resource includes this deployment file and/or this is executed instruction;
The processing module is specifically used for:
When this described deployment resource includes this described deployment file, the verification of this deployment file is calculated With;
When this described deployment resource includes that described this executes instruction, the verification that this is executed instruction is calculated With.
Further, when this described deployment resource includes this described deployment file, the processing module is specifically used In:
When the updating type of this deployment file is to increase type or modification type, this described deployment text is calculated The verification of the file content of part and;
When the updating type of this deployment file is to delete type, the complete trails of this deployment file is calculated The verification of filename and.
Further, described when this described deployment resource includes this described deployment file, the processing module tool Body is used for:
When the updating type of this deployment file is to increase type or modification type, this described deployment text is calculated The verification of the complete trails filename of part and.
Further, described when this described deployment resource includes that described this executes instruction, the processing module tool Body is used for:
The record script file that this is executed instruction is obtained, the verification of the file content of the script file is calculated With;
Obtain described this and execute instruction corresponding environmental information, calculate the environmental information verification and.
The deployment device of software systems provided in an embodiment of the present invention, by response to software systems include target section The deployment of point identification is requested, this deployment resource of destination node corresponding with the destination node marking is obtained;To described Secondary deployment resource is handled, obtain this deployment resource verification and;Inquire it is preset verification and database in whether There are the last time of the destination node deployment resource verification and;If it exists, then the verification of judgement this deployment resource and With the last time deployment resource verification and whether unanimously;If inconsistent, according to mesh described in this described deployment resource deployment Mark node.Compared to the whether consistent mode of deployment resource in the related technology, disposed twice by comparing front and back to determine whether It needs to redeploy destination node according to corresponding deployment resource, based on the deployment way of verification sum, can quickly sentence It is disconnected to go out whether to need to redeploy destination node, without backing up the deployment file disposed every time, occupy empty Between it is few, dispose high-efficient.
In order to achieve the above object, third aspect present invention embodiment proposes a kind of computer equipment, including memory, processing On a memory and the computer program that can run on a processor, when processor execution described program, is realized for device and storage The dispositions method of software systems as described above.
To achieve the goals above, fourth aspect present invention embodiment proposes a kind of storage medium, when the storage is situated between When instruction in matter is executed by processor, the dispositions method of software systems as described above is realized.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partially become from the following description Obviously, or practice through the invention is recognized.
Detailed description of the invention
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments Obviously and it is readily appreciated that, in which:
Fig. 1 is a kind of flow diagram of the dispositions method of software systems provided in an embodiment of the present invention;
Fig. 2 is a kind of structural schematic diagram of the deployment device of software systems provided in an embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of computer equipment provided in an embodiment of the present invention.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached The embodiment of figure description is exemplary, it is intended to is used to explain the present invention, and is not considered as limiting the invention.
Below with reference to the accompanying drawings the dispositions method and device of the software systems of the embodiment of the present invention are described.
Fig. 1 is a kind of flow diagram of the dispositions method of software systems provided in an embodiment of the present invention.The present embodiment mentions Supplied a kind of dispositions method of software systems, executing subject is the deployment device of software systems, the executing subject by hardware and/ Or software composition.The deployment device of software systems is specifically as follows hardware device, such as terminal device, background server etc., or The software installed on person's hardware device or application program etc..
As shown in Figure 1, the dispositions method of the software systems, comprising the following steps:
S101, it requests, obtains and the destination node in response to the deployment including destination node marking to software systems Identify this deployment resource of corresponding destination node.
Specifically, software systems include multiple nodes, and each corresponding resource of node deployment is realized and run on each node Different services.
During to software system deployment, multiple deployment movements are needed to be implemented, each deployment movement is related to several Node.Deployment movement is broadly divided into files classes and operation class, wherein the deployment of text class acts for example on several nodes to portion Administration's file is updated operation, wherein it includes one or more in following operation for updating operation: increasing, delete, modification;Operate class Deployment movement be, for example, executed on several nodes such as create directory, restart service, modification host name, master synchronization time Etc. executing instruction.
In practical applications, it is possible that the case where adjustment is disposed, such as deployment scheme are changed, needs again Deployment software system, it is also possible to the case where will appear deployment failure, at this moment be also required to redeploy software systems.
In the present embodiment, destination node can be understood as adjustment deployment scheme or deployment unsuccessfully etc. is related to node.For example, The deployment scheme of the destination node is adjusted, alternatively, there is deployment failure when disposing to the destination node.Software system Developer unite when redeploying software systems, the deployment resource of each node can be reconfigured.The deployment device of software systems Receive deployment request when, to deployment request parse, obtain deployment request in destination node marking, then obtain with This deployment resource of the corresponding destination node of destination node marking.
In the present embodiment, the deployment resource of files classes include increase type deployment file, modify type deployment file, Delete the deployment file of type.
Wherein, the deployment file for increasing type can be understood as needing to be deployed in node so that the corresponding clothes of node operation The file of business.The deployment file for increasing type is, for example, configuration file, executable file, data file.
Wherein, the deployment file for modifying type is, for example, in the files such as record profile, executable file, data file Modify the file of content.For example, certain parameter modification adjustment in configuration file, the deployment file for modifying type record configuration text Part certain parameter values adjusted.
In another example there is a configuration file to share 3 row contents:
Key1=value1
Key2=value2
Key3=value3
When redeploying, software system development personnel need to modify to the 2-3 row of configuration file, then portion again In the deployment resource of administration, the deployment file of type is modified including one, the file content of the deployment file of the modification class is modification The content of 2-3 row afterwards.It is subsequent when destination node executes deployment movement, the configuration file that is related to will be carried out corresponding Modification.
It should be pointed out that modifying it to the deployment file of original version in the deployment file using modification type Before, the deployment file of original version is transferred in a backup directory, to need the portion of the original version when deployment next time When administration's file makes different modifications, the deployment file of the original version is transferred back to from backup directory.
Wherein, the deployment file for deleting type can be understood as the file for no longer needing to dispose on node.Delete type Deployment file be, for example, configuration file, executable file, data file, modification file etc..It should be pointed out that when to save When deleting certain deployment files in point, the deployment file that need to be deleted can be transferred in a backup directory, so as to next portion When needing to dispose the deployment file again when administration, it can be transferred back to and from backup target.
S102, this described deployment resource is handled, obtain this deployment resource verification and.
In the present embodiment, when this described deployment resource includes this described deployment file, this described deployment is calculated The verification of file and;When this described deployment resource includes that described this executes instruction, this is executed instruction described in calculating Verification and.Wherein it is possible to using SHA1 algorithm, SHA256 algorithm, MD5 (MD5Message-Digest Algorithm) algorithm In any algorithm process this deployment resource obtain this deployment resource verification and, certainly, obtain this deployment resource The mode of verification sum is not limited to aforesaid way.Wherein, SHA1 algorithm, SHA256 algorithm are Secure Hash Algorithm.
Specifically, when the updating type of this deployment file is to increase type or modification type, described is calculated The verification of the file content of secondary deployment file and;When the updating type of this deployment file is to delete type, institute is calculated State the complete trails filename of this deployment file verification and.It should be pointed out that being needed when this deployment file is multiple Calculate the file content of this each deployment file verification and.
For example, deploying three files is respectively that dir1/file1 (increases when carrying out second of deployment to destination node Type), dir2/file2 (delete type), dir3/file3 (modification type), at this moment, calculate the file content of dir1/file1 Verification and be 3eade08, calculate the verification of the complete trails filename of dir2/file2 and for 40bb10d, calculate dir3/ The verification of the file content of file3 and be eedcccf.Wherein, dir1, dir2, dir3 are respectively different pathnames, file1, File2, file3 are respectively different filenames.
It should be pointed out that calculate increase type or modify type this deployment file file content verification and When, can also calculate increase type or modify type this deployment file complete trails filename verification and.For example, also counting Calculate the verification and the system-wide of also calculating dir3/file3 (modification type) of the complete trails filename of dir1/file1 (increasing type) The verification of diameter filename and.It should be pointed out that needing to calculate this each deployment file when this deployment file is multiple Complete trails filename it is corresponding verification and.
It should be pointed out that when the file disposed is to delete the file of type, the corresponding file for deleting type can be with The resource mark with the file for deleting type being deployed in destination node is deleted according to the resource identification for the file for deleting type Sensible corresponding deployment file, the corresponding school of complete trails filename of the file without comparing the deletion type that front and back is disposed twice It tests and therefore, calculates the corresponding verification of complete trails filename of the file of the deletion type and be not required.
Specifically, described when this described deployment resource includes that described this executes instruction, calculate this described execution The verification of instruction and, comprising: the record script file that this is executed instruction is obtained, in the file for calculating the script file The verification of appearance and;Obtain described this and execute instruction corresponding environmental information, calculate the environmental information verification and.
For example, in this deployment, the deployment movement of the following operation class of destination node deployment:
For the deployment movement of aforesaid operations class, each script file executed instruction is recorded firstly, obtaining, is counted respectively Calculate the file content of each script file verification and.It should be pointed out that each script file executed instruction has been calculated File content verification and later, can delete and execute instruction corresponding script file, to save memory space.Secondly, obtaining Take it is each execute instruction relevant environmental information, calculate separately each environmental information executed instruction verification and, relevant ring Border information is, for example, execution route, environmental variance etc..
With the presence or absence of the verification of the last time deployment resource of the destination node in S103, the preset verification of inquiry and database With.
In the present embodiment, the deployment resource of each node is corresponding after preset verification is disposed every time with database purchase history Verification and.Then after the completion of this deployment, by the verification of this deployment resource and save into preset verification and database.
Specifically, files classes deployment is acted, establishes each node identification, the deployment number of each node identifies, is every The files classes deployment resource updates type of a node, the files classes deployment resource identification of resource of each node, each node Files classes dispose the corresponding relationship of verification and (verification including file content and with the verification of complete trails filename and) of resource And it stores into preset verification and database.
Wherein, node identification is, for example, the title of node;Number mark is disposed for characterizing deployment number, disposes number mark Knowing is, for example, 1, and characterization deployment for the first time, deployment number mark is, for example, 2, and characterization is disposed for the second time;Files classes dispose resource more New type is to increase, modify, delete etc.;It is, for example, complete trails filename that files classes, which dispose resource identification,.
For example, deploying files classes resource is that dir1/file1 (increases when dispose for the first time to destination node A Type) and dir2/file2 (increasing type);When carrying out second of deployment to destination node A, deploying files classes resource is Dir1/file1 (increasing type), dir2/file2 (deleting type), dir3/file3 (modification type).
Then in preset verification and database, the relevant information of memory node A is as shown in table 1.In table 1, increases, repairs Change, delete the verification of the complete trails filename of the deployment file of type and can store, can not also store.If storing increasing Add, modify, deleting the complete trails filename of the deployment file of type verification and, pathname verification when, compare deployment file Complete trails filename verification and the comparison procedure of pathname can be accelerated.
Table 1
Specifically, for operation class deployment movement, each node identification is established, the deployment number of each node identifies, is every The operation class deployment resource identification of resource of a node, the operation class of each node dispose the verification of resource and (including in files The verification of appearance and with the verification of environmental information and) corresponding relationship and store to it is preset verification and database in.
Wherein, node identification is, for example, the title of node;Number mark is disposed for characterizing deployment number, disposes number mark Knowing is, for example, 1, and characterization deployment for the first time, deployment number mark is, for example, 2, and characterization is disposed for the second time;Files classes dispose resource mark Know is, for example, to execute instruction name.
For example, also deploying following operation class deployment movement when dispose for the first time to destination node A:
Mkdir dir1/dir2/dir3//create a directory belongs to the deployment movement of operation class
Service restart mon//restart a service belongs to the deployment movement of operation class
When carrying out second of deployment to destination node A, following operation class deployment movement is also deployed:
Mkdir dir1/dir2/dir3//create a directory belongs to the deployment movement of operation class
Service restart mon//restart a service belongs to the deployment movement of operation class
The hostnamectl set-hostname myserver//entitled myserver of setting host belongs to operation class Deployment movement
Ntpdate 192.168.1.11//instructed using ntpdate from when time server 192.168.1.11 synchronization Between, belong to the deployment movement of operation class
Then in preset verification and database, the relevant information of memory node A is as shown in table 2.
Table 2
In the present embodiment, if it is preset verification and data inventory destination node last time deployment resource verification and, Further judge the verification of this deployment resource and with the verification of last time deployment resource and whether unanimously;If inconsistent, Illustrating software system development, person has reconfigured the deployment resource of the destination node, at this moment, disposes resource deployment institute according to this State destination node;If consistent, this does not reconfigure the deployment resource of the destination node by the person that illustrates software system development, this When, refusal destination node according to this deployment resource deployment, that is to say, that this deployment does not carry out again destination node Deployment.
In the present embodiment, if there is no the verifications of the last time of destination node deployment resource in preset verification and database With, then explanation the destination node is disposed for the first time, then directly according to this deployment resource deployment destination node.
S104, if it exists, then the verification of judgement this deployment resource and with the verification of last time deployment resource and It is whether consistent.
If S105, inconsistent, destination node described in this deployment resource deployment according to.
In the present embodiment, when being redeployed to destination node, only need to by this deployment resource associated check and Be stored in it is preset verification and in last time deployment resource associated check and be compared, if verify and change, Corresponding deployment movement is executed in destination node, if verification with it is consistent, illustrate this not to corresponding deployment act into Row redeploys, without redeploying again according to corresponding deployment resource to destination node.
It should be pointed out that if comparing respectively when the deployment resource of destination node includes multiple deployment files or executes instruction The verification of more each deployment file or the front and back executed instruction twice and.
In order to enable those skilled in the art is more apparent from the deployment side of the software systems of the embodiment of the present invention Method illustrates in conjunction with Tables 1 and 2:
For example, when carrying out second of deployment to destination node A, in the associated check for calculating secondary deployment resource With, inquire it is preset verification and database obtain first time deployment resource associated check and, according to secondary deployment money The associated check in source and destination node is disposed with the comparison result of the associated check sum of the deployment resource of first time.
By comparing analysis, determines the verification and difference of the file content of the front and back file dir1/file1 twice, illustrate soft The developer of part system is modified the file content of dir1/file1 when second disposes, at this moment, by this Dir1/file1 is deployed in destination node.
Since this deletes file dir2/file2, this document is directly deleted in destination node to the file of deletion Dir2/file2 is not needed and the associated check of the file dir2/file2 of last time and is compared.For the ease of managing, It, can be with the verification of the complete trails filename of calculation document dir2/file2 after having executed to this deployment of destination node With, and correspond to and store into preset verification and database.
By comparing analysis, the file dir3/file3 for modifying type is this deployment but last time is not disposed, at this moment, The file dir3/file3 of the modification type is disposed in destination node.
By comparing analysis, the verification of " the createing directory " of first time this environmental information executed instruction is determined and with The verification and difference of secondary " createing directory " this environmental information executed instruction, it is at this moment, right when carrying out second of deployment Destination node, which executes, secondary creaties directory that this is executed instruction;
By comparing analysis, when disposing for second, host name and the verification of master synchronization time are set and are to newly increase , at this moment, when carrying out second of deployment, setting host name is executed to destination node and this execution of master synchronization time refers to It enables.
The dispositions method of software systems provided in an embodiment of the present invention, by response to software systems include target section The deployment of point identification is requested, this deployment resource of destination node corresponding with the destination node marking is obtained;To described Secondary deployment resource is handled, obtain this deployment resource verification and;Inquire it is preset verification and database in whether There are the last time of the destination node deployment resource verification and;If it exists, then the verification of judgement this deployment resource and With the last time deployment resource verification and whether unanimously;If inconsistent, according to mesh described in this described deployment resource deployment Mark node.Compared to the whether consistent mode of deployment resource in the related technology, disposed twice by comparing front and back to determine whether It needs to redeploy destination node according to corresponding deployment resource, based on the deployment way of verification sum, can quickly sentence It is disconnected to go out whether to need to redeploy destination node, without backing up the deployment file disposed every time, occupy empty Between it is few, dispose high-efficient.
Fig. 2 is a kind of structural schematic diagram of the deployment device of software systems provided in an embodiment of the present invention.The present embodiment mentions Supplied a kind of deployment device of software systems, which is the executing subject of the dispositions method of software systems, the executing subject by Hardware and/or software composition.As shown in Fig. 2, the deployment device of the software systems includes: to obtain module 11, processing module 12, look into Ask module 13, judgment module 14, deployment module 15.
Module 11 is obtained, for being requested in response to the deployment including destination node marking to software systems, acquisition and institute State this deployment resource of the corresponding destination node of destination node marking;
Processing module 12 obtains the verification of this deployment resource for handling this described deployment resource With;
Enquiry module 13 is disposed for inquiring the last time in preset verification and database with the presence or absence of the destination node The verification of resource and;
Judgment module 14, for there are the deployment of the last time of the destination node to provide in the preset verification and database The verification in source and when, then the verification of judgement this deployment resource and with the verification of last time deployment resource and whether one It causes;
Deployment module 15, for the verification in this deployment resource and the verification and one with last time deployment resource When cause, then destination node described in resource deployment is disposed according to described this.
Further, the deployment module 15, if being also used to not inquire institute in the preset verification and database The last time deployment resource of destination node is stated, then the destination node according to this deployment resource deployment;
Further, the deployment module 15, if be also used to it is described this deployment resource verification and with the last time portion Affix one's name to the verification of resource and consistent, then refuse according to this dispose resource deployment described in destination node.
Further, this described deployment resource includes this deployment file and/or this is executed instruction;
The processing module 12 is specifically used for:
When this described deployment resource includes this described deployment file, the verification of this deployment file is calculated With;
When this described deployment resource includes that described this executes instruction, the verification that this is executed instruction is calculated With.
Further, when this described deployment resource includes this described deployment file, the processing module 12 is specific For:
When the updating type of this deployment file is to increase type or modification type, this described deployment text is calculated The verification of the file content of part and;
When the updating type of this deployment file is to delete type, the complete trails of this deployment file is calculated The verification of filename and.
Further, described when this described deployment resource includes this described deployment file, the processing module 12 It is specifically used for:
When the updating type of this deployment file is to increase type or modification type, this described deployment text is calculated The verification of the complete trails filename of part and.
Further, described when this described deployment resource includes that described this executes instruction, the processing module 12 It is specifically used for:
The record script file that this is executed instruction is obtained, the verification of the file content of the script file is calculated With;
Obtain described this and execute instruction corresponding environmental information, calculate the environmental information verification and.
It should be noted that the explanation of the aforementioned dispositions method embodiment to software systems is also applied for the embodiment Software systems deployment device, details are not described herein again.
The deployment device of software systems provided in an embodiment of the present invention, by response to software systems include target section The deployment of point identification is requested, this deployment resource of destination node corresponding with the destination node marking is obtained;To described Secondary deployment resource is handled, obtain this deployment resource verification and;Inquire it is preset verification and database in whether There are the last time of the destination node deployment resource verification and;If it exists, then the verification of judgement this deployment resource and With the last time deployment resource verification and whether unanimously;If inconsistent, according to mesh described in this described deployment resource deployment Mark node.Compared to the whether consistent mode of deployment resource in the related technology, disposed twice by comparing front and back to determine whether It needs to redeploy destination node according to corresponding deployment resource, based on the deployment way of verification sum, can quickly sentence It is disconnected to go out whether to need to redeploy destination node, without backing up the deployment file disposed every time, occupy empty Between it is few, dispose high-efficient.
Fig. 3 is a kind of structural schematic diagram of computer equipment provided in an embodiment of the present invention.The computer equipment includes:
Memory 1001, processor 1002 and it is stored in the calculating that can be run on memory 1001 and on processor 1002 Machine program.
Processor 1002 realizes the dispositions method of the software systems provided in above-described embodiment when executing described program.
Further, computer equipment further include:
Communication interface 1003, for the communication between memory 1001 and processor 1002.
Memory 1001, for storing the computer program that can be run on processor 1002.
Memory 1001 may include high speed RAM memory, it is also possible to further include nonvolatile memory (non- Volatile memory), a for example, at least magnetic disk storage.
Processor 1002 realizes the dispositions method of software systems described in above-described embodiment when for executing described program.
If memory 1001, processor 1002 and the independent realization of communication interface 1003, communication interface 1003, memory 1001 and processor 1002 can be connected with each other by bus and complete mutual communication.The bus can be industrial standard Architecture (Industry Standard Architecture, referred to as ISA) bus, external equipment interconnection (Peripheral Component, referred to as PCI) bus or extended industry-standard architecture (Extended Industry Standard Architecture, referred to as EISA) bus etc..The bus can be divided into address bus, data/address bus, control Bus processed etc..Only to be indicated with a thick line in Fig. 3, it is not intended that an only bus or a type of convenient for indicating Bus.
Optionally, in specific implementation, if memory 1001, processor 1002 and communication interface 1003, are integrated in one It is realized on block chip, then memory 1001, processor 1002 and communication interface 1003 can be completed mutual by internal interface Communication.
Processor 1002 may be a central processing unit (Central Processing Unit, referred to as CPU), or Person is specific integrated circuit (Application Specific Integrated Circuit, referred to as ASIC) or quilt It is configured to implement one or more integrated circuits of the embodiment of the present invention.
The present embodiment also provides a kind of storage medium, is stored thereon with computer program, which is characterized in that the program is located Reason device realizes the dispositions method of software systems as described above when executing.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not It must be directed to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be in office It can be combined in any suitable manner in one or more embodiment or examples.In addition, without conflicting with each other, the skill of this field Art personnel can tie the feature of different embodiments or examples described in this specification and different embodiments or examples It closes and combines.
In addition, term " first ", " second " are used for descriptive purposes only and cannot be understood as indicating or suggesting relative importance Or implicitly indicate the quantity of indicated technical characteristic.Define " first " as a result, the feature of " second " can be expressed or Implicitly include at least one this feature.In the description of the present invention, the meaning of " plurality " is at least two, such as two, three It is a etc., unless otherwise specifically defined.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes It is one or more for realizing custom logic function or process the step of executable instruction code module, segment or portion Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discussed suitable Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be of the invention Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment It sets.The more specific example (non-exhaustive list) of computer-readable medium include the following: there is the electricity of one or more wirings Interconnecting piece (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage Or firmware is realized.Such as, if realized with hardware in another embodiment, following skill well known in the art can be used Any one of art or their combination are realized: have for data-signal is realized the logic gates of logic function from Logic circuit is dissipated, the specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (PGA), scene can compile Journey gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, each functional unit in each embodiment of the present invention can integrate in a processing module It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such as Fruit is realized and when sold or used as an independent product in the form of software function module, also can store in a computer In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..Although having been shown and retouching above The embodiment of the present invention is stated, it is to be understood that above-described embodiment is exemplary, and should not be understood as to limit of the invention System, those skilled in the art can be changed above-described embodiment, modify, replace and become within the scope of the invention Type.

Claims (18)

1. a kind of dispositions method of software systems characterized by comprising
It requests, obtains corresponding with the destination node marking in response to the deployment including destination node marking to software systems This deployment resource of destination node;
This described deployment resource is handled, obtain this deployment resource verification and;
Inquire it is preset verification and database in the presence or absence of the destination node last time deployment resource verification and;
If it exists, then whether unanimously described this of judgement dispose the verification of resource and with the verification of last time deployment resource and;
If inconsistent, according to destination node described in this described deployment resource deployment.
2. the method according to claim 1, wherein whether being deposited in the preset verification of the inquiry and database In the verification and later of the last time deployment resource of the destination node, further includes:
If there is no the last time of the destination node in the preset verification and database to dispose resource, according to this deployment Destination node described in resource deployment.
3. the method according to claim 1, wherein the verification of this deployment resource described in the judgement and with The verification of last time deployment resource with it is whether consistent after, further includes:
If described this disposes the verification of resource and with the verification of last time deployment resource and unanimously, refuse according to this portion Affix one's name to destination node described in resource deployment.
4. method according to any one of claims 1 to 3, which is characterized in that this described deployment resource includes this portion It affixes one's name to file and/or this is executed instruction;
It is described that this described deployment resource is handled, obtain this deployment resource verification and, comprising:
When this described deployment resource includes this described deployment file, calculate this deployment file verification and;
When this described deployment resource includes that described this executes instruction, calculate the verification that this is executed instruction and.
5. according to the method described in claim 4, it is characterized in that, including this described deployment text in this described deployment resource When part, the verification of this deployment file described in the calculating and, comprising:
When the updating type of this deployment file is to increase type or modification type, this deployment file is calculated The verification of file content and;
When the updating type of this deployment file is to delete type, the complete trails file of this deployment file is calculated Name verification and.
6. according to the method described in claim 4, it is characterized in that, described include this described portion in this described deployment resource When affixing one's name to file, calculate this deployment file verification and, further includes:
When the updating type of this deployment file is to increase type or modification type, this deployment file is calculated The verification of complete trails filename and.
7. according to the method described in claim 4, it is characterized in that, described hold in this described deployment resource including described this When row instruction, calculate the verification that this is executed instruction and, comprising:
Obtain the record script file that this is executed instruction, calculate the file content of the script file verification and;
Obtain described this and execute instruction corresponding environmental information, calculate the environmental information verification and.
8. the method according to claim 1, wherein further include:
By the verification of this deployment resource and save into the preset verification and database.
9. a kind of deployment device of software systems characterized by comprising
Module is obtained, for being requested in response to the deployment including destination node marking to software systems, is obtained and the target This deployment resource of the corresponding destination node of node identification;
Processing module, for handling this described deployment resource, obtain this deployment resource verification and;
Enquiry module, for inquiring in preset verification and database with the presence or absence of the last time deployment resource of the destination node Verification and;
Judgment module, for there are the schools of the last time of destination node deployment resource in the preset verification and database Test and when, then the verification of judgement this deployment resource and with the verification of last time deployment resource and whether unanimously;
Deployment module, for it is described this deployment resource verification and with the last time deployment resource verification and it is consistent when, The then destination node according to this described deployment resource deployment.
10. device according to claim 9, which is characterized in that the deployment module, if being also used in the preset school It tests and disposed resource with the last time for not inquiring the destination node in database, then the target according to this deployment resource deployment Node.
11. device according to claim 9, which is characterized in that the deployment module, if being also used to this described deployment money The verification in source and with the verification of last time deployment resource and consistent, then refusal according to this dispose resource deployment described in target section Point.
12. 0 to 11 described in any item devices according to claim 1, which is characterized in that this described deployment resource includes this Deployment file and/or this execute instruction;
The processing module is specifically used for:
When this described deployment resource includes this described deployment file, calculate this deployment file verification and;
When this described deployment resource includes that described this executes instruction, calculate the verification that this is executed instruction and.
13. device according to claim 12, which is characterized in that this deployment described in including in this described deployment resource When file, the processing module is specifically used for:
When the updating type of this deployment file is to increase type or modification type, this deployment file is calculated The verification of file content and;
When the updating type of this deployment file is to delete type, the complete trails file of this deployment file is calculated Name verification and.
14. device according to claim 12, which is characterized in that it is described this described deployment resource include it is described this When deployment file, the processing module is specifically used for:
When the updating type of this deployment file is to increase type or modification type, this deployment file is calculated The verification of complete trails filename and.
15. device according to claim 12, which is characterized in that it is described this described deployment resource include it is described this When executing instruction, the processing module is specifically used for:
Obtain the record script file that this is executed instruction, calculate the file content of the script file verification and;
Obtain described this and execute instruction corresponding environmental information, calculate the environmental information verification and.
16. device according to claim 9, which is characterized in that the processing module is also used to:
By the verification of this deployment resource and save into the preset verification and database.
17. a kind of computer equipment characterized by comprising
Memory, processor and storage are on a memory and the computer program that can run on a processor, which is characterized in that institute State the dispositions method realized when processor executes described program such as software systems described in any one of claims 1-8.
18. a kind of storage medium, is stored thereon with computer program, which is characterized in that the realization when program is executed by processor Such as the dispositions method of software systems described in any one of claims 1-8.
CN201910354394.3A 2019-04-29 2019-04-29 Deployment method and device of software system, computer equipment and storage medium Active CN110096285B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910354394.3A CN110096285B (en) 2019-04-29 2019-04-29 Deployment method and device of software system, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910354394.3A CN110096285B (en) 2019-04-29 2019-04-29 Deployment method and device of software system, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110096285A true CN110096285A (en) 2019-08-06
CN110096285B CN110096285B (en) 2020-11-27

Family

ID=67446328

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910354394.3A Active CN110096285B (en) 2019-04-29 2019-04-29 Deployment method and device of software system, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110096285B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113312086A (en) * 2021-06-10 2021-08-27 重庆小易智联智能技术有限公司 Software robot system based on instruction set and robot operation method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104679611A (en) * 2015-03-05 2015-06-03 浙江宇视科技有限公司 Data resource copying method and device
US20150257118A1 (en) * 2012-10-01 2015-09-10 Telefonaktiebolaget L M Ericsson (Publ) Technique for Adapting an RF Receiver Configuration
CN108696595A (en) * 2018-05-28 2018-10-23 郑州云海信息技术有限公司 Distributed type assemblies method of data synchronization, master node, slave node, system and medium
CN109522029A (en) * 2018-11-22 2019-03-26 山东浪潮云信息技术有限公司 A kind of method and device for disposing cloud platform technology component

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150257118A1 (en) * 2012-10-01 2015-09-10 Telefonaktiebolaget L M Ericsson (Publ) Technique for Adapting an RF Receiver Configuration
CN104679611A (en) * 2015-03-05 2015-06-03 浙江宇视科技有限公司 Data resource copying method and device
CN108696595A (en) * 2018-05-28 2018-10-23 郑州云海信息技术有限公司 Distributed type assemblies method of data synchronization, master node, slave node, system and medium
CN109522029A (en) * 2018-11-22 2019-03-26 山东浪潮云信息技术有限公司 A kind of method and device for disposing cloud platform technology component

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113312086A (en) * 2021-06-10 2021-08-27 重庆小易智联智能技术有限公司 Software robot system based on instruction set and robot operation method

Also Published As

Publication number Publication date
CN110096285B (en) 2020-11-27

Similar Documents

Publication Publication Date Title
JP7212040B2 (en) Content Management Client Synchronization Service
US11741046B2 (en) Method and apparatus for creating system disk snapshot of virtual machine
US10148730B2 (en) Network folder synchronization
US10007499B2 (en) Decoupled installation of data management systems
CN104199666B (en) A kind of application program Dynamic Configuration and device
US8769494B2 (en) Globally sound and consistent configuration management for distributed datacenter components
US7640406B1 (en) Detecting and managing orphan files between primary and secondary data stores for content addressed storage
US7685177B1 (en) Detecting and managing orphan files between primary and secondary data stores
US7873599B2 (en) Backup control apparatus and method eliminating duplication of information resources
RU2417416C2 (en) Solution deployment in server farm
CN103597463B (en) Restore automatically configuring for service
US8255361B2 (en) Method and system for validating differential computer system update
US10339113B2 (en) Method and system for effecting incremental changes to a repository
US7599971B1 (en) Detecting and managing missing parents between primary and secondary data stores for content addressed storage
CN106406919A (en) Terminal device pre-loaded application management method and terminal device
CN110162429A (en) System repair, server and storage medium
CN111684437A (en) Chronologically ordered staggered updated key-value storage system
US20220067065A1 (en) Providing instant and distributed access to a source blob via copy-on-read blobs and link blobs
CN102054041A (en) Method and system for upgrading metadata
CN110096285A (en) Dispositions method, device, computer equipment and the storage medium of software systems
US10339159B2 (en) Overlay dataset
US20030074376A1 (en) File manager for storing several versions of a file
JP2006031608A (en) Computer, storage system, file management method which computer performs, and program
CN110096295A (en) The hot update method and system of multimode mobile application based on ReactNative
US20120005162A1 (en) Managing Copies of Data Structures in File Systems

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