CN107766050A - The dispositions method and device of a kind of heterogeneous applications - Google Patents
The dispositions method and device of a kind of heterogeneous applications Download PDFInfo
- Publication number
- CN107766050A CN107766050A CN201711047571.0A CN201711047571A CN107766050A CN 107766050 A CN107766050 A CN 107766050A CN 201711047571 A CN201711047571 A CN 201711047571A CN 107766050 A CN107766050 A CN 107766050A
- Authority
- CN
- China
- Prior art keywords
- application
- deployment
- son
- sub
- disposed
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The application is related to using deployment technical field, more particularly to the dispositions method and installation method and device of a kind of heterogeneous applications, to before application is disposed by deployment topologies description information to application in the specific deployment topologies of all sub- applications be described, realize the mixing layout to all sub- applications;When being disposed to application, according to the deployment way indicated by sub- application type corresponding to son application currently to be disposed, the unified layout deployment to heterogeneous applications is completed.This method includes:Obtain the deployment topologies description information of more height applications in heterogeneous applications;Mirror image installation file is obtained using source according to the son that son currently to be disposed is applied;According to the deployment way indicated by the sub- application type of son application currently to be disposed, the deployment that mirror image installation file is run on host and completes current son to be disposed and applies by performing deployment Run Script.
Description
Technical field
The application is related to using deployment technical field, more particularly to the dispositions method and device of a kind of heterogeneous applications.
Background technology
With being continuously increased using new demand in use, enterprise updates and safeguarded the tired of major comonomer formula application
Difficult degree also constantly rises;Meanwhile the application of major comonomer formula also in the presence of exploitation, continuation is poor, development rate slowly, poor reliability, adopt
The problems such as with new architecture and newspeak again framework difficulty.In order to solve the above problems, many companies keep to legacy application
Service mode or while carry out containerization transformation to legacy application, using the newly-increased application of micro services tactic pattern framework;Newly
Increasing is applied in framework, is multiple micro services of the small, function phase to single interconnection by the application decomposition of monomer-type, often
Individual micro services complete some specific function as the son application entirely applied, and each micro services operate in a container instance
In.In the development process of newly-increased son application, newly-increased son application generally requires to link with legacy application, completes the biography of data
It is defeated, thus need to dispose legacy application and newly-increased son application respectively;It is also past in the exploitation test phase of newly-increased son application
Complete to verify the test that newly-increased son is applied toward needing to dispose legacy application.
In above process, the generation of heterogeneous applications can be caused, be i.e. both included container beggar in an application and applied, and wrapped again
Include non-container beggar application;Newly-increased son application typically uses container technique rapid deployment:Son is encapsulated in container image file should
The condition depended file bag of running environment required in running and the installation procedure of son application;Son application deployment
When, it is only necessary to container image file is obtained from high in the clouds, and the container image file is run in the host of container operation, with regard to energy
Enough deployment for completing newly-increased son application;The feasibility that legacy application then needs to be transformed according to containerization is by containerization, so as to complete
Rapid deployment;Once legacy application can not be by containerization, it then needs to be based on conventional deployment method as non-container beggar application
Complete deployment;Current conventional deployment method has two kinds:First, applied in server or virtual machine left-hand seat work deployment configuration
Installation procedure, or the installation of application is pushed to after server by installation tool and carries out deployment configuration again;Second, pass through pin
The file of this or other achievable applications operation completes the deployment of application.
Which results in the generation of following problem:Need to spend time and cost to hold the legacy application for being capable of facilitation
Deviceization is transformed, difficulty it is big and and not all legacy application can be by containerization;It can not be needed by the legacy application of containerization
The application for being different from containerization is individually disposed so that user needs to be familiar with the dispositions method of each application, increase study
Cost;Therefore, a kind of method that can heterogeneous applications be carried out with unified plan turns into current urgent problem to be solved.
The content of the invention
The embodiment of the present application provides a kind of heterogeneous applications dispositions method, can realize to apply containerization and be answered with non-containerization
Unified layout deployment.
First aspect, there is provided a kind of dispositions method of heterogeneous applications, this method include:
Obtain the deployment topologies description information of more height applications in heterogeneous applications;Wherein, the deployment topologies description information
Including:Son is using source, sub- application type and deployment Run Script;The sub- application type is used to indicate to the sub- application
The deployment way taken when being disposed;
Mirror image installation file is obtained using source according to the son of the sub- application currently to be disposed;
According to the deployment way indicated by the sub- application type of the sub- application currently to be disposed, by performing
State deployment Run Script and the current sub- application to be disposed of mirror image installation file completion is run on the host
Deployment.
Second aspect, there is provided a kind of heterogeneous applications dispose device, and the device includes:
First acquisition module, for obtaining the deployment topologies description information of more height applications in heterogeneous applications;Wherein, it is described
Deployment topologies description information includes:Son is using source, sub- application type and deployment Run Script;The sub- application type is used for
Indicate the deployment way taken when being disposed to the son application;
Second acquisition module, mirror image peace is obtained using source for the son according to the sub- application currently to be disposed
Fill file;
Deployment module, for the deployment side indicated by the sub- application type according to the sub- application currently to be disposed
Formula, by perform the deployment Run Script run on the host mirror image installation file complete it is current to be disposed
The deployment of the sub- application.
The third aspect, there is provided a kind of heterogeneous applications dispose device, and the device includes:Processor, memory and bus, storage
Device is stored with execute instruction, when plant running, passes through bus communication, computing device memory between processor and memory
The following execute instruction of middle storage:
Obtain the deployment topologies description information of more height applications in heterogeneous applications;Wherein, the deployment topologies description information
Including:Son is using source, sub- application type and deployment Run Script;The sub- application type is used to indicate to the sub- application
The deployment way taken when being disposed;
Mirror image installation file is obtained using source according to the son of the sub- application currently to be disposed;
According to the deployment way indicated by the sub- application type of the sub- application currently to be disposed, by performing
State deployment Run Script and the current sub- application to be disposed of mirror image installation file completion is run on the host
Deployment.
Fourth aspect, there is provided a kind of nonvolatile computer storage media, the computer-readable storage medium are stored with calculating
Machine executable instruction, the computer executable instructions can perform the heterogeneous applications dispositions method of above-mentioned first aspect.
In the embodiment of the present application, when application is disposed, it can describe to believe by deployment topologies before deployment
Cease and the specific deployment topologies of all sub- applications in application are described, realize the mixing layout to all sub- applications;Deployment is opened up
Flutterring description information includes sub- application type;The sub- application type is used to indicate the deployment taken when antithetical phrase application is disposed
Mode;When being disposed to application, according to the portion indicated by sub- application type corresponding to son application currently to be disposed
Management side formula, the son application that deployment is treated by performing deployment Run Script is disposed, so as to complete the unification to heterogeneous applications
Layout is disposed.
Brief description of the drawings
, below will be to the application in order to clearly illustrate the embodiment of the present application or technical scheme of the prior art
Accompanying drawing required in embodiment or description of the prior art does simple introduction.It should be evident that drawings in the following description
Only some embodiments described in the application, for those of ordinary skill in the art, can also be according to these accompanying drawings
Obtain other accompanying drawings.
Fig. 1 shows the flow chart for the heterogeneous applications dispositions method that the embodiment of the application one is provided;
Fig. 2 shows the flow chart for the heterogeneous applications dispositions method that another embodiment of the application is provided;
Fig. 3 shows the structural representation for the heterogeneous applications deployment device that the embodiment of the application one is provided;
Fig. 4 shows the structural representation for the heterogeneous applications deployment device that another embodiment of the application is provided;
Fig. 5 shows the structural representation for the heterogeneous applications deployment device that the embodiment of the application one is provided.
Embodiment
Different using individually deployment to belonging to the different sons of same application from correlation technique, application scheme exists
To application dispose when, can before deployment by deployment topologies description information in application all sub- applications it is specific
Deployment topologies are described, and realize the mixing layout to all sub- applications;Deployment topologies description information includes sub- application type;
The sub- application type is used to indicate the deployment way taken when antithetical phrase application is disposed;To application disposed when
Wait, according to the deployment way indicated by sub- application type corresponding to son application currently to be disposed, operation pin is disposed by performing
Originally the son application for treating deployment is disposed, so as to complete the unified layout deployment to heterogeneous applications.
It is below in conjunction with the accompanying drawings and specific real to enable the above-mentioned purpose of the application, feature and advantage more obvious understandable
Mode is applied to be further described in detail the application.
In the embodiment of the present application, container instance is operated in host, and the container operated in same host
Example shares the kernel of host, and host both can be virtual machine or physical host, and container beggar application section administration exists
In container instance, and usually, each container instance disposes a container beggar application;Process fortune inside virtual machine instance
Row is in guest operating systems (Guest Operating System, Guest OS);Non- container beggar application can be deployed in
In main frame, the main frame can be that virtual machine can also be physical host, and the main frame is the host of the non-container beggar application;
At least one non-container beggar application can be disposed in each main frame.
A kind of as shown in figure 1, dispositions method schematic flow sheet of the heterogeneous applications proposed for the embodiment of the present application.The application
In embodiment, the main body for being responsible for performing heterogeneous applications deployment process is generally physical host or virtual machine, hereinafter referred to as performs
Main frame, this method comprise the following steps:
Step S101:Obtain the deployment topologies description information of more height applications in heterogeneous applications;Wherein, deployment topologies describe
Information includes:Son is using source, sub- application type and deployment Run Script;Sub- application type is used to indicate that antithetical phrase application is carried out
The deployment way taken during deployment.
In specific implementation, deployment topologies description information is to be based on each height application operation demand, with file or other
Achievable mode is formed.Apply and generally comprise three factors when deployment:
Ith, the essential information of sub- application.Include more height applications in each application, such as a shopping website should
Answered with the middle related more height such as webpage (web) service, database, caching, storage, charging, user management, shopping that may include
With.Each height is applied when deployment, is required for its clear and definite essential information, essential information includes:1st, son applies source, i.e.,
The deposit position or acquisition modes of mirror image installation file corresponding to application per height, for the base when antithetical phrase application is disposed
In the son using mirror image installation file corresponding to the acquisition of source.2nd, sub- application type, for indicating to be disposed in antithetical phrase application
When the deployment way taken, for example, being applied for container beggar, typically disposed using container technique antithetical phrase application;It is right
In non-containerization technique, can be disposed by the way of traditional binary system bag.3rd, Run Script is disposed, for being answered
With the perform script of deployment, at the beginning of application is disposed, performing main frame can be by performing in the deployment Run Script
Action command, one-touch deployment is carried out to the application of each height.
In addition, except above-mentioned four, other correlations during son application deployment can also be included in Back ground Information
Information, such as applied for non-container beggar, because its mirror image installation file operationally needs certain running environment, and place
Main frame might not have, therefore should also include the source-information of condition depended bag in Back ground Information, can pass through the environment
The source-information for relying on bag gets the installation file that son applies the required dependence environment in deployment, so as to realize antithetical phrase application
Running environment establishment.
IIth, the dependence between different son applications.For example, during being disposed to above-mentioned shopping website, net
The son application such as page (web) service, Warehouse Service, billing of services, subscriber management service, shopping service is required in the process of running
Related content in database is called, there is dependence to database service, therefore database service is disposed as first
Son application;Complementary relation is had no between Warehouse Service and subscriber management service, therefore can be by any one in both
Another preferential deployment;Shopping service again relies on subscriber management service and Warehouse Service, shopping service in Warehouse Service and
Subscriber management service is by the deployment of deployment completion;Billing of services depends on shopping service, after shopping service has been disposed, portion
Affix one's name to billing of services;Web service relies on all other son application, therefore web service is finally arranged, the son being ultimately formed should
Deployment order be:Database service, Warehouse Service, subscriber management service, shopping service, billing of services, webpage (web) clothes
Business;Or deployment order is:Database service, subscriber management service, Warehouse Service, shopping service, billing of services, webpage
(web) service.After the deployment order of each height application is determined, it can enter according to deployment order, successively antithetical phrase application
Row deployment.
When being disposed according to deployment order antithetical phrase application, first have to according to deployment order and it is current
The son application of deployment is completed, it is determined that current son application to be disposed, is then disposed to son application currently to be disposed.
It should be noted that the current son application for having completed deployment is space-time, it is determined that first son in deployment order
Applied using for son currently to be disposed.
IIIth, sub- application resource, that is, it is used for the supporting body of son application operation.Sub- application resource can shift to an earlier date portion according to planning
It has been affixed one's name to that, such as affixed one's name to the host of certain sub- application section administration in container cluster management system (kubernetes) platform upper in advance
Machine, the access path of host is specified in sub- application resource, the son is applied dispose when, can be stepped on based on access path
Host is recorded, the deployment to the sub- application is completed in host;Host can be created beyond the clouds in real time as needed
, such as the relevant parameter of host is specified in sub- application resource, and when being disposed to certain son application, Ke Yizhi
Connect and call infrastructure to service the completion in real time of (Infrastructure as a Service, IaaS) platform interface to host
The establishment of machine, after the establishment of host is completed, sign in the host of the new establishment.
After signing in host according to sub- application resource corresponding to son application currently to be disposed, execution can be passed through
Deployment Run Script runs the deployment that mirror image installation file completes current son application to be disposed on host.
S102:Mirror image installation file is obtained using source according to the son that son currently to be disposed is applied.
In specific implementation, son apply can be provided in source with the deposit position of the corresponding mirror image installation file of son application or
Person's acquisition modes.
Such as certain height is using source:192.168.10.100/project/order, then performing main frame can basis
The path signs in the high in the clouds for being stored with the mirror image installation file, gets mirror image installation file.
S103:According to the deployment way indicated by the sub- application type of son application currently to be disposed, by performing deployment
Run Script runs the deployment that mirror image installation file completes current son application to be disposed on host.
Herein, when wait the sub- application type disposed be container beggar apply when, using container deployment way on host
Run mirror image installation file;When the son application disposed is applied for non-container beggar, the deployment way using binary system bag exists
Mirror image installation file is run on host.
Specifically, the embodiment of the present application also provides a kind of use and mirror image peace is run on host using container deployment way
The specific method of file is filled, this method includes:
First environment dependent file is run, container instance is created on host;Container instance should with son to be disposed
Running environment required for during installation and operation.
Of operation first applies installation file in container instance.
Herein, the first environment dependent file and first of son application in the process of running is encapsulated in container image file
Son applies installation file.When containerization application is disposed, first have to run first environment dependent file, in host
The container instance for running son application to be disposed is created on machine;After container instance creates, first is run in the container instance
Using installation file, this is waited that disposing son application is arranged in the container instance, completes the deployment that the son to be disposed to this is applied.
The embodiment of the present application also provides a kind of deployment way using using binary system bag and mirror image peace is run on host
The specific method of file is filled, this method includes:
According to condition depended document source included in deployment topologies description information, the needed for executable file is obtained
Two condition depended files;
Second environment dependent file is run, the running environment that son application to be disposed needs is formed on host;
Of operation second applies installation file under the running environment formed, and is run in the second son using installation file
After the completion of, configuration setting is carried out to the son application after installation based on configuration information.
Herein, the second son is binary file using installation file, the required operation ring when binary file is run
This document is run in border, the installation that installation file is applied to the second son can be realized.
Specifically, son apply deployment when, due to which platform host to dispose which son application be it is uncertain,
Installation environment required for different non-container beggar applications is also uncertain, therefore host is in the specific son application of deployment
Before, it will not typically shift to an earlier date and the required running environment of son application operation is built on host, and be applied for container beggar
For, the first environment dependent file for building its running environment is packaged in mirror image installation file, therefore in order to obtain
The running environment of non-container beggar application is obtained, should also include condition depended document source in deployment topologies description information.When holding
When row main frame disposes non-container beggar application, first have to download second environment dependence according to the condition depended document source
File, the second environment dependent file is then run on host, form what son application to be disposed needed on host
Running environment, and of operation second applies installation file under the running environment formed, and apply installation file in the second son
After the completion of operation, configuration setting is carried out based on configuration information, to complete the deployment of non-container beggar application.
In the embodiment of the present application, when being disposed to heterogeneous applications, it can be retouched before deployment by deployment topologies
Information is stated the specific deployment topologies of all sub- applications in application are described, can be according to the deployment when being disposed
Included son applies source in Turbo codes information, obtains mirror image installation file corresponding with sub- application to be disposed, then
According to the deployment way indicated by the sub- application type of the son application to be disposed, by performing deployment Run Script in host
Upper operation mirror image installation file, to complete the deployment applied to son currently to be disposed, and then pass through the completion pair of identical process
The deployment of all sub- applications.In deployed environment is entirely applied, it is not necessary to carry out container to the legacy application as non-containerization
Change transformation, but by carrying out mixing layout using deployment topologies description information to different applications, based on sub- application type institute
The deployment way of instruction, the one-touch deployment applied to the son of mixing layout is realized by performing deployment Run Script, is realized
Containerization is applied and the unified layout deployment of non-containerization application.
Shown in Figure 2, the embodiment of the present application additionally provides another heterogeneous applications dispositions method, in above-described embodiment
On the basis of, this method also includes:
S201:Detect whether all son applications have been completed to dispose;
S202:Detect all son applications and complete deployment, applied according to the dependence between different sub- applications and son
Corresponding relation between host, generation installation topology information.
In specific implementation, when detecting all son applications and whether having completed deployment, can according to deployment order and
All son applications of the current deployment completed are judged;If the son application for completing deployment has been integrally incorporated in deployment
In order, then all son applications have been completed to dispose;It can also be applied only according to deployment order in son currently to be disposed
Into after deployment, whether the current son application to be disposed for detecting completion deployment is last in deployment order, if it is,
Then all son applications have been completed to dispose.
In order to facilitate later maintenance, detect all son applications it is deployed it is complete after, can also generate installation topology information, should
Installation topology information generally comprises:Dependence between son application and the correspondence relationship information between host and son application is believed
Breath.By host and the corresponding relation of son application, it can be positioned with antithetical phrase application, the convenient installation position for obtaining son application
Put, facilitate antithetical phrase application to be updated and safeguard;By the dependence between sub- application, broken down when the application of certain height
When, the dependence can be based on, failure is positioned rapidly, it is convenient that trouble shooting is carried out to application.
Based on same inventive concept, isomery corresponding to above-mentioned heterogeneous applications dispositions method is additionally provided in the embodiment of the present application
Using deployment device, because the principle of the device solution problem in the embodiment of the present application should with the above-mentioned empty isomery of the embodiment of the present application
It is similar with dispositions method, therefore the implementation of device may refer to the implementation of method, repeats part and repeats no more.
Shown in Figure 3, the heterogeneous applications deployment device that the embodiment of the present application is provided includes:
First acquisition module 10, for obtaining the deployment topologies description information of more height applications in heterogeneous applications;Wherein, institute
Stating deployment topologies description information includes:Son is using source, sub- application type and deployment Run Script;The sub- application type is used
The deployment way taken when instruction is disposed to the son application;
Second acquisition module 20, mirror image is obtained using source for the son according to the sub- application currently to be disposed
Installation file;
Deployment module 30, for the deployment indicated by the sub- application type according to the sub- application currently to be disposed
Mode, the mirror image installation file is run on the host by performing the deployment Run Script and completes currently to wait to dispose
The sub- application deployment.
In the embodiment of the present application, when being disposed to heterogeneous applications, it can be retouched before deployment by deployment topologies
Information is stated the specific deployment topologies of all sub- applications of application China are described, can be according to the portion when being disposed
Included son applies source in administration's Turbo codes information, obtains mirror image installation file corresponding with sub- application to be disposed, so
Deployment way according to indicated by the sub- application type of the son application to be disposed afterwards, by performing deployment Run Script in host
Mirror image installation file is run on machine, to complete the deployment applied to son currently to be disposed, and then is completed by identical process
Deployment to all sub- applications.In deployed environment is entirely applied, it is not necessary to holding as the legacy application of non-containerization
Deviceization is transformed, but by carrying out mixing layout using deployment topologies description information to different applications, based on sub- application type
Indicated deployment way, the one-touch deployment applied to the son of mixing layout is realized by performing deployment Run Script, it is real
Show and applied the unified layout with the application of non-containerization to dispose to containerization.
Alternatively, the type of the sub- application includes:Container beggar applies and non-container beggar application;
The deployment module 30, is specifically used for:The container beggar is applied, using container deployment way in the host
The mirror image installation file is run on machine;The deployment way using binary system bag is applied to the non-container beggar in the host
The mirror image installation file is run on machine.
Alternatively, when the son application disposed is applied for container beggar, the mirror image installation file includes:First ring
Border dependent file and the first son apply installation file;
Deployment module specific 30 is used for:The first environment dependent file is run, it is real that container is created on the host
Example;There is the container instance to be disposed to apply required running environment during installation and operation;Institute
State run in container instance it is described first son apply installation file.
When the son application disposed is applied for non-container beggar, the mirror image installation file includes:Second son application
Installation file and configuration information;
Deployment module 30 is specifically used for:According to condition depended file included in the deployment topologies description information come
Source, second son is obtained using the second environment dependent file needed for installation file;
The second environment dependent file is run, the fortune that the son application to be disposed needs is formed on the host
Row environment;
Second son is run under the running environment formed and applies installation file, and in the described second son application installation
After the completion of running paper, configuration setting is carried out to the son application after installation based on the configuration information.
Alternatively, shown in Figure 4, the heterogeneous applications deployment device that the embodiment of the present application is provided also includes:Determine mould
Block 40, for according to the dependence between the different sub- applications, determining the deployment of the sub- application sequentially;
Deployment order and the current sub- application for having completed deployment according to the sub- application, it is determined that currently
The sub- application to be disposed.
Alternatively, shown in Figure 4, the heterogeneous applications deployment device that the embodiment of the present application is provided also includes:Detect mould
Block 50, for completing currently after the deployment for the sub- application disposed, detect whether all son applications have been completed to dispose;
If detecting, deployment is completed in all son applications, should according to the dependence between the different sub- applications and the son
With the corresponding relation between the host, generation installation topology information.
As shown in figure 5, the heterogeneous applications provided by another embodiment of the application dispose schematic device, the heterogeneous applications
Deployment device 100 includes:Processor 110, memory 120 and bus 130, memory 120 are stored with execute instruction, when device is transported
During row, communicated between processor 110 and memory 120 by bus 130, processor 110 perform memory 120 in store as
Lower execute instruction:
Obtain the deployment topologies description information of more height applications in heterogeneous applications;Wherein, the deployment topologies description information
Including:Son is using source, sub- application type and deployment Run Script;The sub- application type is used to indicate to the sub- application
The deployment way taken when being disposed;
Mirror image installation file is obtained using source according to the son of the sub- application currently to be disposed;
According to the deployment way indicated by the sub- application type of the sub- application currently to be disposed, by performing
State deployment Run Script and the current sub- application to be disposed of mirror image installation file completion is run on the host
Deployment.
Alternatively, processor 110 is specifically used for:The container beggar is applied, using container deployment way in the place
The mirror image installation file is run on main frame;The deployment way using binary system bag is applied to the non-container beggar in the place
The mirror image installation file is run on main frame.
Alternatively, when the son application disposed is applied for container beggar, the mirror image installation file includes:First ring
Border dependent file and the first son apply installation file;Processor 110 is specifically used for:The first environment dependent file is run,
Container instance is created on the host;There is the container instance to be disposed to apply in installation and operation process
In required for running environment;First son is run in the container instance and applies installation file.
Alternatively, when the son application disposed is applied for non-container beggar, the mirror image installation file includes:Second
Son applies installation file and configuration information;Processor 110 is specifically used for:According to included by the deployment topologies description information
Condition depended document source, obtain second son using the second environment dependent file needed for installation file;
The second environment dependent file is run, the fortune that the son application to be disposed needs is formed on the host
Row environment;
Second son is run under the running environment formed and applies installation file, and in the described second son application installation
After the completion of running paper, configuration setting is carried out to the son application after installation based on the configuration information.
Alternatively, processor 110 is additionally operable to:According to the dependence between the different sub- applications, determine that the son should
Deployment order;
Deployment order and the current sub- application for having completed deployment according to the sub- application, it is determined that currently
The sub- application to be disposed.
Alternatively, processor 110 is additionally operable to:Complete currently after the deployment for the sub- application disposed, detection is all
Whether son application has been completed to dispose;If detecting, deployment is completed in all son applications, and it is applied according to the different sons
Between dependence and it is described son application and the corresponding relation between the host, generation installation topology information.
The embodiment of the present application additionally provides a kind of nonvolatile computer storage media, the computer-readable storage medium storage
There are computer executable instructions, the computer executable instructions can perform the heterogeneous applications deployment in above-mentioned any means embodiment
Method.
The heterogeneous applications dispositions method and the computer program product of device that the embodiment of the present application is provided, including storage
The computer-readable recording medium of program code, the instruction that described program code includes can be used for performing previous methods embodiments
Described in method, specific implementation can be found in embodiment of the method, will not be repeated here.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description
With the specific work process of device, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
If the function is realized in the form of SFU software functional unit and is used as independent production marketing or in use, can be with
It is stored in a computer read/write memory medium.Based on such understanding, the technical scheme of the application is substantially in other words
The part to be contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter
Calculation machine software product is stored in a storage medium, including some instructions are causing a computer equipment (can be
People's computer, server, or network equipment etc.) perform each embodiment methods described of the application all or part of step.
And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-OnlyMemory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.
Described above, the only embodiment of the application, but the protection domain of the application is not limited thereto is any
Those familiar with the art can readily occur in change or replacement in the technical scope that the application discloses, and should all contain
Cover within the protection domain of the application.Therefore, the protection domain of the application described should be defined by scope of the claims.
Claims (10)
1. a kind of dispositions method of heterogeneous applications, it is characterised in that this method includes:
Obtain the deployment topologies description information of more height applications in heterogeneous applications;Wherein, the deployment topologies description information includes:
Son is using source, sub- application type and deployment Run Script;The sub- application type is used to indicate to carry out the son application
The deployment way taken during deployment;
Mirror image installation file is obtained using source according to the son of the sub- application currently to be disposed;
According to the deployment way indicated by the sub- application type of the sub- application currently to be disposed, by performing the portion
Administration's Run Script runs the deployment that the mirror image installation file completes the current sub- application to be disposed on the host.
2. according to the method for claim 1, it is characterised in that the type of the sub- application includes:Container beggar apply with
And non-container beggar application;
When wait the son application disposed for container beggar application when, it is described that mirror image installation text is run on the host
Part, specifically include:
The mirror image installation file is run on the host using container deployment way;
When wait the son application disposed for non-container beggar application when, it is described that mirror image installation is run on the host
File, specifically include:
The mirror image installation file is run on the host using the deployment way of binary system bag.
3. according to the method for claim 2, it is characterised in that when the son application disposed is applied for container beggar,
The mirror image installation file includes:First environment dependent file and the first son apply installation file;
It is described that the mirror image installation file is run on the host using container deployment way, specifically include:
The first environment dependent file is run, container instance is created on the host;The container instance, which has, treats portion
The son of administration applies required running environment during installation and operation;
First son is run in the container instance and applies installation file.
4. according to the method for claim 2, it is characterised in that the son application to be disposed is applied for non-container beggar
When, the mirror image installation file includes:Second son applies installation file and configuration information;
The deployment way using binary system bag runs the mirror image installation file on the host, specifically includes:
According to condition depended document source included in the deployment topologies description information, the second son application installation is obtained
Second environment dependent file needed for file;
The second environment dependent file is run, the operation ring that the son application to be disposed needs is formed on the host
Border;
Second son is run under the running environment formed and applies installation file, and installation file is applied in the described second son
After the completion of operation, configuration setting is carried out to the son application after installation based on the configuration information.
5. according to the method described in claim 1-4 any one, it is characterised in that also include:
According to the dependence between the different sub- applications, the deployment of the sub- application is determined sequentially;
Deployment order and the current sub- application for having completed deployment according to the sub- application, it is determined that currently treating portion
The sub- application of administration.
6. according to the method for claim 5, it is characterised in that complete currently after the deployment for the sub- application disposed,
Also include:
Detect whether all son applications have been completed to dispose;
If detecting, deployment is completed in all son applications, according to the dependence between the different sub- applications and described
Son application and the corresponding relation between the host, generation installation topology information.
7. according to the method described in claim 1-4 any one, it is characterised in that described by performing the deployment operation pin
Before this runs the deployment that the mirror image installation file completes the current sub- application to be disposed on the host, also wrap
Include:
According to sub- application resource corresponding to the sub- application currently to be disposed, host corresponding with the sub- application resource is logged in
Machine.
8. a kind of heterogeneous applications dispose device, it is characterised in that the device includes:
First acquisition module, for obtaining the deployment topologies description information of more height applications in heterogeneous applications;Wherein, the deployment
Turbo codes information includes:Son is using source, sub- application type and deployment Run Script;The sub- application type is used to indicate
The deployment way taken when being disposed to the son application;
Second acquisition module, mirror image installation text is obtained using source for the son according to the sub- application currently to be disposed
Part;
Deployment module, for according to the deployment way indicated by the sub- application type of the sub- application currently to be disposed,
The current institute to be disposed of mirror image installation file completion is run on the host by performing the deployment Run Script
State the deployment of sub- application.
9. a kind of heterogeneous applications dispose device, the device includes:Processor, memory and bus, memory storage have execution to refer to
Order, when plant running, passes through bus communication, it is characterised in that in computing device memory between processor and memory
The following execute instruction of storage:
Obtain the deployment topologies description information of more height applications in heterogeneous applications;Wherein, the deployment topologies description information includes:
Son is using source, sub- application type and deployment Run Script;The sub- application type is used to indicate to carry out the son application
The deployment way taken during deployment;
Mirror image installation file is obtained using source according to the son of the sub- application currently to be disposed;
According to the deployment way indicated by the sub- application type of the sub- application currently to be disposed, by performing the portion
Administration's Run Script runs the deployment that the mirror image installation file completes the current sub- application to be disposed on the host.
10. a kind of nonvolatile computer storage media, the computer-readable storage medium is stored with computer executable instructions, its
It is characterised by, the computer executable instructions can perform the heterogeneous applications dispositions method of the claims 1-7 any one.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711047571.0A CN107766050B (en) | 2017-10-31 | 2017-10-31 | Heterogeneous application deployment method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711047571.0A CN107766050B (en) | 2017-10-31 | 2017-10-31 | Heterogeneous application deployment method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107766050A true CN107766050A (en) | 2018-03-06 |
CN107766050B CN107766050B (en) | 2021-12-07 |
Family
ID=61271818
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711047571.0A Active CN107766050B (en) | 2017-10-31 | 2017-10-31 | Heterogeneous application deployment method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107766050B (en) |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108376076A (en) * | 2018-05-28 | 2018-08-07 | 郑州云海信息技术有限公司 | A kind of method and apparatus of installation software |
CN108881390A (en) * | 2018-05-18 | 2018-11-23 | 深圳壹账通智能科技有限公司 | the cloud platform deployment method, device and equipment of electronic account service |
CN110289982A (en) * | 2019-05-17 | 2019-09-27 | 平安科技(深圳)有限公司 | Expansion method, device, computer equipment and the storage medium of container application |
CN110333868A (en) * | 2019-06-12 | 2019-10-15 | 阿里巴巴集团控股有限公司 | For generating the method and system of the installation kit of sub- application |
CN110532102A (en) * | 2019-09-02 | 2019-12-03 | 中国工商银行股份有限公司 | Implementation method, device, electronic equipment and the readable storage medium storing program for executing of application function |
CN110795148A (en) * | 2019-10-28 | 2020-02-14 | 北京旷视科技有限公司 | Method and device for generating layout file and electronic equipment |
CN111427622A (en) * | 2018-12-24 | 2020-07-17 | 阿里巴巴集团控股有限公司 | Method and device for executing script codes in application program |
CN111610976A (en) * | 2020-04-08 | 2020-09-01 | 曙光信息产业(北京)有限公司 | Heterogeneous application transplanting method and device and computer equipment |
CN111722906A (en) * | 2019-03-22 | 2020-09-29 | 华为技术有限公司 | A method and apparatus for deploying virtual machines and containers |
CN112000341A (en) * | 2019-05-08 | 2020-11-27 | 北京奇虎科技有限公司 | Method and device for implementing an application |
CN112000353A (en) * | 2020-08-18 | 2020-11-27 | 北京三快在线科技有限公司 | Application running method and device and storage medium |
CN112328344A (en) * | 2020-11-02 | 2021-02-05 | 联想(北京)有限公司 | Screen projection processing method and first equipment |
CN112346844A (en) * | 2020-12-01 | 2021-02-09 | 成都精灵云科技有限公司 | System and method for directly scheduling binary execution file by cloud platform |
CN113031971A (en) * | 2019-12-25 | 2021-06-25 | 北京世纪好未来教育科技有限公司 | Software deployment method, system and computer storage medium |
CN114490037A (en) * | 2021-12-28 | 2022-05-13 | 深圳云天励飞技术股份有限公司 | Mirror image deployment method and device, electronic equipment and storage medium |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102497408A (en) * | 2011-12-08 | 2012-06-13 | 曙光信息产业(北京)有限公司 | Semiautomatic batch deployment method for heterogeneous cluster operating system |
CN105359088A (en) * | 2013-07-03 | 2016-02-24 | 国际商业机器公司 | Method to optimize provisioning time with dynamically generated virtual disk contents |
CN105468362A (en) * | 2015-11-17 | 2016-04-06 | 广州杰赛科技股份有限公司 | Application deployment method and cloud computing system |
CN105511943A (en) * | 2015-12-03 | 2016-04-20 | 华为技术有限公司 | Docker container running method and device |
CN105511906A (en) * | 2015-11-25 | 2016-04-20 | 苏州科达科技股份有限公司 | Automatic deploy method, device and system of video platform |
US20160259665A1 (en) * | 2015-03-05 | 2016-09-08 | Vmware, Inc. | Methods and apparatus to select virtualization environments for migration |
CN105959138A (en) * | 2016-04-29 | 2016-09-21 | 深圳前海大数点科技有限公司 | Micro-service dynamic disposition system and method based on cloud calculation |
US20170083544A1 (en) * | 2015-09-17 | 2017-03-23 | International Business Machines Corporation | Image building |
CN106843945A (en) * | 2017-01-04 | 2017-06-13 | 厦门亿力吉奥信息科技有限公司 | GIS applications dispositions method and system based on PaaS |
CN106874052A (en) * | 2017-02-24 | 2017-06-20 | 北京中电普华信息技术有限公司 | The dispositions method and device of a kind of application program |
CN107102847A (en) * | 2016-02-23 | 2017-08-29 | 中国水电工程顾问集团有限公司 | Software development methodology, apparatus and system based on micro services |
CN107294772A (en) * | 2017-05-23 | 2017-10-24 | 甘肃万维信息技术有限责任公司 | One kind combines Docker and realizes dynamic management and monitoring service system |
-
2017
- 2017-10-31 CN CN201711047571.0A patent/CN107766050B/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102497408A (en) * | 2011-12-08 | 2012-06-13 | 曙光信息产业(北京)有限公司 | Semiautomatic batch deployment method for heterogeneous cluster operating system |
CN105359088A (en) * | 2013-07-03 | 2016-02-24 | 国际商业机器公司 | Method to optimize provisioning time with dynamically generated virtual disk contents |
US20160259665A1 (en) * | 2015-03-05 | 2016-09-08 | Vmware, Inc. | Methods and apparatus to select virtualization environments for migration |
US20170083544A1 (en) * | 2015-09-17 | 2017-03-23 | International Business Machines Corporation | Image building |
CN105468362A (en) * | 2015-11-17 | 2016-04-06 | 广州杰赛科技股份有限公司 | Application deployment method and cloud computing system |
CN105511906A (en) * | 2015-11-25 | 2016-04-20 | 苏州科达科技股份有限公司 | Automatic deploy method, device and system of video platform |
CN105511943A (en) * | 2015-12-03 | 2016-04-20 | 华为技术有限公司 | Docker container running method and device |
CN107102847A (en) * | 2016-02-23 | 2017-08-29 | 中国水电工程顾问集团有限公司 | Software development methodology, apparatus and system based on micro services |
CN105959138A (en) * | 2016-04-29 | 2016-09-21 | 深圳前海大数点科技有限公司 | Micro-service dynamic disposition system and method based on cloud calculation |
CN106843945A (en) * | 2017-01-04 | 2017-06-13 | 厦门亿力吉奥信息科技有限公司 | GIS applications dispositions method and system based on PaaS |
CN106874052A (en) * | 2017-02-24 | 2017-06-20 | 北京中电普华信息技术有限公司 | The dispositions method and device of a kind of application program |
CN107294772A (en) * | 2017-05-23 | 2017-10-24 | 甘肃万维信息技术有限责任公司 | One kind combines Docker and realizes dynamic management and monitoring service system |
Non-Patent Citations (2)
Title |
---|
周鸿伟: ""虚拟样机中基于映射机制的异构应用间数据交换研究"", 《小型微型计算机系统》 * |
陈春霞: ""基于容器的微服务架构的浅析"", 《信息系统工程》 * |
Cited By (23)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108881390A (en) * | 2018-05-18 | 2018-11-23 | 深圳壹账通智能科技有限公司 | the cloud platform deployment method, device and equipment of electronic account service |
CN108376076A (en) * | 2018-05-28 | 2018-08-07 | 郑州云海信息技术有限公司 | A kind of method and apparatus of installation software |
CN111427622B (en) * | 2018-12-24 | 2023-05-16 | 阿里巴巴集团控股有限公司 | Execution method and device of script codes in application program |
CN111427622A (en) * | 2018-12-24 | 2020-07-17 | 阿里巴巴集团控股有限公司 | Method and device for executing script codes in application program |
WO2020192598A1 (en) * | 2019-03-22 | 2020-10-01 | 华为技术有限公司 | Method and device for deploying virtual machine and container |
CN111722906B (en) * | 2019-03-22 | 2025-04-04 | 华为技术有限公司 | Method and device for deploying virtual machines and containers |
CN111722906A (en) * | 2019-03-22 | 2020-09-29 | 华为技术有限公司 | A method and apparatus for deploying virtual machines and containers |
CN112000341A (en) * | 2019-05-08 | 2020-11-27 | 北京奇虎科技有限公司 | Method and device for implementing an application |
CN110289982B (en) * | 2019-05-17 | 2022-08-23 | 平安科技(深圳)有限公司 | Container application capacity expansion method and device, computer equipment and storage medium |
CN110289982A (en) * | 2019-05-17 | 2019-09-27 | 平安科技(深圳)有限公司 | Expansion method, device, computer equipment and the storage medium of container application |
CN110333868A (en) * | 2019-06-12 | 2019-10-15 | 阿里巴巴集团控股有限公司 | For generating the method and system of the installation kit of sub- application |
CN110333868B (en) * | 2019-06-12 | 2023-12-19 | 创新先进技术有限公司 | Method and system for generating installation packages of sub-applications |
CN110532102A (en) * | 2019-09-02 | 2019-12-03 | 中国工商银行股份有限公司 | Implementation method, device, electronic equipment and the readable storage medium storing program for executing of application function |
CN110795148A (en) * | 2019-10-28 | 2020-02-14 | 北京旷视科技有限公司 | Method and device for generating layout file and electronic equipment |
CN110795148B (en) * | 2019-10-28 | 2022-10-14 | 北京旷视科技有限公司 | Method and device for generating layout file and electronic equipment |
CN113031971A (en) * | 2019-12-25 | 2021-06-25 | 北京世纪好未来教育科技有限公司 | Software deployment method, system and computer storage medium |
CN113031971B (en) * | 2019-12-25 | 2022-04-29 | 北京世纪好未来教育科技有限公司 | Software deployment method, system and computer storage medium |
CN111610976B (en) * | 2020-04-08 | 2023-04-07 | 中科曙光(南京)计算技术有限公司 | Heterogeneous application transplanting method and device and computer equipment |
CN111610976A (en) * | 2020-04-08 | 2020-09-01 | 曙光信息产业(北京)有限公司 | Heterogeneous application transplanting method and device and computer equipment |
CN112000353A (en) * | 2020-08-18 | 2020-11-27 | 北京三快在线科技有限公司 | Application running method and device and storage medium |
CN112328344A (en) * | 2020-11-02 | 2021-02-05 | 联想(北京)有限公司 | Screen projection processing method and first equipment |
CN112346844A (en) * | 2020-12-01 | 2021-02-09 | 成都精灵云科技有限公司 | System and method for directly scheduling binary execution file by cloud platform |
CN114490037A (en) * | 2021-12-28 | 2022-05-13 | 深圳云天励飞技术股份有限公司 | Mirror image deployment method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN107766050B (en) | 2021-12-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107766050A (en) | The dispositions method and device of a kind of heterogeneous applications | |
CN110058873A (en) | Application page update method, device, equipment and storage medium | |
US9158520B2 (en) | Development of platform independent applications | |
CN105512190A (en) | Interface jumping method and device | |
CN108415821A (en) | The generation method and device of test report | |
CN109889359A (en) | Server update | |
CN109298900A (en) | A kind of application fractionation and on-demand loading method, apparatus | |
CN110377232A (en) | A kind of method, apparatus and system for disposing distributed storage cluster | |
CN103399753A (en) | Software framework | |
US9197720B2 (en) | Deployment and hosting of platform independent applications | |
US20130263112A1 (en) | Deployment and hosting of platform independent applications | |
CN102707999A (en) | Application compatibility leveraging successful resolution of issues | |
CN108647142B (en) | Local pre-compiling and debugging method and system for Gatling voltage measurement footage | |
CN111651219A (en) | Method and equipment for managing multi-module project configuration file | |
CN103634128B (en) | The collocation method and device of virtual machine Placement Strategy | |
CN111124391A (en) | Desktop end software pendant window management method and system | |
CN110109684A (en) | Block chain node administration agent services installation method, electronic device and storage medium | |
CN102646056A (en) | Function expansion method and device for grid GIS (geographic information system) platform based applications | |
CN107797819A (en) | Delta package generation method, computer-readable recording medium and server | |
US20130151595A1 (en) | Deployment and hosting of platform independent applications | |
CN104503752A (en) | Method and device for controlling webpage to call system functions in intelligent equipment | |
CN112579099B (en) | Code deployment method and device, storage medium and electronic equipment | |
CN107885658A (en) | Test preposition implementation method, device, terminal device and storage medium | |
CN107403110A (en) | HDFS data desensitization method and device | |
CN107463406A (en) | Issue the method and electronic equipment of Mobile solution |
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 |