CN107786587A - A kind of method and cloud controller for adjusting application resource - Google Patents
A kind of method and cloud controller for adjusting application resource Download PDFInfo
- Publication number
- CN107786587A CN107786587A CN201610723218.9A CN201610723218A CN107786587A CN 107786587 A CN107786587 A CN 107786587A CN 201610723218 A CN201610723218 A CN 201610723218A CN 107786587 A CN107786587 A CN 107786587A
- Authority
- CN
- China
- Prior art keywords
- application
- conjunction
- sets
- cloud controller
- installation
- 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/53—Network services using third party service providers
Abstract
The embodiment of the invention discloses a kind of method for adjusting application resource, if the performance index value that application is set for the first conjunction is more than preset threshold value, conjunction sets controller closes to set to apply to first can flexibly carry out dilatation.Present invention method includes:The cloud controller sets application message according to default conjunction, concurrently installs each close and sets application, and the conjunction sets conjunction of the application message between at least two application messages and sets information, and each conjunction is set concurrently to be carried out using each application message installation included;The cloud controller receives each performance index value for closing and setting using reporting;If the performance index value that the first conjunction sets application is more than preset threshold value, the cloud controller closes to described first to be set using progress dilatation.
Description
Technical field
The present invention relates to the communications field, especially designs a kind of method and cloud controller for adjusting application resource.
Background technology
With the development of cloud computing, more and more applications can enter racking, and can be disposed in the environment of cloud and reach the standard grade and transport
Dimension.Apply and into cloud transition process, keeping existing networking requirement or saving resource to be set, it is necessary to carry out conjunction to different application,
Service application is deployed on same physics or virtual resource.Existing IaaS (Infrastructure as a
Service, infrastructure services), PaaS (Platform as a Service, platform service) platform provide application stretch
Processing both in setting up application (each application possess exclusive physics or virtual resource) on cloud separately, pairing is set using entering
It is more complicated when row is flexible.
Existing cloud platform technology does not support the flexible conjunction of application to set, it is necessary to be answered by engineering means needing to close two set
With being packaged with, a new installation kit is formed, then disposed or stretched;Combine scenes are set to each conjunction, are required for
Spend workload to carry out integrated verification, the installation kit of existing application can not be reused.
Existing cloud platform is stretched by using granularity, and application is flexible every time to be carried out to current application;Each application
It is unable to flexible configuration and carries out conjunction to set, so adds the workload for assembling new installation kit, and assembling lacks flexibility;Flexible
During, to be each using the flexible exclusive resource of distribution, it can not continue to keep closing between applying after flexible to set, produce unnecessary money
Source fragment.
The content of the invention
The embodiments of the invention provide a kind of method and cloud controller for adjusting application resource, answered if closing to set for first
Performance index value is more than preset threshold value, then closes to set controller and close to first and set using can flexibly carry out dilatation.
In embodiments of the present invention, the structural representation for the cloud service platform system applied may include cloud controller and soft
Part warehouse, wherein, cloud controller is referred to as dispatching application subsystem, it may include deployment management, conjunction set controller and stretched
Manage three functional modules.It should be understood that cloud controller and software storage can set up separately, it can also integrate, be not specifically limited.
First aspect of the embodiment of the present invention provides a kind of method for adjusting application resource, and this method is applied to cloud service platform
System, the cloud service platform system include cloud controller, and this method can include:The cloud controller sets application according to default conjunction
Information, the concurrently each conjunction of installation set application, wherein, it is according to the installation for obtaining at least two applications that default conjunction, which sets application message,
Information, carry out deployment management, it is determined that conjunction set application message, the conjunction sets conjunction of the application message between at least two application messages
If information, each conjunction is set concurrently to be carried out using each application message installation included;The cloud controller is received each to close to set and answered
With the performance index value reported;If first closes and sets the performance index value of application and be more than preset threshold value, the cloud controller to this
One conjunction is set using progress dilatation.
In embodiments of the present invention, because default conjunction sets application message, equivalent to the progress of each application message
Flexible close sets, if first closes and set the performance index value of application and be more than preset threshold value, cloud controller closes to first sets that apply can
To carry out dilatation, meets the needs of business.Technical solution of the present invention solves multiple business during cloud, (each by each side
Department) application message that provides or information on services need to carry out conjunction to set, but be unable to flexible configuration respectively apply, respectively service between or apply
Conjunction between service sets relation.The new Performance figure for wrapping deployment, being set further according to conjunction is formed to the application combination for needing conjunction to set, really
It is fixed whether to stretch, in telescopic process, conjunction can be kept to set the conjunction of application and set ability, reduce the wasting of resources.
With reference to the embodiment of the present invention in a first aspect, the first implementation of the first aspect in the embodiment of the present invention
In, the cloud controller sets application message according to default conjunction, and concurrently each close of installation sets application, can include:The cloud controller
Obtain at least two and apply mount message, at least two application mount messages are obtained from software storage, and software storage is exactly
Store the place of application message;The default conjunction that the cloud controller receives user's input sets application message, and user puts in conjunction establishing
It is upper to specify application to set relation with the conjunction serviced with service or application and application, service;The cloud controller is set according to the default conjunction
Application message, it is determined that each close the first resource establishment information for setting application, the first resource that each conjunction sets application creates information
Set for each conjunction in application, the union for the topology information that each application includes;The cloud controller calls each conjunction to set application
First resource creates information, and concurrently each close of installation sets application.
In embodiments of the present invention, to how to carry out the initial side for installing each conjunction and setting application and providing a feasibility
Case, the topological template for setting controller parsing application or service is closed, carry out the merging that the networking structure of same type in topology is carried out;
Here like type refers to that to close the application that sets or service be all unit networking, or is all two-node networking, or is all cluster networking.
The first implementation of the first aspect of first aspect, the embodiment of the present invention with reference to the embodiment of the present invention,
In second of implementation of the first aspect of the embodiment of the present invention, the cloud controller is set using progress dilatation to first conjunction,
It can include:The first resource that the cloud controller sets application according to first conjunction creates information, determines that first conjunction sets application
Secondary resource creates information, and the Secondary resource that first conjunction sets application creates resource information of the information as next installation node;
The Secondary resource that the cloud controller sets application according to first conjunction creates information, and first conjunction is set to apply and installed, wherein,
First conjunction is set concurrently to be carried out using each application message installation included.
In embodiments of the present invention, initial close is set using after deployment, and conjunction sets the index using resource where reporting (such as center
Processor CPU usage) to flexible management;Whether flexible management according to rule decision reaches threshold values, and (such as CPU usage is more than
80%), triggering is flexible;Close and set the flexible management of controller to perform application flexible, conjunction is dispatched to according to setting information using conjunction and redirecting
If controller, the resource (virtual machine, network, storage) disposed according to needed for closing and set application carries out resource conversion, and application meets two
The conjunction of application sets resource, creates virtual machine, connection network, addition storage etc..
With reference to second of implementation of the first aspect of the embodiment of the present invention, in the first aspect of the embodiment of the present invention
In the third implementation, the Secondary resource that the cloud controller sets application according to first conjunction creates information, and first conjunction is set
Using being installed, can include:The cloud controller according to this first close set application Secondary resource create information, to this first
Using including each application message be updated;The cloud controller is installed to the first application after renewal.
Wherein, each application message included to first application is updated, and can be included:The cloud controller is to this
Each application message that first application includes identifies new installation node, the cluster configuration information of node has been installed in modification or modification is pacified
Fill information.
In embodiments of the present invention, exemplary after triggering is flexible, the conjunction that conjunction sets controller sets what layout scheduling set conjunction
Using A and application B sub-process, stamped when being installed such as A to virtual machine using flexible new node label, then installation application is soft
Part;Such as needing modification cluster other configurations using B, (such as newly-increased nodal information of distributed coordination (Zookeeper) configuration is to each
Node), then application software is installed again.
The first implementation, the sheet of the first aspect of first aspect, the embodiment of the present invention with reference to the embodiment of the present invention
Second of implementation of the first aspect of inventive embodiments, the third implementation of the first aspect of the embodiment of the present invention,
In the 4th kind of implementation of the first aspect of the embodiment of the present invention, this method can also include:If first conjunction sets application
Performance index value be less than or equal to the preset threshold value, then the cloud controller to this first close set using carry out capacity reducing or keep not
Become.
In embodiments of the present invention, can if the performance index value that first conjunction sets application is less than or equal to the preset threshold value
According to specific first close set application performance index value determine to first close set using carry out capacity reducing or keep it is constant.
The first implementation, the sheet of the first aspect of first aspect, the embodiment of the present invention with reference to the embodiment of the present invention
Second of implementation of the first aspect of inventive embodiments, the third implementation of the first aspect of the embodiment of the present invention,
4th kind of implementation of the first aspect of the embodiment of the present invention, in the 5th kind of realization side of the first aspect of the embodiment of the present invention
In formula, the utilization rate of the performance index value including central processor CPU, service call amount, the occupancy of handling capacity or internal memory.
Second aspect of the embodiment of the present invention provides a kind of cloud controller, has and realizes what is provided corresponding to above-mentioned first aspect
Realize the function of adjustment application resource.The function can be realized by hardware, and it is real that corresponding software can also be performed by hardware
It is existing.The hardware or software include one or more modules corresponding with above-mentioned function phase.
The third aspect of the embodiment of the present invention provides a kind of cloud controller, can include:Transceiver, processor, memory and
Bus, the transceiver, the processor and the memory are connected by the bus;
The transceiver, set for receiving each conjunction using the performance index value reported;
The memory, for storing operational order;
The processor, for by calling the operational order, application message to be set according to default conjunction, concurrently installation is each closes
If using the conjunction sets conjunction of the application message between at least two application messages and sets information, and each conjunction sets each using including
Individual application message installation is concurrently carried out;If the performance index value that the first conjunction sets application is more than preset threshold value, the processor is to this
First conjunction is set using progress dilatation.
Fourth aspect of the embodiment of the present invention provides a kind of storage medium, it is necessary to explanation, the technical scheme essence of this hair
On all or part of the part that is contributed in other words to prior art or the technical scheme shape of mouth can be produced with software
Formula is embodied, and the computer software product is stored in a storage medium, for saving as the calculating used in the said equipment
Machine software instruction, it, which is included, is used to perform the journey of above-mentioned first aspect, second aspect or the third aspect designed by cloud controller
Sequence.
The storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), arbitrary access
Memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.
As can be seen from the above technical solutions, the embodiment of the present invention has advantages below:
In embodiments of the present invention, the cloud controller sets application message according to default conjunction, and concurrently each close of installation sets
Using the conjunction sets conjunction of the application message between at least two application messages and sets information, and each conjunction, which is set, applies what is included
Each application message installation is concurrently carried out;The cloud controller receives each performance index value for closing and setting using reporting;If first
The performance index value that conjunction sets application is more than preset threshold value, then the cloud controller closes to described first sets using progress dilatation.Cause
Application message is set for default conjunction, is set equivalent to flexible close is carried out to each application message, if the first conjunction sets application
Performance index value is more than preset threshold value, then cloud controller sets application to the first conjunction can carry out dilatation, meet the needs of business.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, below will be to institute in embodiment and description of the prior art
The accompanying drawing needed to use is briefly described, it should be apparent that, drawings in the following description are only some implementations of the present invention
Example, for those of ordinary skill in the art, on the premise of not paying creative work, can also be obtained according to these accompanying drawings
Obtain other accompanying drawings.
Fig. 1 is the operation principle schematic diagram of automatic telescopic under cloud scene provided in the embodiment of the present invention;
Fig. 2 is the structural representation for the cloud service platform system applied in the embodiment of the present invention;
Fig. 3 is one embodiment schematic diagram for the method that application resource is adjusted in the embodiment of the present invention;
Fig. 4 is the example schematic before merging in the embodiment of the present invention using CDN with vSearch service clusters;
Fig. 5 is the example schematic after merging in the embodiment of the present invention using CDN with vSearch service clusters;
Fig. 6 is to stretch to manage in the embodiment of the present invention to carry out closing a schematic diagram for setting layout scheduling;
Fig. 7 is that the schematic diagram for setting and being mounted in parallel using each application included is closed in the embodiment of the present invention;
Fig. 8 is one embodiment schematic diagram of cloud controller in the embodiment of the present invention;
Fig. 9 is another embodiment schematic diagram of cloud controller in the embodiment of the present invention;
Figure 10 is another embodiment schematic diagram of cloud controller in the embodiment of the present invention;
Figure 11 is another embodiment schematic diagram of cloud service platform system in the embodiment of the present invention;
Figure 12 is another embodiment schematic diagram of cloud controller in the embodiment of the present invention.
Embodiment
The embodiments of the invention provide a kind of method and cloud controller for adjusting application resource, answered if closing to set for first
Performance index value is more than preset threshold value, then closes to set controller and close to first and set using can flexibly carry out dilatation.
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention
Accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, rather than whole embodiments.Based on the embodiment in the present invention, ordinary skill people
The every other embodiment that member is obtained under the premise of creative work is not made, it should all belong to the model that the present invention protects
Enclose.
In the prior art, as shown in figure 1, operation principle schematic diagram for the automatic telescopic under cloud scene, cloud in the industry cycle
Automatic telescopic (Auto Scaling) can pass through specified requirements dynamic expansion in platform.For example, specify central processing unit (CPU,
Central Processing Unit) utilization rate increases virtual machine instance;User (User) application deployment server
(Application Server) 1, and monitor (Monitor Server Load) by performance indications and obtain the performance number applied
According to such as CPU usage, call volume data;Auto Scaling are computational in Conidtions (condition or rule module)
Energy data qualification (such as CPU usage is more than 80%), a new Application Server 2 is added after meeting condition.
Existing stretched under cloud scene is according to using granularity, i.e. applicating category manages.In Auto Scaling
It is that single application is stretched, so the Applicaion Server newly added are the application server of the single application, no
The application server of other classifications application can be added, such as MySQL (Structured Query Language, structuralized query language
Speech) server etc.;And the virtual machine provided can only also be monopolized to Application Server.
In embodiments of the present invention, the structural representation for the cloud service platform system applied is as shown in Figure 2, it may include cloud
Controller and software storage, wherein, cloud controller is referred to as dispatching application subsystem, it may include deployment management, conjunction set control
Three functional modules of device processed and flexible management.It it should be understood that cloud controller and software storage can set up separately, can also integrate, not do specific
Limit.Technical solution of the present invention solves multiple business during cloud, by each side (all departments) provide application message or
Information on services needs to carry out conjunction to set, but be unable to flexible configuration respectively apply, respectively service between or application set relation with the conjunction between service.
To needing to close the new bag deployment of application combination formation set, the Performance figure set further according to conjunction, it is determined whether stretch, in telescopic process
In, conjunction can be kept to set the conjunction of application and set ability, reduce the wasting of resources.
Here mentioned several key nouns, which do an explanation, to be said to the present invention:
Resource is closed and set:Save a kind of mode of the utilization of resources, different applications or service installed in same physics or
On virtual resource;
Using flexible:In cloud computing environment, to the application cluster of deployment, according to tactful automatic dilatation or capacity reducing, meet not
With the application load in O&M cycle;
Application template:The topological structure of application is provided, required computing resource, storage resource, net are disposed in description application
Network relation, description application need software content to be mounted, installation parameter;Application deployment, the Logic layout of unloading are provided.
Below by way of examples, the method for the adjustment application resource to being provided in the present invention is specifically described, such as
It is the one embodiment for the method that application resource is adjusted in the embodiment of the present invention shown in Fig. 3, including:
In embodiments of the present invention, cloud controller sets application message according to default conjunction, and concurrently each close of installation sets application,
Wherein, default conjunction sets conjunction of the application message between at least two application messages and sets information, and each conjunction sets each using including
Individual application message installation is concurrently carried out.Can be as follows including step 301-304:
301st, cloud controller obtains at least two application messages;
In embodiments of the present invention, cloud controller obtains at least two application messages;In actual applications, business can provide
Two or more different application information, application message can also be called for application template or software kit, be placed on cloud service platform
In the software storage catalogue of system.Deployment management function module in cloud controller downloads at least two application messages, and parses
Storage is preserved, i.e. cloud control obtains at least two application messages.
302nd, cloud controller receives the default conjunction that user inputs and sets application message;
In embodiments of the present invention, cloud controller receives the default conjunction that user inputs and sets application message;It should be understood that here
Default conjunction sets application message, be user according to the networking structure of each application, it is determined that conjunction set application message, then controlled to cloud
Device input conjunction sets application message, and conjunctions in cloud controller, which sets controller and receive the conjunction that user inputs, sets application message, the conjunction of reception
If application message i.e. above-mentioned described default conjunction set application message.It should be noted that application message can be divided into application
Class mount message and service class mount message, service class mount message are commonly referred to as the installation letter of third party or common unit
Breath, communicated for data such as load balancing.So, conjunction sets application message and may include to install using class mount message and application class
Information, using class mount message and the conjunction of service class mount message, service class mount message with servicing class mount message set relation;
It can be used for constraining the conjunction to same type networking and setting, as cluster and cluster are closed and set, two-shipper is set with two-shipper conjunction.
Conjunction sets controller and sets application message according to conjunction, it is possible to specify two or more applications carry out conjunction and set;Such as CDN
(Elastic Load Balancer, elasticity are negative with ELB for (content delivery network, content distributing network) business
Carrying balanced) cluster closes and sets, MQ (message queue) services and Zookeeper (distributed coordination) services, vSearch (search) services
Conjunction is set.
303rd, cloud controller sets application message according to default conjunction, it is determined that each close the first resource establishment letter for setting application
Breath, the first resource establishment information that each conjunction sets application are set in application as each conjunction, each union using the topology information included;
In embodiments of the present invention, cloud controller sets application message according to default conjunction, it is determined that each close sets the of application
One asset creation information, the first resource establishment information that each conjunction sets application is set in application as each conjunction, each to be opened up using what is included
Flutter the union of information.
In actual applications, the conjunction in cloud controller sets controller and sets application message according to conjunction sets using creating as each conjunction
One asset creation task, the deployment management function module in cloud controller call close that each conjunction for setting layout in controller sets should
The installation task of each application message in;Close and set that controller sets the asset creation task of application according to each conjunction and each conjunction sets and answered
Installation task;First scheduling resource creates, and then each close of concurrent scheduling installation sets application.
Conjunction sets controller and is also responsible for the application of resource, release, records which is closed and sets the money that application or service have used conjunction to set
Source;Docking I (IaaS, infrastructure services) layer interface that conjunction sets controller can realize final resource bid and release.Wherein,
Here asset creation includes:Close and set topological template of the controller parsing using class mount message or service class mount message, enter
The merging that the networking structure of same type is carried out in row topology;Here like type refers to that to close the application that sets or service be all single fighter
Net, two-node networking or cluster networking.Cluster network of the controller according to template definition, storage relation are set specifically, closing, according to name
Title merges to network or the information of storage, and merging here is commonly referred to as taking conjunction to set in application message, each application bag
The union of the topology information included, and then it is converted into the new mould that can be supplied to resource needed for two applications or multiple applications installation
Plate.
Exemplary, as shown in figure 4, the example schematic before merging for application CDN with vSearch service clusters, such as Fig. 5
Shown, the example schematic after merging for application CDN with vSearch service clusters, the topological template after merging both should comprising CDN
With the sig_network (signal network) and app_volume (application memory size) of cluster, also comprising vSearch service clusters
Service_network (service network) and service_volume (service memory size).Then, close and set controller scheduling
Topological template after merging, to concurrently being installed using CDN and vSearch service clusters.
304th, cloud controller calls each first resource establishment information closed and set application, and concurrently each close of installation sets application;
In embodiments of the present invention, cloud controller calls each first resource establishment information closed and set application, concurrently installs
Each close sets application;Conjunction sets conjunction of the application message between at least two application messages and sets information, and each conjunction, which is set, applies what is included
Each application message installation is concurrently carried out.
Exemplary, if there is two conjunctions to set application, the first conjunction is set using including using A and using B, the second conjunction, which is set, applies bag
Include and apply C and using D, then, the first conjunction sets to apply to close to set to apply with second and concurrently installed;At the same time, its
One closes that to set using including using A and application B be also concurrently installed, and second closes and set using the application C included and using D
And concurrently installed.
305th, cloud controller receives each performance index value for closing and setting using reporting;
In embodiments of the present invention, cloud controller receives each performance index value for closing and setting using reporting.Need what is illustrated
It is that performance index value here is that each conjunction sets the performance average value for applying each application included.Wherein, performance index value includes
But it is not limited to the occupancy of the utilization rate of central processor CPU, service call amount, handling capacity or internal memory.
Exemplary, the conjunction that cloud controller has been disposed is set using there is two, and first conjunction is set using including applying A and application
B, second conjunction are set using including using C and using D.First conjunction is set using the performance index value reported as CPU usage, is
85%;Second conjunction is set using the performance index value reported as data access rate, is 65%.
306th, cloud controller sets the performance index value of application and judged to each close, it is determined whether more than preset threshold value,
If performance index value is more than preset threshold value, step 307 is performed, if performance index value is less than or equal to the preset threshold value, performs step
Rapid 308, it is following to be specifically described.
If the 307, first closing and setting the performance index value of application and be more than preset threshold value, cloud controller closes to first to be set application and enters
Row dilatation.
In embodiments of the present invention, if the performance index value that the first conjunction sets application is more than preset threshold value, cloud controller pair
First conjunction is set using progress dilatation.Specifically, it may include:Cloud controller closes the first resource establishment letter for setting application according to first
Breath, determine that the first conjunction sets the Secondary resource establishment information of application, first closes the Secondary resource establishment information for setting application to be next
The resource information of node is installed;Cloud controller closes the Secondary resource establishment information for setting application according to first, is closed to first and sets application
Installed, wherein, the first conjunction is set concurrently to be carried out using each application message installation included.
Further, cloud controller closes the Secondary resource establishment information for setting application according to first, closes to set to first and applies
Row installation, it may include:Cloud controller closes the Secondary resource establishment information for setting application according to first, the first application is included each
Application message is updated;Cloud controller is installed to the first application after renewal.
It should be noted that each application message included here to the first application is updated, including:Applied to first
Including the new installation node of each application message mark, modification the cluster configuration information or modification mount message of node have been installed.
In practical application, close to set to close when controller is also responsible for disposing, is flexible and set using the application message included in logic
Layout is dispatched, as shown in fig. 6, carrying out closing a schematic diagram for setting layout scheduling for flexible management.Conjunction sets what controller set conjunction
Using A and application B sub-process, stamped when being installed using A to virtual machine and apply A using flexible new node label, then installation
Software;Need to change cluster other configurations (the newly-increased node node information of such as Zookeeper configurations to each node) using B, so
Install again afterwards using B softwares.
Conjunction sets controller and the logical package of two applications is scheduled for into sub-process, and it is independent that each application is carried out in sub-process
Specific Logic layout, each layout carried out by user-defined flow task;Reach the flexible condition of performance satisfaction when conjunction sets to apply
Trigger afterwards flexible (such as virtual machine, when VM average CPU reaches 80%), flexible management and dispatching conjunction sets resource management and conjunction sets layout
Scheduling logic, conjunction set resource management according to the resource bid of merging or release virtual machine (Virtual Machine, VM);Conjunction is set
Layout is adjusted is installed to each application software, and the installation logic set using layout is closed in scheduling, drives each application to complete respective peace parallel
Dress processing.Close to stretch by node after setting and may insure that it is also equity that the application resource set is respectively closed after flexible, node state is
It is expected;Equity is flexible to be advantageously used for closing the utilization for setting resource, will not produce fragment.As shown in fig. 7, setting to apply for conjunction includes
A schematic diagram being mounted in parallel of each application.
Exemplary, if preset threshold value is 80%, the example of above-mentioned steps is connect, if first closes the CPU usage for setting application
For 85%, more than the preset threshold value 80%, then, the conjunction in cloud controller, which sets controller, closes to first and sets using carrying out dilatation.
If the 308, first closing and setting the performance index value of application and be less than or equal to preset threshold value, cloud controller is closed to set to first and answered
With carry out capacity reducing or keep it is constant;
In embodiments of the present invention, if the performance index value that the first conjunction sets application is less than or equal to preset threshold value, cloud control
Device closes to first to be set using progress capacity reducing or keeps constant.Example, if preset threshold value is 80%, the example of above-mentioned steps is connect,
If second closes the data access rate for setting application as 65%, less than the preset threshold value 80%, then, conjunction sets controller and the second conjunction is set
It is constant using holding.
It should be understood that if the performance index value that the first conjunction sets application is less than another preset threshold value, then, cloud controller pair
First conjunction, which sets application, can carry out capacity reducing, and certainly, another preset threshold value is certainly less than above-mentioned mentioned preset threshold value.Example
Property, if second closes the data access rate for setting application as 10%, another preset threshold value is 20%, then, cloud controller pair
First conjunction, which sets application, can carry out capacity reducing.
In embodiments of the present invention, because default conjunction sets application message, equivalent to the progress of each application message
Flexible close sets, if first closes and set the performance index value of application and be more than preset threshold value, cloud controller closes to first sets that apply can
To carry out dilatation, meets the needs of business.The present invention keeps service application by when business solution cloud, continuing
The conjunction of resource is set, and to lift the utilization of resources, reduces resource bid expenditure;Conjunction is carried out by flexible combination to set, and is reduced because networking becomes
Change and carry out conjunction and set exploitation modification and adjustment, repack deployment;Using Yun Huahou automatic telescopic managerial ability, accomplish to stretch
In the case of also make full use of resource, continue keep conjunction set growth.
The method of the above-mentioned adjustment application resource in the embodiment of the present invention is described, below to the embodiment of the present invention
In cloud controller be described, can as shown in figure 8, for one embodiment schematic diagram of cloud controller in the embodiment of the present invention
Including:
Module 801 is installed, for setting application message according to default conjunction, concurrently each close of installation sets application, and conjunction sets application
Conjunction of the information between at least two application messages sets information, and each conjunction is set concurrently enters using each application message installation included
OK;
Receiving module 802, set for receiving each conjunction using the performance index value reported;
Dilatation module 803, it is more than preset threshold value if being closed for first and setting the performance index value of application, cloud controller is to the
One conjunction is set using progress dilatation.
Optionally, in some embodiments of the invention, on the basis of shown in Fig. 8, as shown in figure 9, installation module 801
It may include:
Acquiring unit 8011, mount message is applied for obtaining at least two;
Receiving unit 8012, the default conjunction for receiving user's input set application message;
Determining unit 8013, for setting application message according to default conjunction, it is determined that each close the first resource wound for setting application
Information is built, each close sets the first resource of application and create information and set for each conjunction in application, each using the topology information included
Union;
First installation unit 8014, information is created for calling each conjunction to set the first resource of application, concurrently installation is each
Conjunction sets application.
Optionally, in some embodiments of the invention, on the basis of shown in Fig. 8, as shown in Figure 10, dilatation module
803 may include:
Determining unit 8031, the first resource that application is set for being closed according to first create information, determine that the first conjunction sets application
Secondary resource create information, first close set application Secondary resource create information for it is next install node resource information;
Second installation unit 8032, the Secondary resource that application is set for being closed according to first create information, close to set to first and answer
With being installed, wherein, first closes to set and is concurrently carried out using each application message installation included.
Optionally, in some embodiments of the invention,
Second installation unit 8032, the Secondary resource that application is set specifically for being closed according to first create information, should to first
With including each application message be updated;The first application after renewal is installed.
Optionally, in some embodiments of the invention,
Second installation unit 8032, specifically for the first application is included the new installation node of each application message mark,
The cluster configuration information or modification mount message of node have been installed in modification.
Optionally, in some embodiments of the invention, cloud controller also includes:
Capacity reducing module, if the performance index value that application is set for the first conjunction is less than or equal to preset threshold value, capacity reducing module pair
First conjunction sets using progress capacity reducing or kept constant.
Optionally, in some embodiments of the invention,
The utilization rate of performance index value including central processor CPU, service call amount, the occupancy of handling capacity or internal memory.
Below to the embodiment of the present invention so the cloud service platform system of application carries out an explanation, with cloud service platform system
System, i.e., exemplified by virtualization system 11, its typical structure is as shown in figure 11.Typical structure in virtualization system 11a includes 3
Part, respectively hardware platform 1100, virtual platform (being referred to as Hypervisor) 1101 and virtual machine execution space
1102.Hard disk 1110, central processing unit 1111, the network interface in server physical arrangement can be included in hardware platform 1100
Card 1112 and memory 1113.The hardware that Hypervisor1101 and virtual machine execution space 1102 each provide virtual machine is put down
Platform and software platform.Hypervisor contains virtual machine monitor 1120a, 1120b ¨ ¨ 1120n.Hypervisor is physics
Intermediate layer between hardware and virtual machine, it is responsible for coordinating access of each virtual machine to hardware platform.Virtual machine monitor includes
Realize the virtual hardware platform of virtual machine.In Figure 11, virtual hardware platform 1121a is included in virtual machine monitor 1120a, virtually
The memory 1122 for fictionalizing and is contained in hardware platform, central processing unit 1123, hard disk 1124, video card 1125 and network connect
Mouth card 1126 etc..Multiple virtual machine 1105a, 1105b ¨ ¨ 1105n have been run in virtual machine execution space 1102.Virtual machine 1105a
Software systems operate on virtual machine monitor 1120a virtual hardware platform 1121a, the software systems of other virtual machines
Corresponding to operating on the virtual hardware platform of virtual machine monitor.Client operating system 1130 is operated in virtual machine 1105a,
Client operating system 1130 contains a device drive layer 1131, and device drive layer 1131 is mounted with virtual display driving
1134th, NIC drives the drivers such as 1136.
As shown in figure 12, it is another embodiment schematic diagram of cloud controller in the embodiment of the present invention, including:
The cloud controller can produce bigger difference because configuration or performance are different, can include transceiver 1201, and one
Individual or more than one central processing unit (central processing units, CPU) 1202 (for example, one or more
Processor) and memory 1203, one or more store the storage medium 1204 of application programs 12041 or data 12042
(such as one or more mass memory units).Wherein, memory 1203 and storage medium 1204 can be of short duration storages
Or persistently storage.One or more modules (not shown in Figure 12) can be included by being stored in the program of storage medium 1204,
Each module can include operating the series of instructions in cloud controller.Further, central processing unit 1202 can be set
It is set to and is communicated with storage medium 1204, the series of instructions operation in storage medium 1204 is performed on cloud controller.
In embodiments of the present invention, transceiver 1201, set for receiving each conjunction using the performance index value reported;
Memory 1203, for storing operational order;
Central processing unit 1202, for being instructed by call operation, application message is set according to default conjunction, concurrently installation is every
Individual conjunction sets application, and conjunction sets conjunction of the application message between at least two application messages and sets information, and each conjunction sets each using including
Individual application message installation is concurrently carried out;If the performance index value that the first conjunction sets application is more than preset threshold value, processor is to first
Conjunction is set using progress dilatation.
The embodiment of the present invention a kind of storage medium is also provided, it is necessary to explanation, the technical scheme of this hair substantially or
Saying all or part of the part to be contributed to prior art or the technical scheme can embody in the form of software produces mouth
Out, the computer software product is stored in a storage medium, for saving as the computer software used in the said equipment
Instruction, it, which is included, is used to perform above-mentioned first aspect, second aspect or the program designed by equipment.The storage medium includes:U
Disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access
Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method can be with
Realize by another way.For example, device embodiment described above is only schematical, for example, the unit
Division, only a kind of division of logic function, can there is other dividing mode, such as multiple units or component when actually realizing
Another system can be combined or be desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown or
The mutual coupling discussed or direct-coupling or communication connection can be the indirect couplings by some interfaces, device or unit
Close or communicate to connect, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list
Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If the integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or use
When, it can be stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially
The part to be contributed in other words to prior art or all or part of the technical scheme can be in the form of software products
Embody, the computer software product is stored in a storage medium, including some instructions are causing a computer
Equipment (can be personal computer, server, or network equipment etc.) performs the complete of each embodiment methods described of the present invention
Portion or part steps.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. are various can store journey
The medium of sequence code.
Described above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although with reference to before
Embodiment is stated the present invention is described in detail, it will be understood by those within the art that:It still can be to preceding
State the technical scheme described in each embodiment to modify, or equivalent substitution is carried out to which part technical characteristic;And these
Modification is replaced, and the essence of appropriate technical solution is departed from the spirit and scope of various embodiments of the present invention technical scheme.
Claims (15)
- A kind of 1. method for adjusting application resource, it is characterised in that methods described is applied to cloud service platform system, the cloud clothes Business plateform system includes cloud controller, and methods described includes:The cloud controller sets application message according to default conjunction, and concurrently each close of installation sets application, and the conjunction sets application message Conjunction between at least two application messages sets information, and each conjunction is set concurrently enters using each application message installation included OK;The cloud controller receives each performance index value for closing and setting using reporting;If the performance index value that the first conjunction sets application is more than preset threshold value, the cloud controller closes to set to described first and applies Row dilatation.
- 2. according to the method for claim 1, it is characterised in that the cloud controller sets application message according to default conjunction, Concurrently each close of installation sets application, including:The cloud controller obtains at least two and applies mount message;The default conjunction that the cloud controller receives user's input sets application message;The cloud controller sets application message according to the default conjunction, it is determined that each close the first resource establishment letter for setting application Breath, the first resource that each conjunction sets application create information and set as each close in application, each using the topology letter included The union of breath;The first resource that the cloud controller calls each conjunction to set application creates information, and concurrently each close of installation sets application.
- 3. method according to claim 1 or 2, it is characterised in that the cloud controller closes to set to described first and applies Row dilatation, including:The cloud controller closes the first resource establishment information for setting application according to described first, determines that first conjunction sets application Secondary resource creates information, and described first closes the resource letter for setting the Secondary resource establishment information of application as next installation node Breath;The cloud controller closes the Secondary resource establishment information for setting application according to described first, closes and is set using progress to described first Installation, wherein, first conjunction is set concurrently to be carried out using each application message installation included.
- 4. according to the method for claim 3, it is characterised in that the cloud controller closes according to described first and sets the of application Two asset creation information, close to set to apply to described first and install, including:The cloud controller closes the Secondary resource establishment information for setting application according to described first, the described first application is included every Individual application message is updated;The cloud controller is installed to the first application after renewal.
- 5. according to the method for claim 4, it is characterised in that each application message included to the described first application It is updated, including:Newly node has been installed in installation node, modification to each application message mark that the cloud controller includes to the described first application Cluster configuration information or modification mount message.
- 6. according to any described methods of claim 1-5, it is characterised in that methods described also includes:If described first closes and set the performance index value of application and be less than or equal to the preset threshold value, the cloud controller is to described the One conjunction sets using progress capacity reducing or kept constant.
- 7. according to any described methods of claim 1-6, it is characterised in that the performance index value includes central processing unit CPU utilization rate, service call amount, the occupancy of handling capacity or internal memory.
- A kind of 8. cloud controller, it is characterised in that including:Module is installed, for setting application message according to default conjunction, concurrently each close of installation sets application, and the conjunction sets application message Conjunction between at least two application messages sets information, and each conjunction is set concurrently enters using each application message installation included OK;Receiving module, set for receiving each conjunction using the performance index value reported;Dilatation module, if the performance index value that application is set for the first conjunction is more than preset threshold value, the cloud controller is to described First conjunction is set using progress dilatation.
- 9. cloud controller according to claim 8, it is characterised in that the installation module includes:Acquiring unit, mount message is applied for obtaining at least two;Receiving unit, the default conjunction for receiving user's input set application message;Determining unit, for setting application message according to the default conjunction, it is determined that each close the first resource establishment letter for setting application Breath, the first resource that each conjunction sets application create information and set as each close in application, each using the topology letter included The union of breath;First installation unit, the first resource for calling each conjunction to set application create information, and concurrently each close of installation sets Using.
- 10. cloud controller according to claim 8 or claim 9, it is characterised in that the dilatation module includes:Determining unit, the first resource that application is set for being closed according to described first create information, determine that first conjunction sets application Secondary resource create information, it is described first close set application Secondary resource create information for it is next installation node resource believe Breath;Second installation unit, the Secondary resource that application is set for being closed according to described first create information, close to set to described first and answer With being installed, wherein, described first closes to set and is concurrently carried out using each application message installation included.
- 11. cloud controller according to claim 10, it is characterised in thatSecond installation unit, the Secondary resource that application is set specifically for being closed according to described first creates information, to described the Each application message that one application includes is updated;The first application after renewal is installed.
- 12. cloud controller according to claim 11, it is characterised in thatSecond installation unit, specifically for the described first application is included the new installation node of each application message mark, The cluster configuration information or modification mount message of node have been installed in modification.
- 13. according to any described cloud controllers of claim 8-12, it is characterised in that the cloud controller also includes:Capacity reducing module, if the performance index value that application is set for the described first conjunction is less than or equal to the preset threshold value, the contracting Molar block closes to described first to be set using progress capacity reducing or keeps constant.
- 14. according to any described cloud controllers of claim 8-13, it is characterised in that the performance index value includes centre Manage the occupancy of device CPU utilization rate, service call amount, handling capacity or internal memory.
- A kind of 15. cloud controller, it is characterised in that including:Transceiver, processor, memory and bus, the transceiver, the processor and the memory pass through the bus Connection;The transceiver, set for receiving each conjunction using the performance index value reported;The memory, for storing operational order;The processor, for by calling the operational order, application message to be set according to default conjunction, concurrently installation is each closes If using the conjunction sets conjunction of the application message between at least two application messages and sets information, and each conjunction, which sets to apply, to be included Each application message installation concurrently carry out;If the performance index value that the first conjunction sets application is more than preset threshold value, the processing Device closes to described first to be set using progress dilatation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610723218.9A CN107786587B (en) | 2016-08-25 | 2016-08-25 | Method for adjusting application resources and cloud controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610723218.9A CN107786587B (en) | 2016-08-25 | 2016-08-25 | Method for adjusting application resources and cloud controller |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107786587A true CN107786587A (en) | 2018-03-09 |
CN107786587B CN107786587B (en) | 2021-02-09 |
Family
ID=61438487
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610723218.9A Active CN107786587B (en) | 2016-08-25 | 2016-08-25 | Method for adjusting application resources and cloud controller |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107786587B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021109125A1 (en) * | 2019-12-06 | 2021-06-10 | 华为技术有限公司 | Auto scaling group management method and apparatus |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102662705A (en) * | 2012-03-31 | 2012-09-12 | 中国工商银行股份有限公司 | System and method for upgrading system environment of computer cluster |
CN103167041A (en) * | 2013-03-28 | 2013-06-19 | 广州中国科学院软件应用技术研究所 | System and method for supporting cloud environment application cluster automation deployment |
CN105159759A (en) * | 2015-08-31 | 2015-12-16 | 华为软件技术有限公司 | Application example deployment method and device |
US20150378690A1 (en) * | 2014-06-27 | 2015-12-31 | International Business Machines Corporation | Application instance staging |
-
2016
- 2016-08-25 CN CN201610723218.9A patent/CN107786587B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102662705A (en) * | 2012-03-31 | 2012-09-12 | 中国工商银行股份有限公司 | System and method for upgrading system environment of computer cluster |
CN103167041A (en) * | 2013-03-28 | 2013-06-19 | 广州中国科学院软件应用技术研究所 | System and method for supporting cloud environment application cluster automation deployment |
US20150378690A1 (en) * | 2014-06-27 | 2015-12-31 | International Business Machines Corporation | Application instance staging |
CN105159759A (en) * | 2015-08-31 | 2015-12-16 | 华为软件技术有限公司 | Application example deployment method and device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021109125A1 (en) * | 2019-12-06 | 2021-06-10 | 华为技术有限公司 | Auto scaling group management method and apparatus |
Also Published As
Publication number | Publication date |
---|---|
CN107786587B (en) | 2021-02-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110704186B (en) | Computing resource allocation method and device based on hybrid distribution architecture and storage medium | |
CN108363615B (en) | Method for allocating tasks and system for reconfigurable processing system | |
CN105979009B (en) | A kind of increase load automatic balancing method for cloud application container | |
CN104468407B (en) | Realize the method and apparatus of business platform resource elasticity distribution | |
CN102707995B (en) | Service scheduling method and device based on cloud computing environments | |
CN103885831B (en) | The system of selection of virtual machine host machine and device | |
CN102262567A (en) | Virtual machine scheduling decision system, platform and method | |
CN104428752A (en) | Offloading virtual machine flows to physical queues | |
CN104735095A (en) | Method and device for job scheduling of cloud computing platform | |
CN109144699A (en) | Distributed task dispatching method, apparatus and system | |
CN102713849A (en) | Method and system for abstracting non-functional requirements based deployment of virtual machines | |
CN104503832B (en) | A kind of scheduling virtual machine system and method for fair and efficiency balance | |
CN110780914A (en) | Service publishing method and device | |
CN110058924A (en) | A kind of container dispatching method of multiple-objection optimization | |
US11740921B2 (en) | Coordinated container scheduling for improved resource allocation in virtual computing environment | |
CN112099917B (en) | Regulation and control system containerized application operation management method, system, equipment and medium | |
CN104199739A (en) | Speculation type Hadoop scheduling method based on load balancing | |
CN107832143A (en) | A kind for the treatment of method and apparatus of physical machine resource | |
CN113553140B (en) | Resource scheduling method, equipment and system | |
WO2012100545A1 (en) | Method, system and device for service scheduling | |
CN111666158A (en) | Kubernetes-based container scheduling method and device, storage medium and electronic equipment | |
CN108984286A (en) | A kind of resource regulating method and system of cloud computing platform | |
CN106385330A (en) | Network function virtualization composer realization method and device | |
CN107786587A (en) | A kind of method and cloud controller for adjusting application resource | |
CN111796770B (en) | Log routing load balancing realization method and device |
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 | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20200131 Address after: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen Applicant after: HUAWEI TECHNOLOGIES Co.,Ltd. Address before: 210012 HUAWEI Nanjing base, 101 software Avenue, Yuhuatai District, Jiangsu, Nanjing Applicant before: Huawei Technologies Co.,Ltd. |
|
TA01 | Transfer of patent application right | ||
GR01 | Patent grant | ||
GR01 | Patent grant |