CN109240822A - The method, apparatus and storage medium and electronic equipment of application program elastic telescopic - Google Patents
The method, apparatus and storage medium and electronic equipment of application program elastic telescopic Download PDFInfo
- Publication number
- CN109240822A CN109240822A CN201810891445.1A CN201810891445A CN109240822A CN 109240822 A CN109240822 A CN 109240822A CN 201810891445 A CN201810891445 A CN 201810891445A CN 109240822 A CN109240822 A CN 109240822A
- Authority
- CN
- China
- Prior art keywords
- strategy
- elastic telescopic
- elastic
- application program
- execution
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
- G06F9/5055—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering software capabilities, i.e. software resources associated or available to the machine
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
This disclosure relates to the method, apparatus and storage medium and electronic equipment of a kind of application program elastic telescopic, applied to Cloud Server, the described method includes: receiving the tactful mark that monitoring device is sent after monitoring device accesses the determining strategy mark of data according to the first resource of application program;Determine that the strategy identifies corresponding first elastic telescopic strategy;According to the corresponding elastic telescopic operation of the first elastic telescopic strategy execution.
Description
Technical field
This disclosure relates to resource configuration technology field, and in particular, to a kind of method, apparatus of application program elastic telescopic
With storage medium and electronic equipment.
Background technique
Cloud computing (Cloud Computer) is a kind of computation model that resource-sharing is realized using internet, is met
The requirement of large-scale calculations, mass data storage.Construct Cloud Server by cloud computing so that Cloud Server have it is extensive and
The features such as highly reliable, allows user to pass through Cloud Server pair in addition, being usually deployed multiple application programs on Cloud Server
The application program accesses, and still, if user's amount of access of the application program is excessive, may cause scheduling of resource difficulty
Problem, if user's amount of access of the application program is too small, the problem of may cause the wasting of resources, needs in order to solve this problem
Cloud Server is wanted to have the performance of elastic telescopic, so that neatly executing correspondence according to user's amount of access of each application program
Elastic telescopic operation, it can according to user's amount of access adjust application program service node quantity.
Currently, data are accessed by the resource that the monitoring module of Cloud Server itself obtains application program in Cloud Server,
User's amount of access of the application program is obtained so as to access data according to the resource, and then can be according to the application program
User's amount of access carries out reasonable scheduling of resource.But the monitoring device for having been provided with monitoring function, since the monitoring is set
It is standby itself the application program to be monitored, at this point, the monitoring module without Cloud Server itself executes policer operation, but
It is that Cloud Server can not execute corresponding elastic telescopic according to the monitored results of monitoring device and operate in the prior art.
Summary of the invention
To solve the above-mentioned problems, the present disclosure proposes a kind of method, apparatus of application program elastic telescopic and storage to be situated between
Matter and electronic equipment.
According to the first aspect of the embodiments of the present disclosure, a kind of method of application program elastic telescopic is provided, is applied to cloud and takes
Business device, comprising:
After monitoring device accesses the determining strategy mark of data according to the first resource of application program, monitoring device hair is received
The strategy mark sent;
Determine that the strategy identifies corresponding first elastic telescopic strategy;
According to the corresponding elastic telescopic operation of the first elastic telescopic strategy execution.
Optionally, it before the corresponding elastic telescopic operation according to the first elastic telescopic strategy execution, also wraps
It includes:
Obtain the Secondary resource access data of the application program;
Data, which are accessed, according to the Secondary resource determines the second elastic telescopic strategy;
It is described to include: according to the corresponding elastic telescopic operation of the first elastic telescopic strategy execution
According to the first elastic telescopic strategy and the corresponding elastic telescopic of the second elastic telescopic strategy execution
Operation.
Optionally, described according to the first elastic telescopic strategy and the corresponding bullet of the second elastic telescopic strategy execution
Property scaling operation includes:
Determine whether the first elastic telescopic strategy and the second elastic telescopic strategy are consistent;
When the first elastic telescopic strategy and the second elastic telescopic strategy are inconsistent, stretched from first elasticity
The flexible strategy of object elastic is determined in contracting strategy and the second elastic telescopic strategy;
According to the corresponding elastic telescopic operation of the flexible strategy execution of the object elastic.
Optionally, described that object elastic is determined from the first elastic telescopic strategy and the second elastic telescopic strategy
Flexible strategy includes:
It obtains corresponding first confidence level of the first elastic telescopic strategy and the second elastic telescopic strategy is corresponding
The second confidence level;
According to first confidence level and second confidence level from the first elastic telescopic strategy and second bullet
Property flexible strategy in determine the flexible strategy of the object elastic.
Optionally, described that object elastic is determined from the first elastic telescopic strategy and the second elastic telescopic strategy
Flexible strategy includes:
Described in being determined from the first elastic telescopic strategy and the second elastic telescopic strategy according to pre-set priority
The flexible strategy of object elastic.
According to the second aspect of an embodiment of the present disclosure, a kind of device of application program elastic telescopic is provided, is applied to cloud and takes
Business device, comprising:
Receiving module, for monitoring device according to the first resource of application program access data determine strategy mark after,
Receive the strategy mark that monitoring device is sent;
First determining module, for determining that the strategy identifies corresponding first elastic telescopic strategy;
Execution module, for being operated according to the corresponding elastic telescopic of the first elastic telescopic strategy execution.
Optionally, further includes:
Module is obtained, the Secondary resource for obtaining the application program accesses data;
Second determining module determines the second elastic telescopic strategy for accessing data according to the Secondary resource;
The execution module, for according to the first elastic telescopic strategy and the second elastic telescopic strategy execution pair
The elastic telescopic operation answered.
Optionally, the execution module includes:
First determines submodule, for determining whether are the first elastic telescopic strategy and the second elastic telescopic strategy
Unanimously;
Second determines submodule, for inconsistent in the first elastic telescopic strategy and the second elastic telescopic strategy
When, the flexible strategy of object elastic is determined from the first elastic telescopic strategy and the second elastic telescopic strategy;
Implementation sub-module, for being operated according to the corresponding elastic telescopic of the flexible strategy execution of the object elastic.
Optionally, described second submodule is determined, it is corresponding first credible for obtaining the first elastic telescopic strategy
Degree and corresponding second confidence level of the second elastic telescopic strategy;And it can according to first confidence level and described second
Reliability determines the flexible strategy of the object elastic from the first elastic telescopic strategy and the second elastic telescopic strategy.
Optionally, it is described second determine submodule, for according to pre-set priority from the first elastic telescopic strategy with
The flexible strategy of the object elastic is determined in the second elastic telescopic strategy.
According to the third aspect of an embodiment of the present disclosure, a kind of computer readable storage medium is provided, calculating is stored thereon with
The step of machine program, which realizes above-mentioned first aspect the method when being executed by processor.
According to a fourth aspect of embodiments of the present disclosure, a kind of electronic equipment is provided, comprising:
Memory is stored thereon with computer program;
Processor, for executing the computer program in the memory, to realize side described in above-mentioned first aspect
The step of method.
Through the above technical solutions, firstly, accessing data according to the first resource of application program in monitoring device determines plan
After slightly identifying, the strategy mark that monitoring device is sent is received;It is stretched then, it is determined that the strategy identifies corresponding first elasticity
Contracting strategy;Finally, being operated according to the corresponding elastic telescopic of the first elastic telescopic strategy execution.In this way, due to each
Elastic telescopic strategy setting has preset strategy mark, and the strategy mark for allowing Cloud Server to determine that monitoring device is sent corresponds to
The first elastic telescopic strategy, thus realize Cloud Server can monitoring based on monitoring device to application program, execute pair
The elastic telescopic operation answered, and solve Cloud Server in the prior art and can not be corresponded to according to the monitored results of monitoring device
Elastic telescopic operation.
Other feature and advantage of the disclosure will the following detailed description will be given in the detailed implementation section.
Detailed description of the invention
Attached drawing is and to constitute part of specification for providing further understanding of the disclosure, with following tool
Body embodiment is used to explain the disclosure together, but does not constitute the limitation to the disclosure.In the accompanying drawings:
Fig. 1 is a kind of schematic diagram of monitoring system shown in disclosure exemplary embodiment;
Fig. 2 is a kind of flow diagram of the method for application program elastic telescopic shown in disclosure exemplary embodiment;
Fig. 3 is the process signal of the method for another application program elastic telescopic shown in disclosure exemplary embodiment
Figure;
Fig. 4 is a kind of device block diagram of application program elastic telescopic shown in disclosure exemplary embodiment;
Fig. 5 is the device block diagram of another application program elastic telescopic shown in disclosure exemplary embodiment;
Fig. 6 is the device block diagram of another application program elastic telescopic shown in disclosure exemplary embodiment;
Fig. 7 is the block diagram of a kind of electronic equipment shown in disclosure exemplary embodiment.
Specific embodiment
It is described in detail below in conjunction with specific embodiment of the attached drawing to the disclosure.It should be understood that this place is retouched
The specific embodiment stated is only used for describing and explaining the disclosure, is not limited to the disclosure.
The disclosure can be applied to monitoring system, as shown in Figure 1, the monitoring system includes Cloud Server 1, and with the cloud
The monitoring device 2 that server 1 connects includes monitoring module 11, the monitoring device 2 and the monitoring module 11 in the Cloud Server 1
The application program disposed in the Cloud Server 1 can be monitored, in this way, Cloud Server 1 is available to arrive monitoring device 2
The first monitored results and monitoring module 11 the second monitored results, and can be according to first monitored results and/or
Two monitored results determine the flexible strategy of object elastic, thereby executing the corresponding elastic telescopic operation of the flexible strategy of the object elastic.
In the disclosure, it is identified by receiving the strategy that monitoring device is sent, Cloud Server is allowed to determine the strategy
Corresponding first elastic telescopic strategy is identified, to operate according to the corresponding elastic telescopic of the first elastic telescopic strategy execution.
In this way, allowing Cloud Server to determine monitoring device due to having preset strategy mark to each elastic telescopic strategy setting
The strategy of transmission identifies corresponding first elastic telescopic strategy, so that realizing Cloud Server can be based on monitoring device to application
The monitoring of program executes corresponding elastic telescopic operation, and solving Cloud Server in the prior art can not be according to monitoring device
Monitored results carry out corresponding elastic telescopic operation.
The disclosure is described in detail below with reference to specific embodiment.
Fig. 2 is a kind of flow diagram of the method for application program elastic telescopic shown in disclosure exemplary embodiment,
Applied to Cloud Server, as shown in Figure 2, comprising:
S201, monitoring device according to the first resource of application program access data determine strategy mark after, receive monitoring
The strategy mark that equipment is sent.
Wherein, multiple elastic telescopic strategies can be set in Cloud Server due to administrator, and each elasticity has been stretched
Contracting strategy is disposed with preset strategy mark, and so as to obtain strategy mark corresponding relationship, which identifies corresponding relationship
Including the corresponding relationship between each elastic telescopic strategy preset strategy mark corresponding with each elastic telescopic strategy, this
When, which can be identified corresponding relationship and be sent to monitoring device by Cloud Server, in this way, monitoring device can be adopted according to first
The first resource access number of mode set (first acquisition mode can be collection period, acquisition protocols etc.) acquisition applications program
According to, and when first resource access data meet the first elastic telescopic strategy, it can be obtained according to strategy mark corresponding relationship
The corresponding strategy mark of first elastic telescopic strategy, and strategy mark is sent to Cloud Server.
Illustratively, first resource access data can be each service of the flowing of access of application program, application program
CPU (the central processing unit of node;Central Processing Unit) utilization rate, application program memory usage or
The response time etc. of application program, at this point, the elastic telescopic strategy can be the plan for accessing data setting according to the first resource
Slightly, above-mentioned example is merely illustrative, and the disclosure is not construed as limiting this.
S202, determine that the strategy identifies corresponding first elastic telescopic strategy.
In this step, which can be identified the preset strategy for including with strategy mark corresponding relationship by Cloud Server
Mark is matched, and determining that matched preset strategy identifies corresponding elastic telescopic strategy is the first elastic telescopic strategy.
In this way, the disclosure establishes Cloud Server and prison by strategy mark since monitoring device can be monitored application program
The communication between equipment is controlled, allows Cloud Server not depend on the monitoring module in Cloud Server and is monitored.
S203, it is operated according to the corresponding elastic telescopic of the first elastic telescopic strategy execution.
Wherein it is possible to it is previously provided with the policing action corresponding relationship between elastic telescopic strategy and elastic telescopic operation,
Illustratively, if the policing action corresponding relationship may include: the CPU for each service node that elastic telescopic strategy is application program
Utilization rate is more than or equal to A, then corresponding elastic telescopic operation can be the service node quantity of the increase application program;If
Elastic telescopic strategy is that the cpu busy percentage of each service node of application program is less than or equal to B, then corresponding elastic telescopic
Operation can be the service node quantity of the reduction application program;If elastic telescopic strategy is that the flowing of access of application program is greater than
Or being equal to C, then corresponding elastic telescopic operation can be the service node quantity of the increase application program;If elastic telescopic plan
Slightly the flowing of access of application program is less than or equal to D, then corresponding elastic telescopic operation can be the reduction application program
Service node quantity, above-mentioned elastic telescopic strategy can also be using first resource access data as application program memory use
Rate perhaps application program response time determine strategy or can be with above-mentioned first resource access data in two,
The determining strategy of three or four combinations, the disclosure are not construed as limiting this.
In this way, the first elastic telescopic strategy be application program each service node cpu busy percentage be greater than or
When equal to A, corresponding elastic telescopic operation can be determined according to above-mentioned policing action corresponding relationship to increase the application program
Service node quantity, above-mentioned example are merely illustrative, and the disclosure is not construed as limiting this.
Using the above method, is identified by receiving the strategy that monitoring device is sent, Cloud Server is allowed to determine the plan
Corresponding first elastic telescopic strategy is slightly identified, to grasp according to the corresponding elastic telescopic of the first elastic telescopic strategy execution
Make.In this way, allowing Cloud Server to determine that monitoring is set due to having preset strategy mark to each elastic telescopic strategy setting
The strategy that preparation is sent identifies corresponding first elastic telescopic strategy, so that realizing Cloud Server can be corresponding based on monitoring device
With the monitoring of program, corresponding elastic telescopic operation is executed, and solves Cloud Server in the prior art not set according to monitoring
Standby monitored results carry out corresponding elastic telescopic operation.
Fig. 3 is a kind of flow diagram of the method for application program elastic telescopic shown in disclosure exemplary embodiment,
As shown in Figure 3, comprising:
S301, monitoring device according to the first resource of application program access data determine strategy mark after, Cloud Server
Receive the strategy mark that monitoring device is sent.
Wherein, multiple elastic telescopic strategies can be set in Cloud Server due to administrator, and each elasticity has been stretched
Contracting strategy is disposed with preset strategy mark, and so as to obtain strategy mark corresponding relationship, which identifies corresponding relationship
Including the corresponding relationship between each elastic telescopic strategy preset strategy mark corresponding with each elastic telescopic strategy, this
When, which can be identified corresponding relationship and be sent to monitoring device by Cloud Server, in this way, monitoring device can be adopted according to first
The first resource access number of mode set (first acquisition mode can be collection period, acquisition protocols etc.) acquisition applications program
According to, and when first resource access data meet the first elastic telescopic strategy, it can be obtained according to strategy mark corresponding relationship
The corresponding strategy mark of first elastic telescopic strategy, and strategy mark is sent to Cloud Server.
Illustratively, first resource access data can be each service of the flowing of access of application program, application program
The cpu busy percentage of node, the memory usage of application program or response time of application program etc., at this point, the elastic telescopic
Strategy can be the strategy that data setting is accessed according to the first resource.If in addition, strategy mark corresponding relationship may include:
The elastic telescopic strategy is that the cpu busy percentage of each service node of application program is more than or equal to A, then corresponding default plan
Slightly it is identified as " a ";If the cpu busy percentage that elastic telescopic strategy is each service node of application program is less than or equal to B,
Corresponding preset strategy is identified as " b ";If the flowing of access that elastic telescopic strategy is application program is more than or equal to C, right
The strategy answered is identified as " c ";If the flowing of access that elastic telescopic strategy is application program is less than or equal to D, corresponding plan
It is slightly identified as " d ", above-mentioned elastic telescopic strategy can also be using first resource access data as the memory usage of application program
Perhaps the strategy or can be two accessed in data with above-mentioned first resource, three that the response time of application program determines
The determining strategy of a or four combinations, the disclosure are not construed as limiting this.
S302, Cloud Server determine that the strategy identifies corresponding first elastic telescopic strategy.
In this step, the available strategy mark corresponding relationship of Cloud Server, and corresponding relationship is identified according to the strategy
Determine that the strategy identifies corresponding first elastic telescopic strategy, it is possible to further identify and strategy mark pair the strategy
Should be related to including preset strategy mark matched, and determine that matched preset strategy identifies corresponding elastic telescopic strategy and is
The first elastic telescopic strategy.In this way, the disclosure is marked by the strategy since monitoring device can be monitored application program
Know the communication established between Cloud Server and monitoring device, Cloud Server is allowed not depend on the monitoring module in Cloud Server
It is monitored.
Illustratively, continue to be illustrated by taking the example in S201 as an example, if the received strategy of server is identified as " c ",
Corresponding relationship can be then identified according to the strategy determines that the flowing of access that corresponding first elastic telescopic strategy is application program is big
In or be equal to C, above-mentioned example is merely illustrative, and the disclosure is not construed as limiting this.
S303, Cloud Server obtain the Secondary resource access data of the application program.
It should be noted that the monitoring module that can control in Cloud Server shown in FIG. 1 is adopted according to the second acquisition mode
Collect Secondary resource access data, similarly, which can be collection period, acquisition protocols etc..In this way, supervising
When the collection period or acquisition protocols etc. of control equipment and Cloud Server have differences, the first resource access data and this second
It is different that resource accesses data.
S304, Cloud Server access data according to the Secondary resource and determine the second elastic telescopic strategy.
Wherein, if Secondary resource access data meet some elastic telescopic plan in multiple elastic telescopic strategies
Slightly, then some elastic telescopic strategy is the second elastic telescopic strategy.Illustratively, continue by taking the example in S201 as an example into
Row explanation, if the cpu busy percentage that Secondary resource access data include each service node of application program is M, M is greater than A
Numerical value, then can determine the second elastic telescopic strategy be application program each service node cpu busy percentage be greater than or
Person is equal to A, and above-mentioned example is merely illustrative, and the disclosure is not construed as limiting this.
S305, Cloud Server are according to the first elastic telescopic strategy elasticity corresponding with the second elastic telescopic strategy execution
Scaling operation.
In this step, it is thus necessary to determine that whether the first elastic telescopic strategy and the second elastic telescopic strategy are consistent,
When the first elastic telescopic strategy is consistent with the second elastic telescopic strategy, the first elastic telescopic strategy and second bullet are determined
Property flexible strategy in any elastic telescopic strategy be the flexible strategy of object elastic, and it is corresponding to execute the flexible strategy of the object elastic
Elastic telescopic operation.
When the first elastic telescopic strategy is consistent with the second elastic telescopic strategy, from the first elastic telescopic strategy and
The flexible strategy of object elastic is determined in the second elastic telescopic strategy, and is somebody's turn to do according to the flexible strategy execution of the object elastic is corresponding
Elastic telescopic operation, wherein determine that object elastic is flexible from the first elastic telescopic strategy and the second elastic telescopic strategy
Strategy may include following two mode:
Mode one, available corresponding first confidence level of first elastic telescopic strategy and second elastic telescopic
Corresponding second confidence level of strategy, and from the first elastic telescopic strategy and be somebody's turn to do according to first confidence level and second confidence level
Determine the flexible strategy of the object elastic in second elastic telescopic strategy, i.e., it is first with a high credibility when second confidence level at this,
Determine that the first elastic telescopic strategy is the flexible strategy of the object elastic, it is first with a low credibility when second confidence level at this, really
Fixed second elastic telescopic strategy is the flexible strategy of the object elastic.It is adopted within a preset period of time wherein it is possible to obtain monitoring device
First history resource of collection accesses data, and determines the first history elasticity that each first history resource access data are corresponding in turn to
Flexible strategy, and judge whether each first history elastic telescopic strategy is credible, to determine all the according to the judgment result
First average credibility of one history elastic telescopic strategy, first average credibility are that the first elastic telescopic strategy is corresponding
The first confidence level, similarly, monitoring module acquires within a preset period of time in available Cloud Server the second history money
Source accesses data, and obtains the second history elastic telescopic strategy that each second history resource access data are corresponding in turn to, and sentence
Whether each second history elastic telescopic strategy that breaks is credible, to determine all the second history elastic telescopics according to the judgment result
Second average credibility of strategy, which is corresponding second confidence level of the second elastic telescopic strategy,
The method of above-mentioned the first confidence level of acquisition and the second confidence level is merely illustrative, and the disclosure is not construed as limiting this.
Mode two is determined from the first elastic telescopic strategy and the second elastic telescopic strategy according to pre-set priority and is somebody's turn to do
The flexible strategy of object elastic.Illustratively, if the priority of the first elastic telescopic strategy of setting is higher than the second elastic telescopic strategy
Priority can then determine that the first elastic telescopic strategy is the flexible strategy of the object elastic;If the second elastic telescopic plan is arranged
Priority slightly is higher than the priority of the first elastic telescopic strategy, then can determine that the second elastic telescopic strategy is the target bullet
Property flexible strategy.
Furthermore it is possible to it is previously provided with the policing action corresponding relationship between elastic telescopic strategy and elastic telescopic operation,
Illustratively, if the policing action corresponding relationship may include: the CPU for each service node that elastic telescopic strategy is application program
Utilization rate is more than or equal to A, then corresponding elastic telescopic operation can be the service node quantity of the increase application program;If
Elastic telescopic strategy is that the cpu busy percentage of each service node of application program is less than or equal to B, then corresponding elastic telescopic
Operation can be the service node quantity of the reduction application program;If elastic telescopic strategy is that the flowing of access of application program is greater than
Or being equal to C, then corresponding elastic telescopic operation can be the service node quantity of the increase application program;If elastic telescopic plan
Slightly the flowing of access of application program is less than or equal to D, then corresponding elastic telescopic operation can be the reduction application program
Service node quantity.
In this way, the first elastic telescopic strategy be application program each service node cpu busy percentage be greater than or
When equal to A, corresponding elastic telescopic operation can be determined according to above-mentioned policing action corresponding relationship to increase the application program
Service node quantity, above-mentioned example are merely illustrative, and the disclosure is not construed as limiting this.
Using the above method, is identified by receiving the strategy that monitoring device is sent, Cloud Server is allowed to determine the plan
Corresponding first elastic telescopic strategy is slightly identified, and obtains and the second elastic telescopic plan that data determine is accessed according to Secondary resource
Slightly, to be operated according to the first elastic telescopic strategy elastic telescopic corresponding with the second elastic telescopic strategy execution.In this way,
Due to having preset strategy mark to each elastic telescopic strategy setting, Cloud Server is allowed to determine what monitoring device was sent
Strategy identifies corresponding first elastic telescopic strategy, so that monitoring device and Cloud Server can be based on by realizing Cloud Server
Monitoring of the monitoring module of to application program itself executes corresponding elastic telescopic operation, improves the accuracy of monitoring, and solve
Cloud Server in the prior art of having determined can not carry out corresponding elastic telescopic operation according to the monitored results of monitoring device.
Fig. 4 is a kind of device block diagram of application program elastic telescopic shown in disclosure exemplary embodiment, is applied to cloud
Server, as shown in Figure 4, comprising:
Receiving module 401 determines strategy mark for accessing data according to the first resource of application program in monitoring device
Afterwards, the strategy mark that monitoring device is sent is received;
First determining module 402, for determining that the strategy identifies corresponding first elastic telescopic strategy;
Execution module 403, for being operated according to the corresponding elastic telescopic of the first elastic telescopic strategy execution.
Fig. 5 is a kind of device block diagram of application program elastic telescopic shown in disclosure exemplary embodiment, such as Fig. 5 institute
Show, further includes:
Module 404 is obtained, the Secondary resource for obtaining the application program accesses data;
Second determining module 405 determines the second elastic telescopic strategy for accessing data according to the Secondary resource;
The execution module 403, for corresponding with the second elastic telescopic strategy execution according to the first elastic telescopic strategy
Elastic telescopic operation.
Fig. 6 is a kind of device block diagram of application program elastic telescopic shown in disclosure exemplary embodiment, such as Fig. 6 institute
Show, which includes:
First determines submodule 4031, for determining whether are the first elastic telescopic strategy and the second elastic telescopic strategy
Unanimously;
Second determines submodule 4032, for inconsistent in the first elastic telescopic strategy and the second elastic telescopic strategy
When, the flexible strategy of object elastic is determined from the first elastic telescopic strategy and the second elastic telescopic strategy;
Implementation sub-module 4033, for being operated according to the corresponding elastic telescopic of the flexible strategy execution of the object elastic.
Optionally, this second determines submodule 4032, corresponding first credible for obtaining the first elastic telescopic strategy
Degree and corresponding second confidence level of the second elastic telescopic strategy;And according to first confidence level and second confidence level from
The flexible strategy of the object elastic is determined in the first elastic telescopic strategy and the second elastic telescopic strategy.
Optionally, this second determine submodule 4032, for according to pre-set priority from the first elastic telescopic strategy with
The flexible strategy of the object elastic is determined in the second elastic telescopic strategy.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, no detailed explanation will be given here.
Using above-mentioned apparatus, is identified by receiving the strategy that monitoring device is sent, Cloud Server is allowed to determine the plan
Corresponding first elastic telescopic strategy is slightly identified, and obtains and the second elastic telescopic plan that data determine is accessed according to Secondary resource
Slightly, to be operated according to the first elastic telescopic strategy elastic telescopic corresponding with the second elastic telescopic strategy execution.In this way,
Due to having preset strategy mark to each elastic telescopic strategy setting, Cloud Server is allowed to determine what monitoring device was sent
Strategy identifies corresponding first elastic telescopic strategy, so that monitoring device and Cloud Server can be based on by realizing Cloud Server
Monitoring of the monitoring module of to application program itself executes corresponding elastic telescopic operation, improves the accuracy of monitoring, and solve
Cloud Server in the prior art of having determined can not carry out corresponding elastic telescopic operation according to the monitored results of monitoring device.
Fig. 7 is the block diagram of a kind of electronic equipment 700 shown in disclosure exemplary embodiment.For example, electronic equipment 700 can
To be provided as a Cloud Server.Referring to Fig. 7, electronic equipment 700 includes processor 722, and quantity can be one or more,
And memory 732, for storing the computer program that can be executed by processor 722.The computer journey stored in memory 732
Sequence may include it is one or more each correspond to one group of instruction module.In addition, processor 722 can be configured
Method to execute the computer program, to execute above-mentioned application program elastic telescopic.
In addition, electronic equipment 700 can also include power supply module 726 and communication component 750, which can be with
It is configured as executing the power management of electronic equipment 700, which, which can be configured as, realizes electronic equipment 700
Communication, for example, wired or wireless communication.In addition, the electronic equipment 700 can also include input/output (I/O) interface 758.Electricity
Sub- equipment 700 can be operated based on the operating system for being stored in memory 732, such as Windows ServerTM, Mac OS
XTM, UnixTM, LinuxTM etc..
In a further exemplary embodiment, a kind of computer readable storage medium including program instruction is additionally provided, it should
The step of method of above-mentioned application program elastic telescopic is realized when program instruction is executed by processor.For example, the computer can
Reading storage medium can be the above-mentioned memory 732 including program instruction, and above procedure instruction can be by the processing of electronic equipment 700
The method that device 722 is executed to complete above-mentioned application program elastic telescopic.
The preferred embodiment of the disclosure is described in detail in conjunction with attached drawing above, still, the disclosure is not limited to above-mentioned reality
The detail in mode is applied, in the range of the technology design of the disclosure, a variety of letters can be carried out to the technical solution of the disclosure
Monotropic type, these simple variants belong to the protection scope of the disclosure.
It is further to note that specific technical features described in the above specific embodiments, in not lance
In the case where shield, can be combined in any appropriate way, in order to avoid unnecessary repetition, the disclosure to it is various can
No further explanation will be given for the combination of energy.
In addition, any combination can also be carried out between a variety of different embodiments of the disclosure, as long as it is without prejudice to originally
Disclosed thought equally should be considered as disclosure disclosure of that.
Claims (10)
1. a kind of method of application program elastic telescopic, which is characterized in that be applied to Cloud Server, comprising:
After monitoring device accesses the determining strategy mark of data according to the first resource of application program, receive what monitoring device was sent
The strategy mark;
Determine that the strategy identifies corresponding first elastic telescopic strategy;
According to the corresponding elastic telescopic operation of the first elastic telescopic strategy execution.
2. the method according to claim 1, wherein described according to the first elastic telescopic strategy execution pair
Before the elastic telescopic operation answered, further includes:
Obtain the Secondary resource access data of the application program;
Data, which are accessed, according to the Secondary resource determines the second elastic telescopic strategy;
It is described to include: according to the corresponding elastic telescopic operation of the first elastic telescopic strategy execution
According to the corresponding elastic telescopic operation of the first elastic telescopic strategy and the second elastic telescopic strategy execution.
3. according to the method described in claim 2, it is characterized in that, described according to the first elastic telescopic strategy and described
The corresponding elastic telescopic of two elastic telescopic strategy executions, which operates, includes:
Determine whether the first elastic telescopic strategy and the second elastic telescopic strategy are consistent;
When the first elastic telescopic strategy and the second elastic telescopic strategy are inconsistent, from the first elastic telescopic plan
Slightly and in the second elastic telescopic strategy determine the flexible strategy of object elastic;
According to the corresponding elastic telescopic operation of the flexible strategy execution of the object elastic.
4. according to the method described in claim 3, it is characterized in that, described from the first elastic telescopic strategy and described second
Determine that the flexible strategy of object elastic includes: in elastic telescopic strategy
Obtain corresponding first confidence level of the first elastic telescopic strategy and the second elastic telescopic strategy corresponding
Two confidence levels;
It is stretched according to first confidence level and second confidence level from the first elastic telescopic strategy and second elasticity
The flexible strategy of the object elastic is determined in contracting strategy.
5. according to the method described in claim 3, it is characterized in that, described from the first elastic telescopic strategy and described second
Determine that the flexible strategy of object elastic includes: in elastic telescopic strategy
The target is determined from the first elastic telescopic strategy and the second elastic telescopic strategy according to pre-set priority
Elastic telescopic strategy.
6. a kind of device of application program elastic telescopic, which is characterized in that be applied to Cloud Server, comprising:
Receiving module, for receiving after monitoring device accesses the determining strategy mark of data according to the first resource of application program
The strategy mark that monitoring device is sent;
First determining module, for determining that the strategy identifies corresponding first elastic telescopic strategy;
Execution module, for being operated according to the corresponding elastic telescopic of the first elastic telescopic strategy execution.
7. device according to claim 6, which is characterized in that further include:
Module is obtained, the Secondary resource for obtaining the application program accesses data;
Second determining module determines the second elastic telescopic strategy for accessing data according to the Secondary resource;
The execution module, for corresponding according to the first elastic telescopic strategy and the second elastic telescopic strategy execution
Elastic telescopic operation.
8. device according to claim 7, which is characterized in that the execution module includes:
First determines submodule, for determine the first elastic telescopic strategy and the second elastic telescopic strategy whether one
It causes;
Second determines submodule, is used for when the first elastic telescopic strategy and the second elastic telescopic strategy are inconsistent,
The flexible strategy of object elastic is determined from the first elastic telescopic strategy and the second elastic telescopic strategy;
Implementation sub-module, for being operated according to the corresponding elastic telescopic of the flexible strategy execution of the object elastic.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is held by processor
The step of any one of claim 1-5 the method is realized when row.
10. a kind of electronic equipment characterized by comprising
Memory is stored thereon with computer program;
Processor, for executing the computer program in the memory, to realize described in any one of claim 1-5
The step of method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810891445.1A CN109240822A (en) | 2018-08-07 | 2018-08-07 | The method, apparatus and storage medium and electronic equipment of application program elastic telescopic |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810891445.1A CN109240822A (en) | 2018-08-07 | 2018-08-07 | The method, apparatus and storage medium and electronic equipment of application program elastic telescopic |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109240822A true CN109240822A (en) | 2019-01-18 |
Family
ID=65070501
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810891445.1A Pending CN109240822A (en) | 2018-08-07 | 2018-08-07 | The method, apparatus and storage medium and electronic equipment of application program elastic telescopic |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109240822A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110554904A (en) * | 2019-07-30 | 2019-12-10 | 无锡华云数据技术服务有限公司 | scaling strategy processing method, device, equipment and storage medium |
CN110677321A (en) * | 2019-09-25 | 2020-01-10 | 广州通导信息技术服务有限公司 | Elastically-telescopic cloud pressure measuring method, device, equipment and storage medium |
CN111858015A (en) * | 2019-04-25 | 2020-10-30 | 中国移动通信集团河北有限公司 | Method, device and gateway for configuring running resources of application programs |
CN112925607A (en) * | 2021-02-22 | 2021-06-08 | 深圳前海微众银行股份有限公司 | System capacity expansion and contraction method and device and electronic equipment |
CN114745278A (en) * | 2022-04-11 | 2022-07-12 | 中和农信项目管理有限公司 | Method and device for expanding and contracting capacity of business system, electronic equipment and storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103701920A (en) * | 2013-12-31 | 2014-04-02 | 曙光云计算技术有限公司 | Method for configuring virtual application server under cloud environment |
CN104954478A (en) * | 2015-06-23 | 2015-09-30 | 普元信息技术股份有限公司 | System and method for realizing automatic longitudinal scaling of server in cloud computing platform |
CN106020931A (en) * | 2016-05-19 | 2016-10-12 | 浪潮电子信息产业股份有限公司 | Heat-based cloud application deployment scheme |
CN106603618A (en) * | 2016-09-14 | 2017-04-26 | 浪潮电子信息产业股份有限公司 | Cloud platform-based application auto scaling method |
US9769085B2 (en) * | 2012-05-04 | 2017-09-19 | Citrix Systems, Inc. | Systems and methods for adaptive application provisioning |
CN107301093A (en) * | 2016-04-15 | 2017-10-27 | 华为技术有限公司 | A kind of method and apparatus for managing resource |
CN107506241A (en) * | 2017-08-25 | 2017-12-22 | 郑州云海信息技术有限公司 | A kind of flexible method of cloud platform automatic elastic |
US20180205616A1 (en) * | 2017-01-18 | 2018-07-19 | International Business Machines Corporation | Intelligent orchestration and flexible scale using containers for application deployment and elastic service |
-
2018
- 2018-08-07 CN CN201810891445.1A patent/CN109240822A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9769085B2 (en) * | 2012-05-04 | 2017-09-19 | Citrix Systems, Inc. | Systems and methods for adaptive application provisioning |
CN103701920A (en) * | 2013-12-31 | 2014-04-02 | 曙光云计算技术有限公司 | Method for configuring virtual application server under cloud environment |
CN104954478A (en) * | 2015-06-23 | 2015-09-30 | 普元信息技术股份有限公司 | System and method for realizing automatic longitudinal scaling of server in cloud computing platform |
CN107301093A (en) * | 2016-04-15 | 2017-10-27 | 华为技术有限公司 | A kind of method and apparatus for managing resource |
CN106020931A (en) * | 2016-05-19 | 2016-10-12 | 浪潮电子信息产业股份有限公司 | Heat-based cloud application deployment scheme |
CN106603618A (en) * | 2016-09-14 | 2017-04-26 | 浪潮电子信息产业股份有限公司 | Cloud platform-based application auto scaling method |
US20180205616A1 (en) * | 2017-01-18 | 2018-07-19 | International Business Machines Corporation | Intelligent orchestration and flexible scale using containers for application deployment and elastic service |
CN107506241A (en) * | 2017-08-25 | 2017-12-22 | 郑州云海信息技术有限公司 | A kind of flexible method of cloud platform automatic elastic |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111858015A (en) * | 2019-04-25 | 2020-10-30 | 中国移动通信集团河北有限公司 | Method, device and gateway for configuring running resources of application programs |
CN110554904A (en) * | 2019-07-30 | 2019-12-10 | 无锡华云数据技术服务有限公司 | scaling strategy processing method, device, equipment and storage medium |
CN110677321A (en) * | 2019-09-25 | 2020-01-10 | 广州通导信息技术服务有限公司 | Elastically-telescopic cloud pressure measuring method, device, equipment and storage medium |
CN110677321B (en) * | 2019-09-25 | 2021-09-17 | 广州通导信息技术服务有限公司 | Elastically-telescopic cloud pressure measuring method, device, equipment and storage medium |
CN112925607A (en) * | 2021-02-22 | 2021-06-08 | 深圳前海微众银行股份有限公司 | System capacity expansion and contraction method and device and electronic equipment |
CN114745278A (en) * | 2022-04-11 | 2022-07-12 | 中和农信项目管理有限公司 | Method and device for expanding and contracting capacity of business system, electronic equipment and storage medium |
CN114745278B (en) * | 2022-04-11 | 2024-05-24 | 中和农信农业集团有限公司 | Method and device for expanding and shrinking capacity of service system, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109240822A (en) | The method, apparatus and storage medium and electronic equipment of application program elastic telescopic | |
Yang et al. | Bubble-flux: Precise online qos management for increased utilization in warehouse scale computers | |
US9218203B2 (en) | Packet scheduling in a multiprocessor system using inter-core switchover policy | |
Tong et al. | Application-aware traffic scheduling for workload offloading in mobile clouds | |
CN109981744B (en) | Data distribution method and device, storage medium and electronic equipment | |
US10305974B2 (en) | Ranking system | |
CN111131058A (en) | Access point control method and device | |
CN109408399B (en) | A computing power estimation method, device, equipment and storage medium | |
CN113191114B (en) | Method and apparatus for validating a system | |
CN113595926B (en) | API data transmission method, device, equipment and medium based on data middlebox | |
US10402232B2 (en) | Method and system for deterministic multicore execution | |
JP2025004046A (en) | Cluster-Based Training Method, Apparatus, Electronic Device, and Storage Medium | |
CN109800085B (en) | Resource configuration detection method and device, storage medium and electronic equipment | |
CN108173683B (en) | Elastic control method and device for cloud application and cloud server | |
CN113886196B (en) | On-chip power consumption management method, electronic device and storage medium | |
CN113938992B (en) | Threshold determining method and device | |
CN108307060A (en) | Electronic equipment, falling protection method and Related product | |
CN109302723A (en) | An Internet-based multi-node real-time radio monitoring and control system and control method | |
Rattagan | Wi-Fi usage monitoring and power management policy for smartphone background applications | |
CN115129565A (en) | Log data processing method, device, system, equipment and medium | |
CN112667473B (en) | Method, device and computer readable medium for evaluating edge resources | |
CN111083057A (en) | Flow control method and device and computer storage medium | |
CN114253701A (en) | Task scheduling method and device and computer system | |
CN111130863A (en) | Virtual network card management method, system, equipment and computer storage medium | |
US20200351179A1 (en) | Methods, Network Function Entities and Computer Readable Media for Providing IoT Services |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190118 |