CN107967173A - A kind of methods, devices and systems of scheduling of resource - Google Patents
A kind of methods, devices and systems of scheduling of resource Download PDFInfo
- Publication number
- CN107967173A CN107967173A CN201610917746.8A CN201610917746A CN107967173A CN 107967173 A CN107967173 A CN 107967173A CN 201610917746 A CN201610917746 A CN 201610917746A CN 107967173 A CN107967173 A CN 107967173A
- Authority
- CN
- China
- Prior art keywords
- server
- risk factor
- output value
- application
- resource
- 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 OR CALCULATING; 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
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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]
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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/5061—Partitioning or combining of resources
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/06—Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/50—Indexing scheme relating to G06F9/50
- G06F2209/5011—Pool
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Entrepreneurship & Innovation (AREA)
- Human Resources & Organizations (AREA)
- Economics (AREA)
- Strategic Management (AREA)
- Marketing (AREA)
- Game Theory and Decision Science (AREA)
- Development Economics (AREA)
- Educational Administration (AREA)
- Operations Research (AREA)
- Quality & Reliability (AREA)
- Tourism & Hospitality (AREA)
- General Business, Economics & Management (AREA)
- Debugging And Monitoring (AREA)
- Mobile Radio Communication Systems (AREA)
- Computer And Data Communications (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The embodiment of the present application provides a kind of methods, devices and systems of scheduling of resource, the described method includes:When receiving the resource scheduling request of intended application object, the risk factor of server is determined;Risk factor according to the server, resource is distributed for the intended application object, so that the performance of server and risk that may be present are taken into full account in resource allocation, avoid and the larger server resource of risk factor is distributed into intended application object, reduce the quality loss because of operation system caused by server failure, improve the stability of operation system operation.
Description
Technical field
This application involves scheduling of resource technical field, more particularly to a kind of method of scheduling of resource, a kind of scheduling of resource
Device and a kind of system of scheduling of resource.
Background technology
Scheduling of resource refers to when an application is disposed, suitable clothes are found out from data center's (computer room) is inner
Business device resource, then distributes to the application by the server resource and uses.
In general, only consider the apllied resource of the application when distributing resource for application in prior art
Quantity, for example, work as 4 CPU cores of some application application, 8G memories, during the resource of 60G disks, system only need from
Find out which server is capable of providing above-mentioned resource in computer room, so as to be distributed on the server found out for the application
Resource.
But service condition due to different servers and differ, the loss caused by breaking down is also different, because
This, resource is distributed according to existing method for application, and in server failure, the loss caused by system may also be able to be
It is extremely serious.
The content of the invention
In view of the above problems, it is proposed that the embodiment of the present application overcomes the above problem or at least in part in order to provide one kind
A kind of method of the scheduling of resource to solve the above problems, a kind of device of scheduling of resource and a kind of corresponding scheduling of resource are
System.
To solve the above-mentioned problems, this application discloses a kind of system of scheduling of resource, the system comprises recognition unit,
Scheduling unit and multiple servers;
The recognition unit receives the resource scheduling request of intended application object, and determines described more according to the request
The risk factor of server, the risk factor of the multiple servers is sent to scheduling unit;
Risk factor of the scheduling unit according to the multiple servers, resource is distributed for the intended application object.
To solve the above-mentioned problems, disclosed herein as well is a kind of method of scheduling of resource, including:
When receiving the resource scheduling request of intended application object, the risk factor of server is determined;
According to the risk factor of the server, resource is distributed for the intended application object.
Alternatively, it is described when receiving the resource scheduling request of intended application object, determine the risk factor of server
The step of include:
When receiving the resource scheduling request of intended application object, when counting the server and being in operating status, industry
First output value that business system produces;And
When counting the server and being in halted state, second output value that the operation system produces;
According to first output value and second output value, the risk factor of the server is determined.
Alternatively, when the statistics server be in operating status, the step of first output value of operation system generation
Including:
When the server is in operating status, first output value produced in preset analog service system is counted.
Alternatively, when the statistics server is in halted state, second output value of the operation system generation
Step includes:
Obtain the one or more application object disposed on the server;
When one or more of applications are in halted state, count in the preset analog service system
Second output value produced;
Alternatively, it is described according to first output value and second output value, the step of determining the risk factor of the server
Including:
Count the first difference between first output value and second output value;
According to first difference, the risk factor of the server, the risk factor and first difference are determined
It is directly proportional.
Alternatively, the risk factor according to the server, is the step of intended application object distributes resource
Including:
Find out the destination server that the risk factor is less than the first predetermined threshold value;
From the destination server, resource is distributed for the intended application object.
Alternatively, further include:
Determine the risk factor of application.
Alternatively, the step of risk factor of the definite application includes:
When the application is in operating status, the tertiary industry produced in preset analog service system is counted
Value;And
When the application is in halted state, the 4th produced in the preset analog service system is counted
The output value;
According to the 3rd output value and the 4th output value, the risk factor of the application is determined.
Alternatively, it is described according to the 3rd output value and the 4th output value, determine the step of the risk factor of the application
Suddenly include:
Count the second difference between the 3rd output value and the 4th output value;
According to second difference, the risk factor of the application is determined, the risk factor and described second poor
It is worth directly proportional.
Alternatively, it is described when receiving the resource scheduling request of intended application object, determine the risk factor of server
The step of include:
When receiving the resource scheduling request of intended application object, the one or more disposed on the server is obtained
Application;
Count the sum of described second difference of one or more of applications;
According to the sum of described second difference, determine the risk factor of the server, the risk factor of the server with
The sum of second difference is directly proportional.
To solve the above-mentioned problems, disclosed herein as well is a kind of device of scheduling of resource, including:
Risk server determining module, for when receiving the resource scheduling request of intended application object, determining service
The risk factor of device;
Distribution module, for the risk factor according to the server, resource is distributed for the intended application object.
Alternatively, the risk server determining module includes:
First statistic submodule, for when receiving the resource scheduling request of intended application object, counting the service
When device is in operating status, first output value of operation system generation;
Second statistic submodule, when being in halted state for counting the server, the operation system produce the
Two output values;
Risk server determination sub-module, for according to first output value and second output value, determining the server
Risk factor.
Alternatively, first statistic submodule includes:
First statistic unit, for when the server is in operating status, counting in preset analog service system
First output value of middle generation.
Alternatively, second statistic submodule includes:
Application acquiring unit, for obtaining the one or more application object disposed on the server;
Second statistic unit, for when one or more of applications are in halted state, counting described pre-
Second output value produced in the analog service system put;
Alternatively, the risk server determination sub-module includes:
First difference statistic unit, for counting the first difference between first output value and second output value;
Risk server determination unit, it is described for according to first difference, determining the risk factor of the server
Risk factor is directly proportional to first difference.
Alternatively, the distribution module includes:
Submodule is searched, the destination server of the first predetermined threshold value is less than for finding out the risk factor;
Distribution sub module, for from the destination server, resource to be distributed for the intended application object.
Alternatively, further include:
Application risk determining module, for determining the risk factor of application.
Alternatively, the application risk determining module includes:
3rd statistic submodule, for when the application is in operating status, counting in preset analog service
The 3rd output value produced in system;
4th statistic submodule, for when the application is in halted state, counting in the preset simulation
The 4th output value produced in operation system;
Application risk determination sub-module, for according to the 3rd output value and the 4th output value, determining the application pair
The risk factor of elephant.
Alternatively, the application risk determination sub-module includes:
Second difference statistic unit, for counting the second difference between the 3rd output value and the 4th output value;
Application risk determination unit, for according to second difference, determining the risk factor of the application,
The risk factor is directly proportional to second difference.
Alternatively, the risk server determining module includes:
Acquisition submodule, for when receiving the resource scheduling request of intended application object, obtaining on the server
The one or more application object of deployment;
The sum of statistic submodule, second difference for counting one or more of applications;
Determination sub-module, for according to the sum of described second difference, determining the risk factor of the server, the service
The risk factor of device is directly proportional to the sum of second difference.
Compared with background technology, the embodiment of the present application includes advantages below:
The embodiment of the present application, when receiving the resource scheduling request of intended application object, by the wind for determining server
Dangerous coefficient, then the risk factor according to the server, distributes resource so that in resource allocation for the intended application object
When taken into full account the performance of server and risk that may be present, avoid and distribute the larger server resource of risk factor
Intended application object is given, reduces the quality loss because of operation system caused by server failure, improves operation system
The stability of operation.
Brief description of the drawings
Fig. 1 is a kind of step flow chart of the embodiment of the method one of scheduling of resource of the application;
Fig. 2 is a kind of step flow chart of the embodiment of the method two of scheduling of resource of the application;
Fig. 3 is a kind of functional block diagram of the method for scheduling of resource of the application;
Fig. 4 is the functional block diagram of the risk factor of the definite application of the application;
Fig. 5 is a kind of step flow chart of the embodiment of the method three of scheduling of resource of the application;
Fig. 6 is the functional block diagram of the risk factor of the definite server of the application;
Fig. 7 is a kind of structure diagram of the device embodiment of scheduling of resource of the application;
Fig. 8 is a kind of structure diagram of the system embodiment of scheduling of resource of the application.
Embodiment
It is below in conjunction with the accompanying drawings and specific real to enable the above-mentioned purpose of the application, feature and advantage more obvious understandable
Mode is applied to be described in further detail the application.
With reference to Fig. 1, a kind of step flow chart of the embodiment of the method one of scheduling of resource of the application is shown, specifically can be with
Include the following steps:
Step 101, when receiving the resource scheduling request of intended application object, the risk factor of server is determined;
In the embodiment of the present application, the application can be a kind of service of internet, including online task, offline
Task etc..
Different applications is when performing corresponding task or service, required CPU, memory, disk or network money
Source is all different.When some application sends resource scheduling request to system, such as application A is to system application
4 CPU cores, 8G memories, during the resource of 60G disks, at this point it is possible to determine the risk system of multiple servers respectively first
Number.
The risk factor can refer to server in the process of running due to various reasons and occur can not continue just
A kind of probability often run.In general, the risk factor of server can be determined by the loss of assets value of server, the server
Risk factor can be directly proportional to the loss of assets of server value, can if the loss of assets value of a server is bigger
To think that the risk factor of the server is also bigger.
In general, on a server, multiple and different applications can be deployed with, for example, application on site object or from
Line application, by the mutual cooperation of multiple and different applications, so as to support different operation systems
Operation.The loss of assets value of the server can refer to when the server leads to not normally because of failure or other reasons
During operation, the output value that the operation system is lost.
In the concrete realization, the loss of assets value of server can be obtained by way of building analog service system.
For example, for an operation system, can be built by modeling with the identical simulation system of the operation system, be used for
Simulate the operating condition of whole operation system.By taking e-commerce website as an example, analog service system can simulate the website
Operation, including analog subscriber place an order and buy commodity, complete a series of actions such as payment, during analog subscriber acts,
The analog service system can know the data such as caused transaction value in this process.
Further, can be by stopping each application pair on server respectively after analog service system is constructed
The operation of elephant, obtains the loss of assets value of each application, so that according to application whole on the server
Loss of assets value, obtains the loss of assets value of server, and then according to loss of assets value, obtains the risk factor of server.
It is caused when the loss of assets value of server can be by the server failure by taking e-commerce website as an example
The loss of transaction value determines.Certainly, ring can be applied according to this for the server of other application environment, its loss of assets value
The concrete condition in border determines that the embodiment of the present application is not construed as limiting this.
Step 102, the risk factor according to the server, resource is distributed for the intended application object.
In the concrete realization, can be by the risk system after risk factor of whole servers in resource pool is determined
Number is arranged according to order from small to large, is then less than from risk factor in the destination server of the first predetermined threshold value, is target
Application distributes resource.
Since the risk factor of destination server is smaller, when destination server breaks down, caused assets
Loss is also relatively small, so as to be reduced as far as due to server failure and the influence caused by intended application object
In the embodiment of the present application, when receiving the resource scheduling request of intended application object, by determining server
Risk factor, the then risk factor according to the server, distributes resource so that in resource for the intended application object
The performance of server and risk that may be present have been taken into full account during distribution, has been avoided the larger server resource of risk factor
Intended application object is distributed to, reduces the quality loss because of operation system caused by server failure, improves business
The stability of system operation.
With reference to Fig. 2, a kind of step flow chart of the embodiment of the method two of scheduling of resource of the application is shown, specifically can be with
Include the following steps:
Step 201, the risk factor of application is determined;
As shown in figure 3, it is a kind of functional block diagram of the method for scheduling of resource of the application.In the concrete realization, for one
A operation system, can build with the identical simulation system of the operation system, for simulating whole operation system
Operating condition.By taking e-commerce website as an example, analog service system can simulate the operation of the website, and under analog subscriber
Single purchase commodity, complete a series of actions such as payment, and during analog subscriber acts, which can obtain
Know the data such as caused transaction value in this process.
In the concrete realization, the analog service system can be used to determine the loss of assets value of application respectively,
And then obtain the loss of assets value of server.Then, the risk factor of server, example are determined by the loss of assets value of server
Such as, the risk factor of the server can be directly proportional to the loss of assets value of server, and loss of assets value is bigger, risk system
Number is also bigger.The loss of assets value of the application can refer to when the application causes because of failure or other reasons
Can not normal operation when, the output value that the operation system is lost, and the loss of assets value of the server then refers to when described
When server leads to not normal operation because of failure or other reasons, the output value that the operation system is lost.With electronics business
It is engaged in exemplified by website, when the loss of assets value of server can be by the server failure, the loss of caused transaction value comes really
It is fixed.
In a preferred embodiment of the present application, the step of risk factor of the definite application, can specifically wrap
Include following sub-step:
Sub-step 2011, when the application is in operating status, counts and is produced in preset analog service system
The 3rd raw output value;
Sub-step 2012, when the application is in halted state, counts in the preset analog service system
4th output value of middle generation;
Sub-step 2013, according to the 3rd output value and the 4th output value, determines the loss of assets value of the application;
Sub-step 2014, according to the 3rd output value and the 4th output value, determines the risk factor of the application.
As shown in figure 4, it is the functional block diagram of the risk factor of the definite application of the application.In the concrete realization, may be used
To be counted first in preset analog service system when whole applications are under normal operating condition, the mould
3rd output value caused by intending operation system, then can stop the operation of some application, and then continue to count this
4th output value caused by Shi Suoshu analog service systems, by calculating the difference between the 3rd output value and the 4th output value, obtains
The loss of assets value of the application, and then obtain the risk factor of the application.
In the concrete realization, it is described according to the 3rd output value and the 4th output value, determine the risk system of the application
Several sub-steps may further include:
S11, counts the second difference between the 3rd output value and the 4th output value;
S12, according to second difference, determines the risk factor of the application, the risk factor and described the
Two differences are directly proportional.
It is caused when the loss of assets value of application can be with the application failure by taking e-commerce website as an example
The loss of transaction value determine.For example, when whole applications are in normal operating condition, the website is in unit
Interior transaction value is T1, and after some application breaks down, transaction value of the website within the unit interval is T2, because
This, it is believed that the loss of assets value of the application is S=T1-T2, can then proceed in loss of assets value and risk factor
Between proportional relationship, obtain the risk factor of the application.Certainly, those skilled in the art can be according to actual need
Will, specific to set correspondence between loss of assets value and risk factor, the embodiment of the present application is not construed as limiting this.
Step 202, when receiving the resource scheduling request of intended application object, one disposed on the server is obtained
A or multiple applications;
In general, on a server, multiple and different applications can be deployed with, for supporting different business systems
The operation of system.
In the embodiment of the present application, when receiving the resource scheduling request of intended application object, for example, working as application
A is to 4 CPU cores of system application, 8G memories, during the resource of 60G disks, can obtain each server in resource pool respectively
The application of upper deployment.
Step 203, the sum of described second difference of one or more of applications is counted;
In the concrete realization, second difference can be regarded as the loss of assets value of application, therefore, obtain respectively
After the second difference for obtaining each application, the sum of second difference of whole applications can be counted.
Step 204, according to the sum of described second difference, the risk factor of the server, the wind of the server are determined
Dangerous coefficient is directly proportional to the sum of second difference;
In the concrete realization, after the application disposed on each server is obtained, can be obtained according to step 201
Each application loss of assets value, calculate obtain each server loss of assets value.For example, when in server
When application A, application B, application C are deployed with one, if the loss of assets value of the application A is 200
The loss of assets value of ten thousand, the application B are 3,000,000, and the loss of assets value of the application A is 6,000,000, then can recognize
Loss of assets value for server one is 2,000,000+300 ten thousand+600 ten thousand=11,000,000.Certainly, different applications is in business system
Effect played in the operation of system simultaneously differs, therefore, those skilled in the art can also according to the significance level of application,
Different weighted values is distributed for each application, so that by way of weighting, determines the assets damage of the server
Mistake value, the embodiment of the present application are not construed as limiting this.
, can be according to the direct ratio between loss of assets value and risk factor after the loss of assets value of server is determined
Example relation, obtains the risk factor of server.Certainly, those skilled in the art can more be actually needed specific setting server
Loss of assets value and risk factor between correspondence, the embodiment of the present application is not construed as limiting this.
Step 205, the risk factor according to the server, resource is distributed for the intended application object.
In a preferred embodiment of the present application, the risk factor according to the server should for the target
The step of distributing resource with object can specifically include following sub-step:
Sub-step 2051, finds out the destination server that the risk factor is less than the first predetermined threshold value;
Sub-step 2052, from the destination server, resource is distributed for the intended application object.
In the concrete realization, can be by the risk factor after risk factor of whole servers in resource pool is obtained
Arrange according to order from small to large, be then less than from risk factor in the destination server of the first predetermined threshold value, should for target
Resource is distributed with object.First predetermined threshold value can be set according to being actually needed, and the embodiment of the present application is not construed as limiting this.
With reference to Fig. 5, a kind of step flow chart of the embodiment of the method three of scheduling of resource of the application is shown, specifically can be with
Include the following steps:
Step 501, when receiving the resource scheduling request of intended application object, count the server and be in operation shape
During state, first output value of the operation system generation;
As shown in fig. 6, it is the functional block diagram of the risk factor of the definite server of the application.In the concrete realization, when connecing
When receiving the resource scheduling request of intended application object, it can determine whether each application in server is located first
In normal operating condition, if so, can then count the output value of operation system at this time as first output value.Different operation systems,
First output value can be determined in different ways, and the embodiment of the present application is not construed as limiting this.For example, for e-business network
Stand, transaction value when can be in normal operating condition using application is used as first output value.
In a preferred embodiment of the present application, when the statistics server is in operating status, the business
The step of first output value that system produces, can specifically include following sub-step:
Sub-step 5011, when the server is in operating status, counts and is produced in preset analog service system
First output value.
In the concrete realization, for an operation system, can build and the identical simulation of the operation system
System, for simulating the operating condition of whole business.By taking e-commerce website as an example, analog service system can simulate the net
The operation stood, and analog subscriber place an order and buy commodity, so as to constantly produce transaction value.
It is then possible to when counting the server and being in operating status, first output value that the analog service system produces.
Step 502, when counting the server and being in halted state, second output value that the operation system produces;
In a preferred embodiment of the present application, when the statistics server is in halted state, the business
The step of second output value that system produces, can specifically include following sub-step:
Sub-step 5021, obtains the one or more application object disposed on the server;
Sub-step 5022, when one or more of applications are in halted state, counts in the preset mould
Intend second output value produced in operation system.
In general, on a server, multiple and different applications can be deployed with, for supporting different business systems
The operation of system.
In the embodiment of the present application, can obtain the one or more disposed in resource pool on each server respectively should
With object, then stop the whole applications disposed on a certain server in the operation system of simulation at the same time, and then obtain
Obtain second output value produced in the analog service system.
Step 503, according to first output value and second output value, the risk factor of the server is determined;
It is described according to first output value and second output value in a preferred embodiment of the present application, determine the clothes
The step of risk factor of business device, can specifically include following sub-step:
Sub-step 5031, counts the first difference between first output value and second output value;
Sub-step 5032, according to first difference, determines the risk factor of the server, the risk factor and institute
It is directly proportional to state the first difference.
In the concrete realization, the service can be determined by calculating the difference between first output value and second output value
The loss of assets value of device, then according to the correspondence between the loss of assets value and risk factor of server, obtains server
Risk factor.
In general, the risk factor of server can be directly proportional to the loss of assets value of server, loss of assets value is bigger,
Risk factor is also bigger, and certainly, those skilled in the art can be according to the loss of assets value and wind for being actually needed setting server
Correspondence between dangerous coefficient, the embodiment of the present application are not construed as limiting this.
Step 504, the destination server that the risk factor is less than the first predetermined threshold value is found out;
Step 505, from the destination server, resource is distributed for the intended application object.
In the concrete realization, can be by the risk factor after risk factor of whole servers in resource pool is obtained
Arrange according to order from small to large, be then less than from risk factor in the destination server of the first predetermined threshold value, should for target
Resource is distributed with object.First predetermined threshold value can be set according to being actually needed, and the embodiment of the present application is not construed as limiting this.
In the embodiment of the present application, by the one or more application object for determining to dispose on server, institute is then stopped
Whole applications on server are stated, obtain the loss of assets value of server, and then according to risk factor and loss of assets value
Between correspondence obtain the risk factor of server, due to multiple applications at the same time failure when, caused loss
The simple superposition of penalty values when being worth not necessarily by single application failure, is avoided logical using the method for the present embodiment
The problem of crossing the penalty values for simply adding up each application and causing the loss of assets value of calculation server inaccurate, improves
The accuracy of the risk factor of calculation server.
In order to make it easy to understand, the method for the scheduling of resource of the application is made a presentation with a specific embodiment below.
1st, the risk factor of server is determined;
Assuming that there is an e-commerce website, user can place an order on the web buys commodity.The application can take
A set of the simulative running system, the simulative running system and the e-commerce website are built, on Technical Architecture and production environment
It is identical, places an order for analog subscriber.The e-commerce website can be made of several applications.
(1) when whole applications in the e-commerce website are in normal operation, it can count and obtain institute
State the transaction value of e-commerce website each hour, it is assumed that transaction value is 10,000,000 yuan;
(2) by analysis, it may be determined that application A, application B and application are deployed with a certain server
C, totally 3 applications;
(3) the simulative running system stops the operation of application A, application B and application C at the same time;
(4) statistics is obtained in application A, application B and application C out of service, the simulative running system
The transaction value of each hour, it is assumed that be 8,000,000 yuan;
(5) the loss of assets value that can determine this server is 10,000,000 yuan -800 ten thousand yuan=2,000,000 yuan;
(6) according to the correspondence between the loss of assets value and risk factor of server, for example, corresponding to 2,000,000 yuan
The risk factor of loss of assets value is 0.3 (example value).
2nd, scheduling of resource;
(1) resource bid person applies for 4 CPU cores, 8G memories, the resource of 60G disks to system for application D;
(2) system finds out the server of enough idling-resources from resource pool, that is, finds and all have more than 4
CPU core, 8G memories, the server of 60G disk idling-resources;Obtained assuming that searching on server 1, server 2 and server 3
There is the idling-resource of meet demand;
(3) the application list disposed respectively on system acquisition server 1, server 2 and server 3;
(4) system calculates the risk factor on server 1, server 2 and server 3 respectively;Assuming that the money of server 1
It is 3,000,000 yuan to produce penalty values, and the loss of assets value of server 2 is 2,000,000 yuan, and the loss of assets value of server 3 is 4,000,000 yuan,
Corresponding risk factor is that server 1 is 0.35 respectively, and the risk factor of server 2 is 0.3, and the risk factor of server 3 is
0.42;
(5) since the risk factor of server 2 is minimum, so as to give the resource allocation of server 2 to application D
Use.
It should be noted that for embodiment of the method, in order to be briefly described, therefore it is all expressed as to a series of action group
Close, but those skilled in the art should know, the embodiment of the present application and from the limitation of described sequence of movement, because according to
According to the embodiment of the present application, some steps can use other orders or be carried out at the same time.Secondly, those skilled in the art also should
Know, embodiment described in this description belongs to preferred embodiment, and involved action not necessarily the application is implemented
Necessary to example.
With reference to Fig. 7, show a kind of structure diagram of the device embodiment of scheduling of resource of the application, can specifically include
Following module:
Risk server determining module 701, for when receiving the resource scheduling request of intended application object, determining clothes
The risk factor of business device;
Distribution module 702, for the risk factor according to the server, resource is distributed for the intended application object.
In the embodiment of the present application, the risk server determining module 701 can specifically include following submodule:
First statistic submodule, for when receiving the resource scheduling request of intended application object, counting the service
When device is in operating status, first output value of operation system generation;
Second statistic submodule, when being in halted state for counting the server, the operation system produce the
Two output values;
Risk server determination sub-module, for according to first output value and second output value, determining the server
Risk factor.
In the embodiment of the present application, first statistic submodule can specifically include such as lower unit:
First statistic unit, for when the server is in operating status, counting in preset analog service system
First output value of middle generation.
In the embodiment of the present application, second statistic submodule can specifically include such as lower unit:
Application acquiring unit, for obtaining the one or more application object disposed on the server;
Second statistic unit, for when one or more of applications are in halted state, counting described pre-
Second output value produced in the analog service system put;
In the embodiment of the present application, the risk server determination sub-module can specifically include such as lower unit:
First difference statistic unit, for counting the first difference between first output value and second output value;
Risk server determination unit, it is described for according to first difference, determining the risk factor of the server
Risk factor is directly proportional to first difference.
In the embodiment of the present application, the distribution module 702 can specifically include following submodule:
Submodule is searched, the destination server of the first predetermined threshold value is less than for finding out the risk factor;
Distribution sub module, for from the destination server, resource to be distributed for the intended application object.
In the embodiment of the present application, described device can also include following module:
Application risk determining module, for determining the risk factor of application.
In the embodiment of the present application, the application risk determining module can specifically include following submodule:
3rd statistic submodule, for when the application is in operating status, counting in preset analog service
The 3rd output value produced in system;
4th statistic submodule, for when the application is in halted state, counting in the preset simulation
The 4th output value produced in operation system;
Application risk determination sub-module, for according to the 3rd output value and the 4th output value, determining the application pair
The risk factor of elephant.
In the embodiment of the present application, the application risk determination sub-module can specifically include such as lower unit:
Second difference statistic unit, for counting the second difference between the 3rd output value and the 4th output value;
Application risk determination unit, for according to second difference, determining the risk factor of the application,
The risk factor is directly proportional to second difference.
In the embodiment of the present application, the risk server determining module 701 can also include following submodule:
Acquisition submodule, for when receiving the resource scheduling request of intended application object, obtaining on the server
The one or more application object of deployment;
The sum of statistic submodule, second difference for counting one or more of applications;
Determination sub-module, for according to the sum of described second difference, determining the risk factor of the server, the service
The risk factor of device is directly proportional to the sum of second difference.
For device embodiment, since it is substantially similar to embodiment of the method, so description is fairly simple, it is related
Part illustrates referring to the part of embodiment of the method.
Reference Fig. 8, shows a kind of structure diagram of the system embodiment of scheduling of resource of the application, and the system is specific
It can include recognition unit 801, scheduling unit 802 and multiple servers;
The recognition unit 801 can receive the resource scheduling request of intended application object, and be determined according to the request
The risk factor of the multiple servers, the risk factor of the multiple servers is sent to scheduling unit;
The scheduling unit 802 can be according to the risk factor of the multiple servers, for the intended application object point
With resource.
Each embodiment in this specification is described by the way of progressive, what each embodiment stressed be with
The difference of other embodiment, between each embodiment identical similar part mutually referring to.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present application can be provided as method, apparatus or calculate
Machine program product.Therefore, the embodiment of the present application can use complete hardware embodiment, complete software embodiment or combine software and
The form of the embodiment of hardware aspect.Moreover, the embodiment of the present application can use one or more wherein include computer can
With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code
The form of the computer program product of implementation.
In a typical configuration, the computer equipment includes one or more processors (CPU), input/output
Interface, network interface and memory.Memory may include the volatile memory in computer-readable medium, random access memory
The form such as device (RAM) and/or Nonvolatile memory, such as read-only storage (ROM) or flash memory (flash RAM).Memory is to calculate
The example of machine computer-readable recording medium.Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be with
Realize that information stores by any method or technique.Information can be computer-readable instruction, data structure, the module of program or
Other data.The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM
(SRAM), dynamic random access memory (DRAM), other kinds of random access memory (RAM), read-only storage
(ROM), electrically erasable programmable read-only memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc are read-only
Memory (CD-ROM), digital versatile disc (DVD) or other optical storages, magnetic cassette tape, tape magnetic rigid disk storage or
Other magnetic storage apparatus or any other non-transmission medium, the information that can be accessed by a computing device available for storage.According to
Herein defines, and computer-readable medium does not include the computer readable media (transitory media) of non-standing, such as
The data-signal and carrier wave of modulation.
The embodiment of the present application is with reference to according to the method for the embodiment of the present application, terminal device (system) and computer program
The flowchart and/or the block diagram of product describes.It should be understood that it can realize flowchart and/or the block diagram by computer program instructions
In each flow and/or block and flowchart and/or the block diagram in flow and/or square frame combination.These can be provided
Computer program instructions are set to all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals
Standby processor is to produce a machine so that is held by the processor of computer or other programmable data processing terminal equipments
Capable instruction is produced and is used for realization in one flow of flow chart or multiple flows and/or one square frame of block diagram or multiple square frames
The device for the function of specifying.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing terminal equipments
In the computer-readable memory to work in a specific way so that the instruction being stored in the computer-readable memory produces bag
The manufacture of command device is included, which realizes in one flow of flow chart or multiple flows and/or one side of block diagram
The function of being specified in frame or multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing terminal equipments so that
Series of operation steps is performed on computer or other programmable terminal equipments to produce computer implemented processing, so that
The instruction performed on computer or other programmable terminal equipments is provided and is used for realization in one flow of flow chart or multiple flows
And/or specified in one square frame of block diagram or multiple square frames function the step of.
Although having been described for the preferred embodiment of the embodiment of the present application, those skilled in the art once know base
This creative concept, then can make these embodiments other change and modification.So appended claims are intended to be construed to
Including preferred embodiment and fall into all change and modification of the embodiment of the present application scope.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or order.Moreover, term " comprising ", "comprising" or its any other variant meaning
Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements are not only wrapped
Those key elements are included, but also including other elements that are not explicitly listed, or further include as this process, method, article
Or the key element that terminal device is intrinsic.In the absence of more restrictions, wanted by what sentence "including a ..." limited
Element, it is not excluded that also there are other identical element in the process including the key element, method, article or terminal device.
Method to a kind of scheduling of resource provided herein, a kind of device of scheduling of resource and a kind of resource tune above
The system of degree, is described in detail, and specific case used herein explains the principle and embodiment of the application
State, the explanation of above example is only intended to help to understand the present processes and its core concept;Meanwhile for this area
Those skilled in the art, according to the thought of the application, there will be changes in specific embodiments and applications, to sum up institute
State, this specification content should not be construed as the limitation to the application.
Claims (21)
1. a kind of system of scheduling of resource, it is characterised in that the system comprises recognition unit, scheduling unit and Duo Tai service
Device;
The recognition unit receives the resource scheduling request of intended application object, and determines the more services according to the request
The risk factor of device, the risk factor of the multiple servers is sent to scheduling unit;
Risk factor of the scheduling unit according to the multiple servers, resource is distributed for the intended application object.
A kind of 2. method of scheduling of resource, it is characterised in that including:
When receiving the resource scheduling request of intended application object, the risk factor of server is determined;
According to the risk factor of the server, resource is distributed for the intended application object.
It is 3. according to the method described in claim 2, it is characterized in that, described when the scheduling of resource for receiving intended application object please
When asking, the step of risk factor for determining server, includes:
When receiving the resource scheduling request of intended application object, when counting the server and being in operating status, business system
First output value that system produces;And
When counting the server and being in halted state, second output value that the operation system produces;
According to first output value and second output value, the risk factor of the server is determined.
4. according to the method described in claim 3, it is characterized in that, when the statistics server is in operating status, industry
The step of first output value that business system produces, includes:
When the server is in operating status, first output value produced in preset analog service system is counted.
5. according to the method described in claim 4, it is characterized in that, when the statistics server is in halted state, institute
The step of second output value for stating operation system generation, includes:
Obtain the one or more application object disposed on the server;
When one or more of applications are in halted state, count and produced in the preset analog service system
Second output value.
6. according to any methods of claim 3-5, it is characterised in that described to be produced according to first output value and second
The step of value, the risk factor for determining the server, includes:
Count the first difference between first output value and second output value;
According to first difference, the risk factor of the server is determined, the risk factor is with first difference into just
Than.
7. according to the method described in claim 2, it is characterized in that, the risk factor according to the server, is described
The step of intended application object distribution resource, includes:
Find out the destination server that the risk factor is less than the first predetermined threshold value;
From the destination server, resource is distributed for the intended application object.
8. according to the method described in claim 2, it is characterized in that, further include:
Determine the risk factor of application.
9. according to the method described in claim 8, it is characterized in that, the step of risk factor of the definite application wrap
Include:
When the application is in operating status, the 3rd output value produced in preset analog service system is counted;With
And
When the application is in halted state, the 4th production produced in the preset analog service system is counted
Value;
According to the 3rd output value and the 4th output value, the risk factor of the application is determined.
10. according to the method described in claim 9, it is characterized in that, described according to the 3rd output value and the 4th output value, determine
The step of risk factor of the application, includes:
Count the second difference between the 3rd output value and the 4th output value;
According to second difference, determine the risk factor of the application, the risk factor and second difference into
Direct ratio.
11. according to any methods of claim 8-10, it is characterised in that described when the money for receiving intended application object
During the dispatch request of source, the step of risk factor for determining server, includes:
When receiving the resource scheduling request of intended application object, the one or more application disposed on the server is obtained
Object;
Count the sum of described second difference of one or more of applications;
According to the sum of described second difference, determine the risk factor of the server, the risk factor of the server with it is described
The sum of second difference is directly proportional.
A kind of 12. device of scheduling of resource, it is characterised in that including:
Risk server determining module, for when receiving the resource scheduling request of intended application object, determining server
Risk factor;
Distribution module, for the risk factor according to the server, resource is distributed for the intended application object.
13. device according to claim 12, it is characterised in that the risk server determining module includes:
First statistic submodule, for when receiving the resource scheduling request of intended application object, counting at the server
When operating status, first output value of operation system generation;
Second statistic submodule, when being in halted state for counting the server, the second production of the operation system generation
Value;
Risk server determination sub-module, for according to first output value and second output value, determining the risk of the server
Coefficient.
14. device according to claim 13, it is characterised in that first statistic submodule includes:
First statistic unit, for when the server is in operating status, counting and being produced in preset analog service system
The first raw output value.
15. device according to claim 14, it is characterised in that second statistic submodule includes:
Application acquiring unit, for obtaining the one or more application object disposed on the server;
Second statistic unit, for when one or more of applications are in halted state, counting described preset
Second output value produced in analog service system.
16. according to any devices of claim 13-15, it is characterised in that the risk server determination sub-module bag
Include:
First difference statistic unit, for counting the first difference between first output value and second output value;
Risk server determination unit, for according to first difference, determining the risk factor of the server, the risk
Coefficient is directly proportional to first difference.
17. device according to claim 12, it is characterised in that the distribution module includes:
Submodule is searched, the destination server of the first predetermined threshold value is less than for finding out the risk factor;
Distribution sub module, for from the destination server, resource to be distributed for the intended application object.
18. device according to claim 12, it is characterised in that further include:
Application risk determining module, for determining the risk factor of application.
19. device according to claim 18, it is characterised in that the application risk determining module includes:
3rd statistic submodule, for when the application is in operating status, counting in preset analog service system
3rd output value of middle generation;
4th statistic submodule, for when the application is in halted state, counting in the preset analog service
The 4th output value produced in system;
Application risk determination sub-module, for according to the 3rd output value and the 4th output value, determining the application
Risk factor.
20. device according to claim 19, it is characterised in that the application risk determination sub-module includes:
Second difference statistic unit, for counting the second difference between the 3rd output value and the 4th output value;
Application risk determination unit, it is described for according to second difference, determining the risk factor of the application
Risk factor is directly proportional to second difference.
21. according to any devices of claim 18-20, it is characterised in that the risk server determining module includes:
Acquisition submodule, for when receiving the resource scheduling request of intended application object, obtaining and being disposed on the server
One or more application object;
The sum of statistic submodule, second difference for counting one or more of applications;
Determination sub-module, for according to the sum of described second difference, determining the risk factor of the server, the server
Risk factor is directly proportional to the sum of second difference.
Priority Applications (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610917746.8A CN107967173A (en) | 2016-10-20 | 2016-10-20 | A kind of methods, devices and systems of scheduling of resource |
TW106127333A TWI780065B (en) | 2016-10-20 | 2017-08-11 | Method, apparatus and system for resource scheduling |
PCT/CN2017/105466 WO2018072619A1 (en) | 2016-10-20 | 2017-10-10 | Resource scheduling method, device, and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610917746.8A CN107967173A (en) | 2016-10-20 | 2016-10-20 | A kind of methods, devices and systems of scheduling of resource |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107967173A true CN107967173A (en) | 2018-04-27 |
Family
ID=61996536
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610917746.8A Pending CN107967173A (en) | 2016-10-20 | 2016-10-20 | A kind of methods, devices and systems of scheduling of resource |
Country Status (3)
Country | Link |
---|---|
CN (1) | CN107967173A (en) |
TW (1) | TWI780065B (en) |
WO (1) | WO2018072619A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110881058A (en) * | 2018-09-06 | 2020-03-13 | 阿里巴巴集团控股有限公司 | Request scheduling method, device, server and storage medium |
CN113678070A (en) * | 2019-01-31 | 2021-11-19 | 摩根士丹利服务集团有限公司 | Minimize Responses through Exposure of Artificial Intelligence |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110020766A (en) * | 2018-11-21 | 2019-07-16 | 阿里巴巴集团控股有限公司 | Risk control method, device, server and storage medium |
CN112732272B (en) * | 2019-10-28 | 2024-05-28 | 阿里巴巴集团控股有限公司 | Application program publishing method and device |
CN111031140A (en) * | 2019-12-20 | 2020-04-17 | 支付宝(杭州)信息技术有限公司 | Resource settlement method and device, electronic equipment and storage medium |
CN111680835A (en) * | 2020-06-05 | 2020-09-18 | 广州汇量信息科技有限公司 | A risk prediction method, device, storage medium and electronic device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2002021348A1 (en) * | 2000-09-11 | 2002-03-14 | Charles William Douglas Blandy | A method of allocating resources |
CN103780646A (en) * | 2012-10-22 | 2014-05-07 | 中国长城计算机深圳股份有限公司 | Cloud resource scheduling method and system |
CN104345858A (en) * | 2013-08-02 | 2015-02-11 | 北京百度网讯科技有限公司 | Method and device for managing power consumption of server hardware equipment, and server |
CN105069571A (en) * | 2015-08-13 | 2015-11-18 | 中国石油化工股份有限公司 | Long-distance pipeline microcosmic performance evaluation method based on accident consequence |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100094970A1 (en) * | 2008-10-15 | 2010-04-15 | Patentvc Ltd. | Latency based selection of fractional-storage servers |
CN102289766A (en) * | 2011-07-29 | 2011-12-21 | 东北大学 | Method for scheduling grid resources based on continuous two-way auction mechanism |
TWI493933B (en) * | 2013-02-01 | 2015-07-21 | Chunghwa Telecom Co Ltd | The Dynamic Storage Configuration System and Method of Cloud Group Group Data Room |
CN106020927B (en) * | 2016-05-05 | 2018-03-16 | 中国人民解放军国防科学技术大学 | Task scheduling and the universal method of resource distribution in a kind of cloud computing system |
-
2016
- 2016-10-20 CN CN201610917746.8A patent/CN107967173A/en active Pending
-
2017
- 2017-08-11 TW TW106127333A patent/TWI780065B/en not_active IP Right Cessation
- 2017-10-10 WO PCT/CN2017/105466 patent/WO2018072619A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2002021348A1 (en) * | 2000-09-11 | 2002-03-14 | Charles William Douglas Blandy | A method of allocating resources |
CN103780646A (en) * | 2012-10-22 | 2014-05-07 | 中国长城计算机深圳股份有限公司 | Cloud resource scheduling method and system |
CN104345858A (en) * | 2013-08-02 | 2015-02-11 | 北京百度网讯科技有限公司 | Method and device for managing power consumption of server hardware equipment, and server |
CN105069571A (en) * | 2015-08-13 | 2015-11-18 | 中国石油化工股份有限公司 | Long-distance pipeline microcosmic performance evaluation method based on accident consequence |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110881058A (en) * | 2018-09-06 | 2020-03-13 | 阿里巴巴集团控股有限公司 | Request scheduling method, device, server and storage medium |
CN110881058B (en) * | 2018-09-06 | 2022-04-12 | 阿里巴巴集团控股有限公司 | Request scheduling method, device, server and storage medium |
CN113678070A (en) * | 2019-01-31 | 2021-11-19 | 摩根士丹利服务集团有限公司 | Minimize Responses through Exposure of Artificial Intelligence |
Also Published As
Publication number | Publication date |
---|---|
TWI780065B (en) | 2022-10-11 |
TW201816627A (en) | 2018-05-01 |
WO2018072619A1 (en) | 2018-04-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107967173A (en) | A kind of methods, devices and systems of scheduling of resource | |
TWI818999B (en) | Predictive model training method and device for new scenarios | |
CN109242453B (en) | Transaction method and system based on centralized settlement and block chain deposit certificate | |
US10706120B1 (en) | System and method for website experimentation | |
CN109101989B (en) | Merchant classification model construction and merchant classification method, device and equipment | |
CN109345389A (en) | A kind of resource sharing method, device and equipment | |
US20200273070A1 (en) | Systems and methods for leveraging social queuing to identify and prevent ticket purchaser simulation | |
CN110020427B (en) | Policy determination method and device | |
WO2018219285A1 (en) | Data object display method and device | |
CN109284301A (en) | Verification of data method and device | |
CN111506580B (en) | Transaction storage method based on centralized block chain type account book | |
CN110942314A (en) | Abnormal account supervision method and device | |
US11030674B2 (en) | Cognitive order processing by predicting resalable returns | |
CN107515896A (en) | A kind of resource recommendation method, device and equipment | |
CN110175880B (en) | Commodity purchasing method, commodity purchasing device, commodity purchasing equipment and storage medium | |
CN109345249B (en) | A kind of payment failure processing method and device | |
CN111488170A (en) | Method, device and equipment for updating business processing model | |
CN113297462A (en) | Data processing method, device, equipment and storage medium | |
CN111143546A (en) | Method and device for obtaining recommendation language and electronic equipment | |
CN116977088A (en) | Transaction processing method and device based on credit | |
CN106886546B (en) | Construction method and equipment of data website | |
CN109561350A (en) | The evaluation method and system of user interest degree | |
CN116384790A (en) | Evaluation method and device of service quality, storage medium and electronic equipment | |
WO2014153978A1 (en) | Methods and systems for managing suppliers and flow of goods on an ecommerce platform | |
CN105574728B (en) | A kind of Transaction Information method for tracing 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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180427 |