Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present inventionIn attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment isA part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the artEvery other embodiment obtained without creative efforts, shall fall within the protection scope of the present invention.
Fig. 1 is the management method flow chart for the cloud computing platform application rapid deployment that one embodiment of the invention provides, and Fig. 2 isApplication oriented rapid deployment and elastic telescopic in the management method of cloud computing platform application rapid deployment provided by the inventionManage structure chart.When user needs the rapid deployment applied in cloud platform or anti-deployment, and make the confession of resource in platformWhen giving the demand of user and matching, the manager of cloud computing platform application rapid deployment provided in this embodiment can be usedMethod.As depicted in figs. 1 and 2, the management method of cloud computing platform application rapid deployment provided in this embodiment, comprising:
S101: application deployment or anti-deployment request are received using deployment controller 22;
Wherein, it is used to handle the deployment or anti-deployment request of application using deployment controller 22, user can be in cloud platformIn carry out using deployment or anti-deployment, when user wants the deployment in cloud platform in application, user is to applying deployment controller 22Application deployment request is submitted, receives the application deployment request that user submits using deployment controller 22;When user wants to put down in cloudOn platform when anti-application deployment, user submits the anti-deployment request of application to application deployment controller 22, connects using deployment controller 22Receive the anti-deployment request of application that user submits.
It should be noted that user herein refers to the permission in cloud platform deployment or anti-application deployment, it canApplication section administration or the anti-user disposed are carried out in cloud platform.
S102: disposing using deployment controller 22 to 21 sending application of cloud platform resource manager or anti-deployment request;
Wherein, cloud platform resource manager 21 is used to manage the money such as calculating, storage being distributed on each node of cloud platformSource, deployment or anti-deployment to application carry out overall scheduling.
It should be noted that application distribution all in cloud platform, on several nodes, such as node 1, node 2 ... ... is savedPoint n, wherein n is used to indicate the number of node.
S103: cloud platform resource manager 21, which is determined, requests required resource using deployment or anti-deployment;
S104: cloud platform resource manager 21 sends resource information to application deployment controller 22;
Wherein, after cloud platform receives the application deployment or anti-deployment request sent using deployment controller 22, cloud platform moneySource manager 21 determines needed for application deployment or anti-deployment request according to resources such as calculating, the storages being distributed on each nodeResource, includes the location information and Container Type of required resource in required resource, to applying 22 sending application portion of deployment controllerThe location information of resource needed for administration or anti-deployment are requested.Specifically, the location information of resource can be the corresponding section of required resourceThe address of dot address and container.
It should be noted that cloud platform resource manager 21 determines that the anti-deployment of application requests required resource to refer to applicationWhen anti-deployment inquiry need by it is counter dispose using corresponding using locations of copies.
S105: the corresponding 23 sending application portion of local agent of the location information into resource information of cloud platform resource manager 21Administration or anti-deployment request so that local agent 23 according to application deployment or anti-deployment request in the correspondence container of corresponding node intoThe deployment of row application or anti-deployment;
Wherein, local agent 23 is distributed on each node of cloud platform, each node contains a local agent 23And one or more containers, it include one or more application in each container.
S106: the application deployment or anti-deployment success message that local agent 23 is sent are received using deployment controller 22;
S107: it is disposed using deployment controller 22 to cloud platform resource manager 21 and 24 sending application of rapid deployment moduleOr anti-deployment success message, wherein being sent in the application deployment or anti-deployment success message of rapid deployment module 24 includes pairThe application configuration information answered;
Specifically, rapid deployment module 24 includes module configurator 241 and dynamic reverse proxy 242.It is controlled using deploymentDevice 22 is to cloud platform resource manager 21 and 24 sending application of rapid deployment module is disposed or anti-deployment success message, comprising: answersDisappeared with deployment controller 22 to cloud platform resource manager 21 and the deployment of 242 sending application of dynamic reverse proxy or anti-deployment successBreath.
It should be noted that reverse proxy can be regarded as a special proxy server, it receives the company on networkRequest is connect, then forwards a request to the server on internal network, and the result obtained from server is returned into networkThe client of upper request connection, at this time reverse proxy externally will appear as a server.It is leaned in general, reverse proxy is deployed inOne end of nearly original contents rather than client.Meanwhile dynamic reverse proxy 242 can be used as load balancer.For example, working as clientEnd sends a request, when rear end has multiple application servers that can respond the request, the problem of there is load balancing.LoadBalanced device is one of the significant components in distributed system, for the node for being split in several responsible service requests will to be loaded,Enable multiple nodes an of system to provide service for identical function, and balances the resource utilization of each server.ToolThe dynamic reverse proxy 242 for having load balancing to act on can serve as load balancer, is used in cloud platform, is capable of handlingMany connections carried out simultaneously, and these connections are routed on one of service node, it enables the system to pass through increasingSupernumerary segment point handles more multi-request.
Dynamic reverse proxy 242 provided in this embodiment uses lightweight, the hypertext of high concurrent connection is supported to passDefeated agreement (Hypertext transfer protocol, abbreviation HTTP) server Nginx, and expanded on NginxExhibition supports dynamic heat deployment, is able to ascend the deployment efficiency of whole system.Nginx acts not only as dynamic reverse proxy242, it is alternatively arranged as load balancer.
S108: rapid deployment module 24 is according to corresponding application configuration information more new configuration file and passes through dynamic heat deploymentConfiguration file is set to come into force.
Wherein, rapid deployment module 24 according to corresponding application configuration information more new configuration file and passes through dynamic heat deploymentConfiguration file is set to come into force, comprising: dynamic reverse proxy 242 updates dynamic reverse proxy 242 according to corresponding application configuration informationConfiguration file.
It should be noted that dynamic heat deployment refers to that container state redeploys entire project in the case where operation,And the configuration file of reverse proxy can be modified in the case where not stopping service.
Dynamic reverse proxy 242 makes configuration file come into force by dynamic heat deployment.
Specifically, dynamic reverse proxy 242 can dynamically update the configuration file of oneself and newly to configure by heat deploymentIt comes into force, the configuration file being stored in without manual modification on disk.
The management method of cloud computing platform application rapid deployment provided in this embodiment, user submit application deployment or anti-portionWhen administration's request, application deployment or anti-deployment request are received using deployment controller 22 and is sent to cloud platform resource manager 21Using deployment or anti-deployment request, cloud platform resource manager 21 determines resource needed for application deployment or anti-deployment are requested and to answeringResource information, and the corresponding 23 sending application portion of local agent of location information into resource information are sent with deployment controller 22Administration or anti-deployment request so that local agent 23 according to application deployment or anti-deployment request in the correspondence container of corresponding node intoThe deployment of row application or anti-deployment receive the application deployment or anti-deployment success that local agent 23 is sent using deployment controller 22Message and to cloud platform resource manager 21 and 24 sending application of rapid deployment module deployment or anti-deployment success message, sendIt include corresponding application configuration information, rapid deployment mould in deployment or anti-deployment success message to applying for rapid deployment module 24Block 24 according to corresponding application configuration information more new configuration file and makes configuration file come into force by dynamic heat deployment.
The management method of cloud computing platform application rapid deployment provided in this embodiment supports dynamic heat deployment, can be fastFast dynamic implement application deployment or anti-deployment, promote the deployment efficiency of whole system, can provide for user quick, flexibleApplication deployment and operation support, and the demand for making the confession of resource in cloud platform give user matches.
Optionally, module configurator 241 is used to visual means be presented the configuration file of dynamic reverse proxy 242 simultaneouslyCarry out modular arrangements.
Specifically, for ease of operation and management, module configurator 241 can by the configuration of dynamic reverse proxy 242 withVisual mode is presented to the user by module, and user can directly be currently configured in module configuration page modification, if after modificationConfiguration meet configuration file rule check, then submit after newly configuration can come into force.
Fig. 3 be another embodiment of the present invention provides cloud computing platform application rapid deployment management method flow chart, Fig. 4For the process schematic for applying rapid deployment in the management method of cloud computing platform application rapid deployment provided by the invention.When withWhen family carries out more copy deployment or anti-deployment using deployment or anti-deployment in cloud platform, cloud provided in this embodiment can be usedThe management method of computing platform application rapid deployment.As shown in Figure 3 and Figure 4, cloud computing platform application provided in this embodiment is fastThe management method of speed deployment, comprising:
S301: application deployment or anti-deployment request are received using deployment controller 22, using in deployment or anti-deployment requestIncluding application deployment or the anti-copy disposed;
Specifically, since cloud platform supports the deployment of more copies, so copy can be set when user submits deployment requestNumber;When user submits anti-deployment request, i.e., some application disposed in cloud platform is deleted, default is deleted this and answeredWith corresponding all copies.
It should be noted that copy refers to the redundancy provided in a distributed system for data or service.Data copy refers toThe same part data of persistence on different nodes can be from copy when there is the loss of data of some node storageRead data.Another kind of copy is service copy, and index node provides certain identical service, and this service is general and disobeysRely being locally stored in node, required data are generally from other nodes.Demand with the user in internet to resourceIt measures increasing, if only a data, needs the users of the data all must be to it is read on the same node, network holdsEasily there is congestion, and the limited node of processing capacity as access number is too big and delay machine.However, more parts of data pairs of creationThis, and by their reasonable layouts on multiple server nodes, the task of processing access request is shared, node can be effectively reducedCrash rate reduces subscriber response time.
S302: disposing using deployment controller 22 to 21 sending application of cloud platform resource manager or anti-deployment request;
S303: cloud platform resource manager 21 determines resource needed for copy in application deployment or anti-deployment request;
S304: resource information needed for cloud platform resource manager 21 sends copy to application deployment controller 22;
Specifically, cloud platform resource manager 21 determines resource information packet needed for copy in application deployment or anti-deployment requestInclude the location information and Container Type of required resource, wherein the location information of resource needed for copy can be resource needed for copyThe address of corresponding node address and container.
S305: the corresponding local agent 23 of the location information into resource information needed for copy of cloud platform resource manager 21 is sent outIt send using disposing or instead disposing request, so that local agent 23 disposes request in the correspondence of corresponding node according to application deployment or insteadThe deployment for the copy applied in container or anti-deployment;
S306: the application deployment or anti-deployment success message that local agent 23 is sent are received using deployment controller 22;
S307: it is disposed using deployment controller 22 to cloud platform resource manager 21 and 24 sending application of rapid deployment moduleOr anti-deployment success message, wherein being sent in the application deployment or anti-deployment success message of rapid deployment module 24 includes pairThe application configuration information answered;
Wherein, in corresponding application configuration information include mapping relations using-copy.
S308: rapid deployment module 24 is according to corresponding application configuration information more new configuration file and passes through dynamic heat deploymentConfiguration file is set to come into force.
Wherein, rapid deployment module 24 is reversed according to corresponding application-copy mapping relations configuration information update dynamicThe configuration of agency 242.
The management method of cloud computing platform application rapid deployment provided in this embodiment is asked by application deployment or anti-deploymentIt include using deployment or the anti-copy disposed in asking, cloud platform resource manager 21 determines each in application deployment or anti-deployment requestResource needed for copy, resource information needed for each copy includes the corresponding node address of resource needed for each copy, Container Type and appearanceThe address of device, dynamic reverse proxy 242 are quick more according to the application-copy mapping relations dynamic in corresponding application configuration informationOneself new configuration, may be implemented to apply and rapid deployment and configuration using more copies.
Fig. 5 be another embodiment of the present invention provides cloud computing platform application rapid deployment management method application access streamCheng Tu, Fig. 6 are in the management method of cloud computing platform application rapid deployment provided by the invention using deployment and application accessProcess schematic.After user applies deployment or anti-deployment success in cloud platform, when application access request arrives, it can useThe management method of cloud computing platform application rapid deployment provided in this embodiment.As shown in Figure 5 and Figure 6, in above-described embodimentOn the basis of, the management method of cloud computing platform application rapid deployment provided in this embodiment, further includes:
S501: dynamic reverse proxy 242 receives application access request;
Wherein, after applying deployment or anti-deployment success in cloud platform as user, the user for having application access to request wantsUsing cloud platform deployment in application, the user for having application access to request proposes application access request, when application access request is arrivedWhen coming, dynamic reverse proxy 242 receives application access request.
S502: dynamic reverse proxy 242 according in configuration file application and copy mapping relations and load balancingDetermine that application access request is corresponding using copy;
Specifically, dynamic reverse proxy 242 is according to the application and copy mapping relations and load balancing plan in configuration fileIt slightly determines that application access request is corresponding and applies copy, comprising: dynamic reverse proxy 242 is according to the application and pair in configuration fileThis mapping relations and load balancing determine that application access request corresponding one is applied copy.
It should be noted that dynamic reverse proxy 242 can be used as load balancer, contain inside dynamic reverse proxy 242There is a setting to load balancing, dynamic reverse proxy 242 is according to application and the copy mapping relations in configuration file and movesThe load balancing of state reverse proxy itself setting determines that application access request is corresponding using copy.
S503: dynamic reverse proxy 242 requests corresponding answering using copy acquisition application access request from application accessWith access result;
S504: dynamic reverse proxy 242 accesses result to user's sending application of sending application access request.
Specifically, when multiple application request users access, especially multiple application request user concurrent access when, dynamic is anti-To agency 242 according in oneself configuration information application-copy mapping relations and load balancing to access request carry out fastlySpeed guiding quickly, makes application request user that application quickly be accessed.
It should be noted that the user of application access request only has the user of access application permission, application access requestUser do not have generally and carry out application section administration or the anti-permission disposed in cloud platform.
The management method of cloud computing platform application rapid deployment provided in this embodiment, on the basis of the above embodiments,When there is application request, dynamic reverse proxy 242 is according to the application-copy mapping relations and load balancing in oneself configuration informationStrategy is quickly oriented to access request, while realizing the application quick Dynamical Deployment of more copies and configuration, may be implementedMultiple application request users access when, especially multiple application request user concurrent access when, dynamic reverse proxy 242 according to fromApplication-copy mapping relations and load balancing in own configuration information are quickly oriented to access request, make to apply and askIt asks user that application is quickly accessed, reduces the waiting time of application request user, it is good to ensure that application request user hasUser experience.
Fig. 7 is the management method flow chart for the cloud computing platform application rapid deployment that further embodiment of this invention provides.WhenAfter user applies deployment or anti-deployment success in cloud platform, need to using elastic using copy progress in disposing or instead disposingWhen flexible, the management method of cloud computing platform application rapid deployment provided in this embodiment can be used.As shown in fig. 7, this realityThe management method of the cloud computing platform application rapid deployment of example offer is provided, further includes:
S701: dynamic retractility module 25 obtains the resource service condition of all 23 place nodes of local agent;
Specifically, dynamic retractility module 25 includes data capture device 255, data collector 254, application engine monitor253, copy flow monitor 252, dynamic retractility controller 251.
Wherein, dynamic retractility module 25 obtains the resource service condition of all 23 place nodes of local agent, comprising: dataThe resource service condition of node where acquirer 255 obtains, and resource service condition is sent to data collector 254.
It should be noted that data capture device 255 is distributed on each node of cloud platform, each node contains oneData capture device 255.Data capture device 255 is responsible for the service condition of resource on monitoring node, starting of the container on node, fortuneMarket condition, and actively sent to data collector 254 in upper vessel portion administration or the anti-application message disposed, and by some cyclesThe data information monitored.Data collector 254 is responsible for collecting, converging the monitoring data that all data capture devices 255 are sent.
S702: resource service condition is presented with visual means in dynamic retractility module 25;
Wherein, resource service condition is presented with visual means in dynamic retractility module 25, comprising: copy flow monitor252 are presented each access times using node, container and each copy where corresponding copy with visual means;Using drawingIt holds up monitor 253 and each varigrained resource service condition of node is presented with visual means.It is provided visually for userUsing the monitoring resource of copy flowing of access monitoring and more granularities, the access for checking current application deployment rapidly is enabled a user toSituation and the varigrained resource service condition of cloud platform interior joint.
Specifically, copy flow monitor 252 provides copy real time access traffic monitoring for user, and visualized with webpageForm show that, when user checks the monitoring of copy flowing of access, copy flow monitor 252 can be to dynamic reversed generation to userThe corresponding data information of 242 request of reason, is then shown.It is monitored by the flowing of access of copy, user can see eachIt is a to apply current corresponding copy and each number for applying copy to be accessed, and current request amount is judged.
Table 1 is that copy flowing of access monitors table, as shown in table 1, illustrates in platform portion in the flowing of access monitoring pageAffix one's name to identity number (IDentity, abbreviation ID), the title (Name), corresponding copy information (back-end Node of applicationAnd the number (Invoke Counts) that is currently accessed of each copy (s)).Two are deployed in current platform applies (IDIt is APP_113 and APP_114 respectively), wherein there are two copies using APP_114, it is separately operable in 192.168.7.106:80In two containers of 192.168.7.107:80.Table 2 is that the copy flowing of access after copy is flexible monitors table, APP_113 in table 2The copy newly increased operates on the node that IP address is 192.168.7.107, and the access request then to arrive can be reversed generationReason is shunted, to mitigate the load of original node.Then reduce one using APP_114 and operate in address and is192.168.7.107:80 the copy in container.
Table 1: copy flowing of access monitors table
Table 2: the copy flowing of access after copy is flexible monitors table
Specifically, the varigrained resource that application engine monitor 253 collects data collector 254 uses data(such as computing resource, storage resource) shows user with webpage visual pattern.The access application engine monitoring page can be checkedEach node operates in the application message of container on node and deployment in a reservoir.
Specifically, the information shown in the visual page that multi-granularity resource monitoring provides includes the Internet protocol of nodeCurrent central processing unit (the Central of the address (Internet Protocol, abbreviation IP), node corresponding hostProcessing Unit, abbreviation CPU) utilization rate, current idle memory, indicate data obtaining time on the monitoring page whenBetween stab (timestamp), the number of vessels being currently deployed on the node etc., the visualization provided according to multi-granularity resource monitoringPage user can be directly viewable the position of node upper container, data acquisition timestamp and be currently operating on the containerApplication numbers and application call address etc..
S703: dynamic retractility module 25 is received requests using dilatation or capacity reducing;
Optionally, it requests to include the request increased or decreased using copy amount using dilatation or capacity reducing.
Wherein, dynamic retractility module 25 is received requests using dilatation or capacity reducing, comprising: dynamic retractility controller 251 receivesIt is requested using dilatation or capacity reducing.Flexible management is carried out to using copy, avoids the deficiency or residue of resource, realizes dynamic elasticityFlexible management, it is convenient to operate.
Specifically, dynamic retractility controller 251 provides interface in the application engine monitoring page for user, allow users toCarry out the operation of dynamic retractility application copy number.On the one hand, user can only be managed according to copy flowing of access: whenWhen the application access amount of deployment is larger, user can be monitored on the page in application engine through " increasing (scale out) " buttonIncrease the copy number of application.When amount of access is less whithin a period of time for a certain application, and current copy number is more, userThe copy number of the application can be reduced by " reducing (scale in) " button in the application engine monitoring page.Increased by dynamicThe copy number for subtracting application avoids the deficiency or residue of resource.Due to having used dynamic reverse proxy 242 in frame, so answeringWith the variation meeting Real-time Feedback of replica node into the configuration of dynamic reverse proxy 242, and then pass through dynamic reverse proxy 242Load balancing acts on so that overall system performance is promoted.
It should be noted that user can be only according to fine-grained monitoring resource results management replica node.User may be used alsoTo carry out corresponding elastic telescopic operation in combination with application copy flowing of access and both results of the resource of more granularities.This realityExample is applied to be not limited herein.
When the resource utilization for monitoring certain node is higher, user can be that the application being deployed on the node increases pairThis number, then user's request can be diverted to answering of newly increasing automatically by load balancing possessed by dynamic reverse proxy 242With the load on copy, reducing single copy, total handling capacity is promoted.
In the present embodiment, the information shown in the visual page for option offer of stretching using copy includes " scaleOut " or " scale in " button, user can directly be increased by button " scale out " or " scale in " button orReduce the copy number of specified application.
S704: dynamic retractility module 25 is expanded by inquiring application to cloud platform resource manager 21 using deployment controller 22The perhaps capacity reducing resource information of requesting corresponding copy;
Wherein, dynamic retractility module 25 is expanded by inquiring application to cloud platform resource manager 21 using deployment controller 22The perhaps capacity reducing resource information of requesting corresponding copy, comprising: dynamic retractility controller 251 by using deployment controller 22 toThe resource information of corresponding copy, the resource of specific copy are requested in the inquiry of cloud platform resource manager 21 using dilatation or capacity reducingInformation includes the location information of copy.
S705: the application dilatation or capacity reducing request pair that cloud platform resource manager 21 is sent are received using deployment controller 22The resource information using copy answered, and will be sent to using dilatation or capacity reducing request and request corresponding answer using dilatation or capacity reducingThe local agent 23 of node where copy;
S706: dilatation or capacity reducing success message are applied using what the reception local agent 23 of deployment controller 22 was sent, and willCloud platform resource manager 21 and rapid deployment module 24 are sent to using dilatation or capacity reducing success message.
Specifically, executing process by taking the increase of application copy number as an example to elastic telescopic and being illustrated.
(1) when the application being deployed in cloud platform needs to increase a copy, user passes through dynamic retractility controllerThe 251 interface selections provided on the application engine monitoring page increase a copy, that is, click this using corresponding " scaleOut " button, deployment request can be sent to using deployment controller 22.
(2) it after receiving the request for increasing copy using deployment controller 22, is inquired newly to cloud platform resource manager 21Increase copy should be deployed in which container on which node and node.
(3) after cloud platform resource manager 21 receives above-mentioned request, according to the service condition of global resource, for newly-increased pairThis distribution node and container, and send result to using deployment controller 22.
(4) newly-increased copy and the deployment nodal information of distribution are sent in corresponding node using deployment controller 22Local agent 23 is disposed newly-increased copy by local agent 23, after successful deployment, is sent to using deployment controller 22 1A feedback.
(5) it after the feedback for receiving successful deployment using deployment controller 22, can be sent to cloud platform resource manager 21The message of one successful deployment is convenient for subsequent resource management.Meanwhile it can also be to dynamic reverse proxy using deployment controller 22242 send the deployment information configuring request of a newly-increased copy, enable dynamic reverse proxy 242 in time by newly-increased Replica updatingTo the configuration file of oneself, to carry out equilibrium assignment to subsequent access request.
It should be noted that the copy that can also be applied reduces operation, the copy of application reduces operation and clicks the applicationCorresponding " scale in " button, other operations are similar with application copy increase operation, and details are not described herein.
The management method of cloud computing platform application rapid deployment provided in this embodiment, on the basis of the above embodiments,The visual monitoring resource using copy flowing of access monitoring and more granularities is provided for user, enables a user to directly look into rapidlySee the access situation and the varigrained resource service condition of cloud platform interior joint of current application deployment, and according to oneselfThe characteristic and monitoring data of application rapidly carry out flexible management to using copy, avoid the deficiency or residue of resource, correspondingWith flexible, dynamic elastic telescopic management is carried out, it is convenient to operate.
Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extentPipe present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: its according toSo be possible to modify the technical solutions described in the foregoing embodiments, or to some or all of the technical features intoRow equivalent replacement;And these are modified or replaceed, and the essence of corresponding technical solution is not made to be detached from various embodiments of the present invention technologyThe range of scheme.