The content of the invention
The public PAAS platform capabilities on public network are limited to for third party developer in correlation technique, and technology is optional
The SAAS applications dispositions method and system of PAAS platforms under the problem of scope is just narrow, present invention proposition cloud computing environment,
Being capable of automatic deployment production application.
The technical proposal of the invention is realized in this way:The SAAS application section management sides of PAAS platforms under a kind of cloud computing environment
Method, including:The application installation package of exploitation is uploaded to PAAS platforms;And backstage deployment module performs application to application installation package
Installation and deployment are operated.
Preferably, include using installation and deployment:Carry out application load resource task and block wait;At the beginning of carrying out load resource
Beginning task simultaneously blocks wait;Carry out application container resource tasks and block wait;Carry out container initializing resource task and hinder
Plug is waited;Carry out deployment installation kit task and block wait;And be added load node task and block wait.
Preferably, application load resource task is distributed into thread pool after virtual machine has been created, and in application load
Perform whether network connectivty checking can normally be used with the resource of verifying virtual machines after resource success.
Preferably, load resource initialization task includes:Search configuration parameter and the assembling for the resource correlation that application is obtained
Into parameter list, it is ranked up according to initializtion script sequence requirement and carries out Script Action.
Preferably, application container resource tasks are distributed into thread pool having created to be configured with after the virtual machine of container, and
Whether the resource for performing network connectivty checking after application container resource success to verify the virtual machine for being configured with container can be with
Normally use.
Preferably, container initializing resource includes:The configuration parameter for the virtual machine for being configured with container is searched, is joined according to script
Number order is ranked up and carries out Script Action.
Preferably, deployment installation kit task includes:Dispose management client and download installation kit to specified catalogue from FTP
It is interior, configured after the completion of download according to configuration parameter and perform container enabled instruction.
Preferably, addition load node task includes:By completed according to container IP and port it is equal added to load
To realize load management in weighing apparatus node, and return to final accessible address.
Preferably, application load resource task, load resource initialization task, application container resource tasks, container resource
Any one task in initialization task, deployment installation kit task and addition load node task can perform failure in first time
Carry out afterwards second, and each task is provided with corresponding time threshold, and time threshold is used to perform mission failure
And the time for re-executing task is when reaching time threshold, execution task is abandoned.
Present invention also offers a kind of SAAS application deployment systems of PAAS platforms under cloud computing environment, including:Using peace
Dress wraps transmission module, for the application installation package of exploitation to be uploaded into PAAS platforms;And backstage deployment module, application is installed
Bag performs application installation and deployment operation.
The present invention can realize that SAAS should by the SAAS applications dispositions method and system of PAAS platforms under cloud computing environment
Used in a kind of quick, customizable deployment of PAAS platforms.In addition, third party developer need not pay close attention to particular platform resource,
Only need to pay close attention to the basic exploitation and design of itself application, can also develop, thus develop according to the API of PAAS platforms
The application come can be disposed normally using the inventive method, therefore, widen technology option scope.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on
Embodiment in the present invention, the every other embodiment that those of ordinary skill in the art are obtained belongs to what the present invention was protected
Scope.
Fig. 1 is the SAAS application dispositions methods of PAAS platforms under the cloud computing environment according to the first embodiment of the present invention
Overview flow chart.
Reference picture 1, includes following step according to the SAAS applications dispositions method of PAAS platforms under the cloud computing environment of the present invention
Suddenly:In S101, the application installation package of exploitation is uploaded to PAAS platforms;And S103, backstage deployment module is to application installation package
Perform application installation and deployment operation.
Using the SAAS application dispositions methods of PAAS platforms under the cloud computing environment of embodiments of the invention, opened in third party
Originator develops the application of oneself according to the kit that PAAS platforms are provided, and the application management that can be provided by platform is created
Its corresponding application version, and complete to apply upload operation.Complete after this operation, developer avoids the need for doing any operation, only
Need to wait deployment result.In addition, PAAS platforms can return to developer's reference address if deployment success, if failure
PAAS platforms can tell developer's failure cause and exploitation subsequent operation prompting.
Embodiments of the invention are described in detail referring to Fig. 2.
Fig. 2 is the flow chart of application installation and deployment according to embodiments of the present invention.
After the application that developer creates oneself, backstage receives application installation package and begins to start deployment flow.This
Inventive method deployment flow decouples multiple atomic tasks, i.e., each atomic task only does something, for example, from receiving installation kit
Start, begin to start a bound service thread with application of inquiry exploitation, the thread is exactly to represent an atomic task.
The atomic task is completed after inquiry operation, if result begins to perform the bindings task applied with SAAS.
It can enter with that and apply the installation and deployment stage, the following several tasks carryings of deployment flow point:
1) submit application load resource task to thread pool and block wait.Application thread starts to apply for resource, when virtual
The thread can be distributed to after machine establishment is intact.Application thread obtains after result and performs network connectivty verification algorithm, verifies
This resources of virtual machine can be used normally.While the thread pool application load resource task, obstruction is waited, to prevent other
User applies for load resource task.In addition, as shown in Fig. 2 when thread pool application load resource does not succeed, thread pool can be with
Initiation is applied and blocks wait again.
2) application thread is completed just to trigger load resource initialization thread after operation, and the load resource applied is carried out just
Beginningization simultaneously blocks wait, to prevent other users to carrying out initialization operation.Initialization thread will attempt lookup, and this applies
To resource relevant configured parameter, and parameter list is assembled into, is sorted according to initializtion script sequence requirement and be passed on and hold
Row Script Action.What this process was just realized according to script argument packing algorithm.If in addition, as shown in Fig. 2 load resource is initial
Change failure, then thread pool applies for load resource again.
3) application container resource thread task will be entered after initializing successfully, by thread pool application for execution container resource tasks
And block wait, to prevent user's application for execution container resource tasks.When the virtual machine creating for being configured with container (WEB containers) is good
After distribute to the thread.Application thread obtains after result and performs the verification algorithm of network connectivty, verifies this resources of virtual machine
Can normally it use.If in addition, as shown in Fig. 2 application container resource failure, thread pool repeats application container resource.
4) container carries out initializing resource task, and blocks wait to prevent other users perform container initializing resource from appointing
Business.Initialization thread searches the relevant configured parameter of this container virtual machine, will be according to the sequence of script argument order and related assignment
Then script execution is recalled.If in addition, as shown in Fig. 2 container initializing resource mission failure, thread pool repeats to apply
Container resource.
5) installation kit task is disposed, and blocks wait to prevent other users while performing deployment installation kit task.Work as appearance
After device is initialized successfully, it is possible to enter the application installation package installation and deployment stage, backstage will send download to ftp server and refer to
Order, deployment management client can be just downloaded in installation kit to specified catalogue from FTP, entered after the completion of download according to configuration parameter
Row relevant configuration.And performing container enabled instruction so that deployment result carries out normal load.If in addition, as shown in Fig. 2 portion
Installation kit mission failure is affixed one's name to, then repeats deployment installation kit task.
6) load node task is added, and blocks wait to prevent other users to be added load node task.Work as peace
After dress bag is installed successfully, it will enter addition load node task, the container IP and the port that have completed to install are added to and loaded
In balanced device node, load management is realized.And final accessible address is returned into developer.
In a word, at the beginning of application load resource task, load resource initialization task, application container resource tasks, container resource
Any one task in beginning task, deployment installation kit task and addition load node task can be after first time performs failure
Carry out second, and each task is provided with corresponding time threshold (for example, 30 minutes), and time threshold is used to hold
Row mission failure and when re-executing time of task and reaching time threshold, abandon execution task.
, first, can using the SAAS application dispositions methods of PAAS platforms under the cloud computing environment of embodiments of the invention
Automatic is that application applies for load equalizer resource, WEB containers resource, applies successfully performing initialization operation instruction automatically.If
Initialization failure, then abandon the resource applied, notifies Resource Manager.Apply for new available resources again simultaneously.Secondly, it is
Using automatic addition default policy, automatic telescopic is applied in support.Each SAAS applications, which can be customized, meets stretching for oneself requirement
Contracting strategy, can be improved the service efficiency of resource.Again, secondary deployment is supported, fails for first time deployment, can send out automatically
Play second of deployment new task and complete the application again and initialization of resource.Finally, Thread Pool Technology is employed, complexity
Automatically dispose resolves into multiple atomic tasks so that each task processing can keep the issued transaction effect of cause property, so that
Improve deployment efficiency and controllable processing.
Fig. 3 is the block diagram of the SAAS application deployment systems of PAAS platforms under cloud computing environment according to embodiments of the present invention.
The SAAS application deployment systems of PAAS platforms include under reference picture 3, the cloud computing environment of the embodiment of the present invention:Using
Installation kit uploading module 32, for the application installation package of exploitation to be uploaded into PAAS platforms;And backstage deployment module 34, correspondence
Application installation and deployment are performed with installation kit to operate.Backstage deployment module has performed the operation of application installation and deployment to application installation package
It is described in detail above, is not repeated that it is described herein.
Using the SAAS application deployment systems of PAAS platforms under the cloud computing environment of the embodiment of the present invention, in third party's exploitation
Person develops the application of oneself according to the kit that PAAS platforms are provided, and the application management that can be provided by platform creates it
Corresponding application version, and complete to apply upload operation.Complete after this operation, developer avoids the need for doing any operation, only need
Wait deployment result.In addition, PAAS platforms can return to developer's reference address if deployment success, if failure PAAS
Platform can tell developer's failure cause and exploitation subsequent operation prompting.
It should be appreciated by those skilled in the art that the SAAS of PAAS platforms is applied under the cloud computing environment of embodiments of the invention
Dispositions method and system have the following advantages that:1) Thread Pool Technology is used, the mode according to thread block realizes automatically dispose.
Thread block is conducive to safeguarding the uniformity of whole deployment flow, and a thread, which is once enabled, enters blocked state, does not allow deployment
Other threads in flow are enabled, and next threading operation is triggered again until a little threads normally complete task;2) Optimization Dept.
Affix one's name to thread pool, secondary application resource allocation algorithm.Can not be just if the resource of the resource tasks thread application of application is verified
Often use, then the thread will be attempted to apply for resource again;3) deployment resource and FTP synchronized algorithms.The algorithm will be disposed and used
To resource synchronously get off from FTP automatically, be conducive to deployment correctness and save deployment time;4) SAAS applications daily record is long-range
Packing download algorithm.Each SAAS applications can produce the daily record of oneself, and the developer of SAAS applications may need analysis
Daily record, such developer can synchronously download to newest daily record packaging file by this algorithm;5) SAAS applications can be entered
Row automatic telescopic strategy, reaches resources effective utilization.Each SAAS applications may use load, and flexible strategy is according to one
Fixed threshold calculations go out the whether nervous of resource.If anxiety will trigger automatic extension load node to alleviate.Otherwise resource
Leave unused to certain threshold value, resource reclaim strategy will be also triggered automatically;And 6) associated script can be performed automatically to complete
The use of resource.
In summary, using PAAS platforms under the cloud computing environment of embodiments of the invention SAAS applications dispositions method and
System results in following effect:First, it can be application application load equalizer resource, WEB containers resource automatically, apply into
Work(performs initialization operation instruction automatically.If initialization failure, abandons the resource applied, Resource Manager is notified.Together
Shi Chongxin applies for new available resources.Secondly, it is the automatic addition default policy of application, automatic telescopic is applied in support.Each SAAS
The flexible strategy for meeting oneself requirement using that can customize, can be improved the service efficiency of resource.Again, secondary portion is supported
Administration, fails for first time deployment, can automatically initiate second of deployment new task and complete the application again and initialization of resource.
Finally, Thread Pool Technology is employed, complicated automatically dispose is resolved into multiple atomic tasks so that each task processing can
To keep the issued transaction effect of cause property, so as to improve deployment efficiency and controllable processing.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
God is with principle, and any modification, equivalent substitution and improvements made etc. should be included in the scope of the protection.