Invention content
The technical problem to be solved in the invention is to provide the method for management dummy node, PaaS in a kind of PaaS cloud platforms
The system that dummy node is managed in park device in managing device, dummy node and PaaS cloud platforms in cloud platform, pipe
It is thinner to manage granularity, is easy to be managed collectively the different dummy nodes for being equipped with different application container, the management to node, both
Existing virtual machine environment will not be destroyed, and the repeatable utilization of existing resource may be implemented so that is virtually saved under PaaS platform
Point can more stablize effective operation.
In order to solve the above technical problem, the present invention provides in a kind of PaaS cloud platforms manage dummy node method,
Applied to PaaS cloud platforms side, including:
The park device of the managing device of PaaS platform, that is, service cloud platform and each dummy node, which is established, to be communicated to connect, described
Managing device sends administration order by unified interface to each park device, to complete to application container on the dummy node
Or the management of application.
Further, the managing device sends administration order by unified interface to each park device, including:
The managing device defines the administration order interface of standard, and calls the administration order interface of the standard to difference
The park device of type sends the administration order of unified format.
Further, the managing device sends administration order by unified interface to each park device, including:
The managing device judges the application type of application to be managed, obtains a virtual section consistent with the application type
Point, and send the administration order to park device corresponding with the dummy node.
Further, the administration order includes at least:Using deployment order, application pause order, using reset command,
Application upgrade order and application unloading order;The application deployment order includes at least following parameter:Resource where application resource
Server address and the required configuration information address of application.
Further, the method further includes:
The managing device receives the node status information that the park device reports, and is shown in WEB page, and protects
It there are on Resource Server, checks and manages for administrator, the node status information includes that one or more of includes:
CPU usage, disk utilization rate, memory usage, network interface card are received and sent messages flow and application operation log information.
In order to solve the above technical problem, the present invention provides in a kind of PaaS cloud platforms manage dummy node method,
Applied to dummy node, including:
After the park device of each virtual machine node establishes communication connection with the managing device of PaaS platform, that is, service cloud platform,
The administration order that the managing device is sent is received by unified interface;Park device root after receiving the administration order
The application container or application execution managed it according to the administration order manages operation accordingly.
Further, each dummy node includes at least an application container and one corresponding with the application container resident
Device, the park device is corresponding with application type, and different park devices is adapted to identical interface.
Further, the park device is answered after receiving the administration order according to what the administration order managed it
Operation is managed accordingly with container or application execution, including:
The park device judges the command type of the administration order, and according to phase after receiving the administration order
Application container that the administration order of command type manages it or application execution is answered to manage operation accordingly.
Further, the administration order includes at least:Using deployment order;The application deployment order includes at least such as
Lower parameter:Resource Server address where application resource and the required configuration information address of application;
Application container that the park device manages it after receiving the administration order according to the administration order or
Application execution manages operation accordingly, including:
The park device judges that the command type of the administration order is disposed for application after receiving the administration order
Order, then parse the parameter using deployment order, is matched accordingly from the download of corresponding Resource Server according to the parameter
Confidence ceases, and carries out configuration and the application deployment of application container.
Further, the administration order includes at least:Application pause order, using reset command, application upgrade order
With application unloading order;
Application container that the park device manages it after receiving the administration order according to the administration order or
Application execution manages operation accordingly, including:
The park device after receiving the administration order, judge the administration order type for application pause order,
Using reset command, application upgrade order or application unloading order, then to the corresponding pipe of administration order described in the application execution
Reason operation.
Further, the method further includes:
The park device periodically reports node status information to the managing device, the node status information include with
Under one or more include:CPU usage, disk utilization rate, memory usage, network interface card are received and sent messages flow and application operation day
Will information.
In order to solve the above technical problem, the present invention provides the management dresses in a kind of PaaS platform, that is, service cloud platform
It sets, including:
Communication building block is communicated to connect for being established with the park device of each dummy node;
Sending module, for sending administration order to each park device by unified interface, to complete to described virtual
The management of application container or application on node.
Further, the managing device further includes interface definition module, the administration order interface for defining standard;
The sending module is additionally operable to call the administration order interface of the standard to be sent to different types of park device
The administration order of unified format.
Further, the managing device further includes dummy node acquisition module, the application for judging application to be managed
Type obtains a dummy node consistent with the application type, and sending module is notified to be stayed to corresponding with the dummy node
Device is stayed to send the administration order;
The sending module is additionally operable to send the administration order to the park device corresponding with the dummy node.
Further, the administration order includes at least:Using deployment order, application pause order, using reset command,
Application upgrade order and application unloading order;The application deployment order includes at least following parameter:Resource where application resource
Server address and the required configuration information address of application.
Further, the managing device further includes receiving module, the node shape reported for receiving the park device
State information, and be shown in WEB page, and be stored on Resource Server, it checks and manages for administrator;The node state
Information includes that one or more of includes:CPU usage, disk utilization rate, memory usage, network interface card receive and send messages flow and
Application operation log information.
In order to solve the above technical problem, the present invention provides on dummy node in a kind of PaaS platform, that is, service cloud platform
Park device, including:
Communication module is communicated to connect for being established with the managing device of PaaS platform, that is, service cloud platform;
Receiving module, for receiving the administration order that the managing device is sent by unified interface;
Execution module, application container or application execution for being managed it according to the administration order manage behaviour accordingly
Make.
Further, each dummy node includes at least an application container and one corresponding with the application container resident
Device, the park device is corresponding with application type, and the receiving module of different park devices is adapted to identical interface.
Further, the execution module, application container or application for being managed it according to the administration order are held
The corresponding management operation of row, including:
The execution module judges the command type of the administration order, and according to the administration order pair of the corresponding command type
Its application container managed or application execution manage operation accordingly.
Further, the administration order includes at least:Using deployment order;The application deployment order includes at least such as
Lower parameter:Resource Server address where application resource and the required configuration information address of application;
The execution module, application container or application execution for being managed it according to the administration order are managed accordingly
Reason operation, including:
The execution module judges the command type of the administration order using deployment order, then to parse the application section
The parameter for affixing one's name to order downloads corresponding configuration information from corresponding Resource Server according to the parameter, carries out application container
Configuration and application deployment.
Further, the administration order includes at least:Application pause order, using reset command, application upgrade order
With application unloading order;
The execution module, application container or application execution for being managed it according to the administration order are managed accordingly
Reason operation, including:
The execution module judge the administration order type for application pause order, using reset command, application upgrade
Order or application unloading order, then operate the corresponding management of administration order described in the application execution.
Further, the park device further includes applying monitoring module, for periodically reporting section to the managing device
Three-point state information, the node status information include that one or more of includes:CPU usage, disk utilization rate, memory make
It is received and sent messages flow and application operation log information with rate, network interface card.
In order to solve the above-mentioned technical problem, virtual the present invention also provides being managed in a kind of PaaS platform, that is, service cloud platform
The system of node, including managing device as described above and park device as described above, wherein:
The managing device is communicated to connect for being established with the park device of each virtual machine node, by unified interface to
Each park device sends administration order;
The park device, for after receiving the administration order by unified interface, according to the administration order pair
Its application container managed or application execution manage operation accordingly.
Compared with prior art, method, the PaaS cloud platforms of dummy node are managed in PaaS cloud platforms provided by the invention
On managing device, the system of management dummy node passes through first in the park device on dummy node and PaaS cloud platforms
It calls unified interface to go to complete the management to different nodes, the specific management action of node will be placed on except application container,
The management to application container is specifically executed by park device, management granularity is thinner;Secondly, the root when application is disposed can be realized
Performance configuration is carried out to application container in dummy node according to the feature of application;And it can realize that specific application is given birth in node administration
The application in the period is ordered to start, pause, upgrade and delete release resource;In addition, node administration life cycle internal segment can be realized
The two level monitoring of point operating status;It can be carried out in the case where maintaining environment baseline stability by the above-mentioned management of progress flexibly more
The node administration of sample, the technique effect effectively run can more be stablized by reaching PaaS platform lower node.
Embodiment:
As shown in Figure 1, the system that dummy node is managed in present embodiments providing a kind of PaaS cloud platforms, including:PaaS
The managing device of cloud platform, park device and Resource Server on dummy node, wherein:
The managing device of PaaS cloud platforms is the man-machine interactive interface of dummy node management under PaaS environment, and managing device is logical
It crosses and receives the management operation that system manager carries out on administration page, administration order is assigned to the park device of each dummy node
To complete the management function to many dummy nodes under PaaS environment;In addition, managing device defines the administration order interface of standard,
Management module only calls standard interface that can realize the management to dummy node, can thus be adapted to different types of application
Container, meanwhile, according to this unified standard interface, future, managing device module can also be adapted to further types of park device
Dummy node in other words.Meanwhile managing device will guarantee to transmit necessary information to correct residing node, including safeguard industry
The maintenance of business configuration information, the maintenance of service scripts address, the maintenance etc. of business-virtual machine map information.
Park device is installed on dummy node, localized execution is really to the management logic of dummy node, Ke Yishi
Now to the more fine-grained management of application and application container, the park device is receiving the management life by unified interface
After order, the application container or application execution that are managed it according to the administration order manage operation accordingly.Park device corresponds to
Management with container and application is more flexible,, can dynamically modification application primarily directed to application container when application is disposed
Certain configurations of container so that application container performance reaches best.Then it is needle when application upgrade application is restarted in application pause
To application, without restarting application container, which improves the efficiency of operation.(virtual machine operations to generally be taken
10 minutes or more, to generally wanting 2 minutes or so using container operation, application is operated, is several seconds).
Resource Server is the storing containers of all resources under PaaS environment, application file such as to be disposed, configuration file
Information etc., this device realize the unified management of resource in cloud environment.
Wherein, as shown in Fig. 2, the managing device includes:Communication building block and sending module, wherein:
Communication building block is communicated to connect for being established with the park device of each dummy node;
The managing device and the park device can be built by establishing HTTP long connections as a preferred method,
Vertical communication connection;
Sending module, for sending administration order to each park device by unified interface, to complete to described virtual
The management of application container or application on node.
In addition, the managing device further includes interface definition module, the administration order interface for defining standard;
The sending module is additionally operable to call the administration order interface of the standard to be sent to different types of park device
The administration order of unified format.
In addition, the managing device further includes dummy node acquisition module, the application type for judging application to be managed,
A dummy node consistent with the application type is obtained, and notifies sending module to park device corresponding with the dummy node
Send the administration order;Wherein, managing device can determine the application class of the application according to unique mark of application to be managed
Type;For example, managing device can be inputted according to administrator or the extension name of the application file of application to be managed obtains the application
It is unique mark and application type;In the present embodiment, the application type includes but not limited to one or more of:java
Using, USEE application .Net applications and PHP applications;
The sending module is additionally operable to send the administration order to the park device corresponding with the dummy node.
Wherein, the administration order for being sent to park device is included, but is not limited to issue orders:It is ordered using deployment
It enables, application pause order, unload and order using reset command, application upgrade order and application;
The application deployment order includes at least following parameter:Needed for Resource Server address where application resource and application
Configuration information address, so that park device is searched from Resource Server and obtains corresponding configuration information and application file.
Finally, the managing device further includes receiving module, the node state letter reported for receiving the park device
Breath, and be shown in WEB page, and be stored on Resource Server, it checks and manages for administrator;The node status information
Include including one or more of:CPU usage, disk utilization rate, memory usage, network interface card are received and sent messages flow and application
Running log information, to realize the two level monitoring to being applied on dummy node.
Wherein, as shown in figure 3, the park device includes:Communication module, receiving module and execution module, wherein:
Communication module is communicated to connect for being established with the managing device of PaaS platform, that is, service cloud platform;
Receiving module, for receiving the administration order that the managing device is sent by unified interface;
Execution module, application container or application execution for being managed it according to the administration order manage behaviour accordingly
Make.
In the present embodiment, each dummy node includes at least an application container and one corresponding with the application container
Park device, the park device is corresponding with application type, and different park devices is adapted to identical interface, but specifically holds
The different application container of row logical AND is adapted, and is allowed for managing device in this way and is realized by unified interface with many park devices
Unified management to different application container, and park device is only the real executor of dummy node management, will hold to application
The specific management action of device, which is placed on except application container, to be executed, to realize to application container and apply more fine-grained pipe
Reason.
Wherein, the execution module, the application container for being managed it according to the administration order or application execution phase
The management operation answered, including:
The execution module judges the command type of the administration order, and according to the administration order pair of the corresponding command type
Its application container managed or application execution manage operation accordingly.
In the specific implementation, administration order includes for example:Using deployment order, application pause order, using reset command,
Application upgrade order and application unloading order etc..
When application is disposed, the execution module judges the administration order using deployment order, then to be answered described in parsing
With the parameter of deployment order, corresponding configuration information is downloaded from corresponding Resource Server according to the parameter, is carried out using appearance
The configuration and application deployment of device.
The application deployment order includes at least following parameter:Resource Server address where application resource, using required
Configuration information address;
In general, the address of Resource Server is dynamic, so execution module is first according to resource where application resource
Server address first finds corresponding Resource Server, then according to the required configuration information address of application from the Resource Server
Download corresponding configuration information, the configuration information includes, such as the configuration file of application and application application file.Thus
Realize application dispose when according to the feature of application to dummy node in application container carry out performance configuration.
The configuration file of the application includes one or more of:Data source link information, JVM performance configurations information,
Web.xml application configuration informations and application deployment report address.The application file of the application refers to that corresponding application container is determined
The valid application file of justice.
Within the management cycle of application, the execution module judge the administration order type for application pause order, answer
With reset command, application upgrade order or application unloading order, wherein the administration order includes at least following parameter:Using
Unique mark, the execution module then to the corresponding management of administration order described in the application execution operate.
For example, at one in application example, as shown in Figure 1, park device 1-3 corresponds respectively to three kinds of different application containers
1-3, wherein application container 1 is .Net application containers, and application container 2 is Java application containers, and application container 3 is USEE applications
Container..Net application container is the real running environment of .Net applications, is used to support the .Net being deployed in the PaaS platform and answers
Operation;Java application containers are the real running environments of Java applications, are used to support and are deployed in the PaaS platform
The operation of Java applications;USEE application containers are the real running environments of USEE applications, are used to support and are deployed in the PaaS platform
On USEE application operation.And park device 1-3 is the practical executor for the management action of different application container.
Managing device needs to record and maintenance application uniquely indicates and it runs virtual machine Ip address mapping relations and matches
Set the mapping relations of file and application file and its storage address.Managing device safeguards virtualization pool information table, for recording
The service condition of resources of virtual machine;It also safeguards the application container configuration file deposit position table corresponding to different application type, uses
To search configuration information in service deployment;And maintenance application disposition list, for searching needs according to unique mark of application
The corresponding virtual machine address of application deployment.
When application is disposed, if the managing device judges that the application type for the application for needing to dispose is applied for .Net,
Pass through the .Net applications virtual resource from system of tabling look-up according to the unique mark of application and its operation virtual machine Ip address mapping relation
An available dummy node is obtained in pond, to the park device of the node, i.e. 1 sending application deployment order of park device;
Park device 1 parses the parameter using deployment order, according to .Net after receiving the application deployment order
Resource Server address where application resource is corresponding from the corresponding Resource Server download .Net application containers of .Net application resources
Configuration file and application file, the configuration of .Net application containers is changed according to configuration file, and according to application file to .Net
Using being disposed.
Within the management cycle of application, the managing device obtains unique mark of application, according to the unique mark of application and
It runs virtual machine Ip address mapping relations, by table look-up obtain application where virtual machine address, and to opposite with the virtual machine
The park device sending application reset command answered;The reset command includes following parameter:The unique mark of specific application.
The park device is after receiving the reset command, according to the reset command and the unique mark of specific application
Restart the specific application.
Finally, the park device further includes applying monitoring module, for periodically reporting node shape to the managing device
State information, the node status information include that one or more of includes:CPU usage, disk utilization rate, memory use
Rate, network interface card are received and sent messages flow and application operation log information, so that managing device is checked and managed for administrator.It is thus real
The two level monitoring to node operating status in node administration life cycle is showed.
As shown in figure 4, a kind of method that dummy node is managed in present embodiments providing PaaS cloud platforms, including following step
Suddenly:
S101:The park device of the managing device of PaaS platform and each virtual machine node, which is established, to be communicated to connect;
S102:The managing device sends administration order by unified interface to each park device;
S103:After the park device receives the administration order by unified interface, according to the administration order to it
The application container or application execution of management manage operation accordingly.
Wherein, in step S101, the park device of the managing device and each virtual machine node can pass through foundation
HTTP long connections communicate to connect to establish.
In step s 102, described managing device defines the administration order interface of standard, and calls the pipe of the standard
Manage the administration order that command interface sends unified format to different types of park device;Inhomogeneity can be thus adapted to
The application container of type, meanwhile, according to this unified standard interface, future managing device module can also be adapted to it is further types of
Park device dummy node in other words.
The managing device judges the application type of application to be managed, obtains a virtual section consistent with the application type
Point, and send the administration order to park device corresponding with the dummy node, wherein in the present embodiment, the application
Type includes but not limited to one or more of:Java applications, USEE applications .Net applications and PHP applications;
The administration order is included, but is not limited to issue orders:Using deployment order, application pause order, using weight
Open order, application upgrade order and application unloading order;Wherein, the application deployment order includes at least following parameter:Using
Resource Server address where resource and the required configuration information address of application.
In the present embodiment, each dummy node includes at least an application container and one corresponding with the application container
Park device, the park device is corresponding with application type, and different park devices is adapted to identical interface, and dummy node is just
It is a virtual machine, can regards that a computer for being connected into network, application container are the running environment of application as, be to operate in
A software on dummy node.
Wherein, in step s 103, the park device judges the administration order after receiving the administration order
Command type, and the application container or application execution that are managed it according to the administration order of the corresponding command type manage behaviour accordingly
Make, wherein:
When application is disposed, the park device judges the order of the administration order after receiving the administration order
Type is then to parse the parameter using deployment order using deployment order, and the application deployment command parameter includes at least:
Resource Server address where application resource, using required configuration information address;The park device is according to the parameter slave phase
The Resource Server answered downloads corresponding configuration information, carries out configuration and the application deployment of application container.
Within the management cycle of application, the administration order includes at least:Application pause order, using reset command, answer
With upgrade command and application unloading order;
The park device after receiving the administration order, judge the administration order type for application pause order,
Using reset command, application upgrade order or application unloading order, then to the corresponding pipe of administration order described in the application execution
Reason operation.
In addition, after the above step, the method for this implementation further includes:
The park device periodically reports node status information to the managing device, the node status information include with
Under one or more include:CPU usage, disk utilization rate, memory usage, network interface card are received and sent messages flow and application operation day
Will information;
The managing device receives the node status information that the park device reports, and is shown in WEB page, and protects
There are on Resource Server, checks and manage for administrator.
Thereby realize the two level monitoring to node operating status in node administration life cycle.
It is as shown in Figure 5 and Figure 6, described when application is disposed using system as shown in Figure 1 at one in application example
The managing device of system and the workflow of park device are as follows:
S201:The managing device of PaaS platform receives the application deployment order of administrator's input;
S202:Managing device is inputted according to administrator uploads application file to Resource Server, and obtains and record application
File storage address;
S203:Managing device is inputted according to administrator or the extension name of application file obtains and unique mark of record application
The application type for showing and applying;
Wherein, application type includes:.Net、Java、USEE.
S204:Managing device judges application type according to the unique mark of application, applies, thens follow the steps if it is .Net
S205 applies if it is Java, thens follow the steps S207, is applied if it is USEE, thens follow the steps S209;
S205:By tabling look-up, storage address of the application container configuration information of .Net applications on Resource Server is obtained;
Because managing device record and maintain using unique mark and its run virtual machine Ip address mapping relations and
The mapping relations of configuration file and application file and its storage address, so configuration information and application can be obtained by tabling look-up
The storage address of file.
S206:An available dummy node is obtained from .Net applications virtualization pool in system by tabling look-up, and to
The park device sending application deployment order of the node;
Wherein, it is described using Resource Server address where application resource is carried in deployment order, confidence is matched in application
The storage address of breath and application file.
S207:By tabling look-up, storage address of the application container configuration information of Java applications on Resource Server is obtained;
S208:An available dummy node is obtained from Java applications virtualization pool in system by tabling look-up, and to
The park device sending application deployment order of the node;
S209:By tabling look-up, storage address of the application container configuration information of USEE applications on Resource Server is obtained;
S210:An available dummy node is obtained from USEE applications virtualization pool in system by tabling look-up, and to
The park device sending application deployment order of the node.
As shown in fig. 6, when application is disposed, the workflow of park device is as follows:
S301:Park device receives the application deployment order of managing device transmission;
S302:Deployment order is applied in park device parsing, obtains configuration file storage address, and download configuration file;
S303:Park device carries out initial configuration according to configuration file to application container;
S304:Deployment order is applied in park device parsing, obtains application file storage address, and download application file;
S305:Park device, which executes, specifically to be acted using deployment, and application file is deployed in application container.
Similar, managing device can receive the application pause order of administrator's transmission, using reset command, application upgrade
Order and application unloading order etc., to realize the specified operation to application.
Park device can receive managing device transmission application pause order, using reset command, application upgrade order,
It is ordered using unloading, to realize the specified operation to application.
At one in application example, when node is run, park device can report node to run shape to managing device timing
State information, managing device can be by the node running state information persistent storages received to local or including on WEB, such as scheming
Shown in 7, the workflow of node running state monitoring is as follows:
S401:The operating status of park device regularly collector node, including application operation daily record, CPU usage, disk
Utilization rate, memory usage and network interface card are received and sent messages flow etc..
S402:Park device assembling reports information, and node operating status is reported to managing device according to certain format;
S403:What managing device received all nodes reports information;
S404:Managing device gives the node running state information received addition nodal information and reports temporal information, and
Persistent storage is called and is shown when administrator checks to local.
From above-described embodiment as can be seen that compared with the existing technology, the PaaS cloud platform middle pipes provided in above-described embodiment
In method, the managing device in PaaS cloud platforms, the park device on dummy node and the PaaS cloud platforms of managing dummy node
The system for managing dummy node, first, managing device, will be right by calling unified interface to go to complete the management to different nodes
The specific management action of node is placed on except application container, i.e., the management to application container is specifically executed by park device, management
Granularity is thinner;Secondly, can realize application dispose when according to the feature of application to dummy node in application container carry out performance
Configuration;And it can realize that application of the specific application in node administration life cycle starts, pause, upgrades and delete release money
Source;In addition, the two level monitoring of node administration life cycle interior nodes operating status can be realized.In short, by carrying out above-mentioned pipe
Reason managing device defines unified command interface, and park device has been adapted to all administration orders of managing device, has passed through them
Between cooperation, can consume less resource, complete the more careful management work to node, environment base can maintained
Line carries out flexile node administration in the case of stablizing, and effective operation can more be stablized by reaching PaaS platform lower node
Technique effect.
One of ordinary skill in the art will appreciate that all or part of step in the above method can be instructed by program
Related hardware is completed, and described program can be stored in computer readable storage medium, such as read-only memory, disk or CD
Deng.Optionally, all or part of step of above-described embodiment can also be realized using one or more integrated circuits.Accordingly
Ground, the form that hardware may be used in each module/unit in above-described embodiment are realized, the shape of software function module can also be used
Formula is realized.The present invention is not limited to the combinations of the hardware and software of any particular form.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.According to
The invention content of the present invention, can also there is other various embodiments, without deviating from the spirit and substance of the present invention, be familiar with
Those skilled in the art makes various corresponding change and deformations in accordance with the present invention, all in the spirit and principles in the present invention
Within, any modification, equivalent replacement, improvement and so on should all be included in the protection scope of the present invention.