CN109617939B - WebIDE cloud server resource allocation method based on task pre-scheduling - Google Patents

WebIDE cloud server resource allocation method based on task pre-scheduling Download PDF

Info

Publication number
CN109617939B
CN109617939B CN201811194678.2A CN201811194678A CN109617939B CN 109617939 B CN109617939 B CN 109617939B CN 201811194678 A CN201811194678 A CN 201811194678A CN 109617939 B CN109617939 B CN 109617939B
Authority
CN
China
Prior art keywords
task
webide
tasks
resource
cloud server
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.)
Active
Application number
CN201811194678.2A
Other languages
Chinese (zh)
Other versions
CN109617939A (en
Inventor
王怀军
高茜茜
李军怀
王侃
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian University of Technology
Original Assignee
Xian University of Technology
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Xian University of Technology filed Critical Xian University of Technology
Priority to CN201811194678.2A priority Critical patent/CN109617939B/en
Publication of CN109617939A publication Critical patent/CN109617939A/en
Application granted granted Critical
Publication of CN109617939B publication Critical patent/CN109617939B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • H04L41/145Network analysis or design involving simulating, designing, planning or modelling of a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • H04L41/147Network analysis or design for predicting network behaviour
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1074Peer-to-peer [P2P] networks for supporting data block transmission mechanisms

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a WebIDE cloud server resource allocation method based on task pre-scheduling, which comprises the following steps of: dividing WebIDE system tasks; step 2: constructing a task prediction model based on the Markov state transition probability matrix; and step 3: WebIDE task pre-scheduling based on a task prediction model; and 4, step 4: and (4) allocating resources of the cloud server. The method comprises the steps of classifying tasks according to the processing types of user tasks by a WebIDE system, analyzing the conversion relation among the tasks, and then constructing an operation task prediction model by using a Markov state transition probability matrix; designing a task prescheduler according to the prediction model, and prescheduling the task; and finally, carrying out cloud server resource allocation by combining task pre-scheduling and an ant colony algorithm. Experiments prove that compared with an ant colony algorithm, the method can effectively reduce task response time delay and improve the resource utilization rate of the cloud server.

Description

WebIDE cloud server resource allocation method based on task pre-scheduling
Technical Field
The invention belongs to the field of cloud server resource allocation, and particularly relates to design and implementation of a WebIDE cloud server resource allocation method based on task pre-scheduling.
Background
With the use of new technologies such as visual interaction and cloud server, and the rise of Web applications, people move locally executed applications to the cloud, and a cloud-based ide (webide) is also proposed and gradually becomes a hotspot of academic research. Many companies have begun to use webides for application development, and the mature webides now include Coding WebIDE, Cloud9, Eclipse che, and Codenvy, among others. The WebIDE system relies on a cloud server and a browser, provides visual file management and code editing for a user, and supports functions of one-stop deployment, code operation and the like in a programming environment. The cloud server is an application which relies on a server cluster and provides functions of fast computing, safe storage and the like for the outside. The method is developed on the basis of distributed computing, parallel computing, network storage and virtualization technologies. The cloud server is different from a traditional PC (personal computer) era computing and storing mode, takes a network as a central medium, and places data storage and computing in a remote cluster service center for processing. For users, the cluster service center is similar to an intangible "cloud" end. Cloud servers generally have four features: virtualization, super-scale, high reliability, on-demand service. When high concurrency of WebIDE tasks is faced, the reasonable resource allocation method of the cloud server can improve the resource utilization rate and reduce the response time of the WebIDE tasks.
As can be seen from the analysis of the existing research, the problem of cloud server resource allocation is basically researched on the premise that WebIDE tasks are determined at present. In actual resource allocation, if the arrival time, execution time and required resources of the WebIDE task can be predicted, the resource utilization rate can be significantly improved. However, in the actual application of the cloud server, a large number of dynamic factors exist, such as the dynamic arrival of the WebIDE task and the randomness of the execution time of the WebIDE task, and the factors affect the accuracy of predicting the arrival time, the execution time and the required resources of the WebIDE task by the cloud server. Therefore, in situations where the WebIDE task is undetermined, there are certain challenges to studying the cloud server resource allocation problem.
Disclosure of Invention
The invention aims to provide a WebIDE cloud server resource allocation method based on task pre-scheduling so as to solve the technical problem.
In order to achieve the purpose, the invention adopts the following technical scheme:
a WebIDE cloud server resource allocation method based on task pre-scheduling comprises the following steps:
step 1: dividing WebIDE system tasks;
step 2: constructing a task prediction model based on the Markov state transition probability matrix;
and step 3: WebIDE task pre-scheduling based on a task prediction model;
and 4, step 4: and (4) allocating resources of the cloud server.
As a further aspect of the present invention, step 1 specifically includes the following steps:
step 1.1: defining a WebIDE system task model; as shown in equation (1);
T=(DC,ATs,DIs) (1);
where DC is the function description, ATs is the set of actions taken, ATs ═ AT1,AT2,...,ATm}; DIs is a set of resource items, DIs ═ DI1,DI2,..,DIn};
Step 1.2: defining a WebIDE task granularity model; as shown in equation (2);
P={AT,DI} (2);
the AT is an action taken by a task, the DI is a resource item used by the task, and when the action and the resource item in the task granularity are the same, the actions and the resource item are considered to belong to the same task granularity;
instantiating an action set ATs and a resource item set DIs in a task model T according to the general functions of a WebIDE system, wherein the action set ATs and the resource item set DIs are respectively shown in a formula (3) and a formula (4);
ATs is { virtual machine and engineering creation, code download, online programming, code operation, code submission } (3);
(4) DIs ═ CPU, memory, compiled environment, engineering documents, code, network };
definition of TaFor tasks before division, TbIs a set of divided tasks. Then TaPartitioning into T according to task granularitybAs shown in equation (5);
Figure BDA0001828431880000031
step 1.3: determining a dependency relationship between WebIDE tasks;
according to the action set ATs instantiated by the formula (3) and the WebIDE system requirement, a front and back dependency set TY of the task action can be obtained;
Figure BDA0001828431880000032
constructing a dependency set R between the divided tasks according to the formula (5) and the formula (6);
Figure BDA0001828431880000033
step 1.4: determining a conversion model between WebIDE tasks;
analyzing the dependency set R item by item, and obtaining a task conversion model according to the running dependency relationship among tasks;
the conversion probability between tasks is described by using a two-dimensional matrix TM [5] [5], and TM [ i ] [ j ] represents the probability of converting the task i into the task j; in the transition probability matrix, a value of 0 indicates that there is no interconversion between the two tasks; the sum of each row or each column of the matrix is 1, which represents a complete system task conversion process;
different task execution indicates that the system is in different execution states;
Figure BDA0001828431880000034
the mapping between the task and the system execution state can be performed by equation (8), and thus the transition probability of the task corresponds to the transition probability of the system execution state.
As a further aspect of the present invention, step 2 specifically includes the following steps:
step 2.1: solving the state transition probability matrix by adopting a linear equation system method;
assuming that n mutually incompatible system states exist, the state i after k steps of transition is represented as SkiAs shown in formula (9), SkiThe state conversion process can be obtained by k steps of transition from any state, wherein each row of the matrix represents the state where one transition can be located;
Figure BDA0001828431880000041
for convenience of explanation, the row vector is represented as s (k) ═ sk1 sk2 ... skn]X, Y are each composed of k-1 row vectors;
X=[s(1) s(2) ... s(k-1)]T
Y=[s(2) s(3) ... s(k)]T
assuming that there is one state transition probability matrix P:
Figure BDA0001828431880000042
wherein, PijRepresenting the probability of state i transitioning to state j, state s21Is multiplied by p by the state S (1)*1Obtained, i.e. s21=S(1)·p*1State s of2nIs multiplied by p by the state S (1)*nObtained, i.e. s2n=S(1)·p*nFrom the above rule, the following linear equation set can be obtained;
Figure BDA0001828431880000051
the coefficient matrix of the linear equation set is X, the constant term vector is Y, and the above equation set is written in a matrix form XP ═ Y, and the solution is shown in equation (10):
P=X-1Y (10);
p is a solved state transition probability matrix;
step 2.2: constructing a Markov WebIDE task prediction model according to the solved state transition probability matrix;
assuming that there are 5 execution states in the system, the initial state vector of the system is:
S(0)=[S1(0),...,Sj(0),...,Sn(0)],n=5;
wherein Sj(0) Is the initial probability that the system is in state j;
the probability of the system being in the state j after k steps of transfer is Sj(k) And if so, the state vector after the k steps of transfer is as follows:
S(k)=[S1(k),...,Sj(k),...,Sn(k)],n=5;
thus, the markov-based task prediction model is:
Figure BDA0001828431880000061
where p is the probability matrix solved, S (0). p may be used when the initial state S (0) is knownkSolving the system execution state when k is obtained;
combining equations (7), (8) and (10), the solved system execution state prediction model is converted into a task prediction model, and then an initial task vector is defined as:
T(0)=[Tb1(0),...,Tbj(0),...,Tbn(0)],n=5;
the system execution state transition probability is the system task transition probability, so the task transition prediction model solved according to the system execution state prediction model is shown as the formula (11);
T(k)=T(k-1)·p=T(0)·pk (11)。
as a further aspect of the present invention, step 3 specifically includes the following steps:
step 3.1: defining a Virtual Machine (VM) task queue, and executing a task and a VM predicting task by the VM;
step 3.2: constructing a total WebIDE task queue, and accommodating all WebIDE tasks needing to be executed by a Virtual Machine (VM), including newly arrived tasks and tasks waiting for scheduling;
step 3.3: monitoring the resource use condition in the whole cloud server through a resource monitor;
step 3.4: according to the resource demand of the prediction task and the resource condition in the current cloud server, resource scheduling is carried out through a resource scheduler, and resource preparation is made for the execution of the prediction WebIDE task;
step 3.5: comparing the predicted WebIDE task with a task which belongs to the virtual machine and is to be executed in a system task queue through a task comparator;
step 3.6: and finishing the WebIDE task pre-scheduling, and taking the comparison result as the basis for adjusting the prediction model.
As a further aspect of the present invention, step 4 specifically includes the following steps:
step A: acquiring the currently executed WebIDE task, and predicting the next task by using the prediction model constructed in the step 3;
and B: calling the predicted WebIDE task into a virtual machine task queue to perform task pre-scheduling;
and C: when the predicted WebIDE task needs to be executed, the resource allocation is carried out by using an ant colony algorithm.
As a further aspect of the present invention, the specific resource allocation steps using the ant colony algorithm are as follows:
step 4.1: setting coefficients in the ant colony algorithm transfer function;
step 4.2: randomly distributing the tasks to the cloud server nodes;
step 4.3: according to a formula (12), carrying out selective transfer on the cloud server nodes;
Figure BDA0001828431880000071
among them, allowedkRepresenting the kth path of all paths through which the ant can pass at point i, and eta (i, j) represents heuristic information and is generally represented by the reciprocal of the distance between point i and point j;
step 4.4: updating the pheromone concentration of the cloud server node according to a formula (13);
Figure BDA0001828431880000072
wherein n represents the number of ants, ρ is pheromone evaporation concentration, and is defined to be greater than 0 and smaller than 1. Delta taui,jThe pheromone quantity released by the kth ant on the route of point i and point j;
step 4.5: calculating the probability of the cloud server node corresponding to the task, and adding the calculation result into the next circular queue for comparison;
step 4.6: adding 1 to the cycle number, if k is less than the total number of tasks, returning to update the pheromone according to the formula (13), and selecting to restart from the step (3);
step 4.7: and finding out an optimal solution and outputting a selection result of the cloud server node.
The invention has the beneficial effects that: according to the method, the WebIDE task prediction model is constructed through Markov, resource allocation is carried out by combining an ant colony algorithm, the response time delay of the WebIDE task is reduced, and the resource utilization rate is improved.
Drawings
Fig. 1 is a diagram of a resource allocation model of a cloud server based on task pre-scheduling according to the present invention.
FIG. 2 is a diagram of a model for transition between tasks according to the present invention.
FIG. 3 is a diagram of a task pre-scheduling model according to the present invention.
Fig. 4 is a flow chart of cloud server resource allocation according to the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely explained below with reference to the drawings in the embodiments of the present invention.
As shown in fig. 1-4, a method for allocating resources to a WebIDE cloud server based on task pre-scheduling includes the following steps:
step 1: dividing WebIDE system tasks;
step 1.1: defining a WebIDE system task model; as shown in equation (1);
T=(DC,ATs,DIs) (1);
where DC is the functional description and ATs is the set of actions taken,ATs={AT1,AT2,...,ATm}; DIs is a set of resource items, DIs ═ DI1,DI2,..,DIn};
Step 1.2: defining a WebIDE task granularity model; as shown in equation (2);
P={AT,DI} (2);
the AT is an action taken by a task, the DI is a resource item used by the task, and when the action and the resource item in the task granularity are the same, the actions and the resource item are considered to belong to the same task granularity;
instantiating an action set ATs and a resource item set DIs in a task model T according to the general functions of a WebIDE system, wherein the action set ATs and the resource item set DIs are respectively shown in a formula (3) and a formula (4);
ATs is { virtual machine and engineering creation, code download, online programming, code operation, code submission } (3);
(4) DIs ═ CPU, memory, compiled environment, engineering documents, code, network };
definition of TaFor tasks before division, TbIs a set of divided tasks. Then TaPartitioning into T according to task granularitybAs shown in equation (5);
Figure BDA0001828431880000091
step 1.3: determining a dependency relationship between WebIDE tasks;
according to the action set ATs instantiated by the formula (3) and the WebIDE system requirement, a front and back dependency set TY of the task action can be obtained;
Figure BDA0001828431880000092
constructing a dependency set R between the divided tasks according to the formula (5) and the formula (6);
Figure BDA0001828431880000093
step 1.4: determining a conversion model between WebIDE tasks;
analyzing the dependency set R item by item, and obtaining a task conversion model according to the running dependency relationship among tasks; as shown in fig. 2.
As can be seen from FIG. 2, the transition probability between tasks is described by using a two-dimensional matrix TM [5] [5], and TM [ i ] [ j ] represents the probability that task i is transformed into task j; in the transition probability matrix, a value of 0 indicates that there is no interconversion between the two tasks; the sum of each row or each column of the matrix is 1, which represents a complete system task conversion process;
different task execution indicates that the system is in different execution states;
Figure BDA0001828431880000101
the mapping between the task and the system execution state can be performed by equation (8), and thus the transition probability of the task corresponds to the transition probability of the system execution state.
Step 2: constructing a task prediction model based on the Markov state transition probability matrix;
step 2.1: solving the state transition probability matrix by adopting a linear equation system method;
assuming that n mutually incompatible system states exist, the state i after k steps of transition is represented as SkiAs shown in formula (9), SkiThe state conversion process can be obtained by k steps of transition from any state, wherein each row of the matrix represents the state where one transition can be located;
Figure BDA0001828431880000102
for convenience of explanation, the row vector is represented as s (k) ═ sk1 sk2 ... skn]X, Y are each composed of k-1 row vectors;
X=[s(1) s(2) ... s(k-1)]T
Y=[s(2) s(3) ... s(k)]T
assuming that there is one state transition probability matrix P:
Figure BDA0001828431880000111
wherein, PijRepresenting the probability of state i transitioning to state j, state s21Is multiplied by p by the state S (1)*1Obtained, i.e. s21=S(1)·p*1State s of2nIs multiplied by p by the state S (1)*nObtained, i.e. s2n=S(1)·p*nFrom the above rule, the following linear equation set can be obtained;
Figure BDA0001828431880000112
the coefficient matrix of the linear equation set is X, the constant term vector is Y, and the above equation set is written in a matrix form XP ═ Y, and the solution is shown in equation (10):
P=X-1Y (10);
p is a solved state transition probability matrix;
step 2.2: constructing a Markov WebIDE task prediction model according to the solved state transition probability matrix;
assuming that there are 5 execution states in the system, the initial state vector of the system is:
S(0)=[S1(0),...,Sj(0),...,Sn(0)],n=5;
wherein Sj(0) Is the initial probability that the system is in state j;
the probability of the system being in the state j after k steps of transfer is Sj(k) And if so, the state vector after the k steps of transfer is as follows:
S(k)=[S1(k),...,Sj(k),...,Sn(k)],n=5;
thus, the markov-based task prediction model is:
Figure BDA0001828431880000121
where p is the probability matrix solved, S (0). p may be used when the initial state S (0) is knownkSolving the system execution state when k is obtained;
combining equations (7), (8) and (10), the solved system execution state prediction model is converted into a task prediction model, and then an initial task vector is defined as:
T(0)=[Tb1(0),...,Tbj(0),...,Tbn(0)],n=5;
the system execution state transition probability is the system task transition probability, so the task transition prediction model solved according to the system execution state prediction model is shown as the formula (11);
T(k)=T(k-1)·p=T(0)·pk (11)。
and step 3: WebIDE task pre-scheduling based on a task prediction model;
assuming that a VM task queue of a virtual machine refers to a specific virtual machine task queue, a task being executed on the virtual machine is called a "VM execution task"; the predicted next task that should be executed on the virtual machine is called a "VM predicted task"; during the execution of the "VM execute task", the next task actually triggered by the user is called "VM task 1, VM …", and is stored in the system task queue to be called for execution.
Step 3.1: and predicting the next task according to the currently executed task in the task queue. The prediction result is a 'VM prediction task' in the graph 3, and the prediction task is transferred into a virtual machine task queue to be used as a task to be executed;
and 3.2, acquiring resource data required by the execution of the historical task similar to the 'VM predicted task', and taking the resource data as the resource data required by the execution of the 'VM predicted task'. The resource scheduler adjusts resources according to resource data required by the VM prediction task and resource monitoring data of the resource monitor, and prepares resources for executing the VM prediction task;
step 3.3: comparing the 'VM prediction task' with 'VM task 1' in a system task queue by using a task comparator, if the tasks are the same, indicating that the prediction is accurate, directly calling and executing the 'VM prediction task', if the tasks are different, indicating that the prediction is wrong, abandoning the 'VM prediction task', and calling and executing the 'VM task 1' in the system task queue to a VM virtual machine task queue.
According to the task pre-scheduling process, the task prediction is carried out on the premise of ensuring the prediction accuracy, so that the next task can enter the virtual machine task queue in advance to wait for execution, and the cloud server resource scheduling can be carried out according to the predicted task in advance to prepare resources for the next task execution.
And 4, step 4: and (4) allocating resources of the cloud server.
And combining the ant colony algorithm with task pre-scheduling to realize cloud server resource allocation. The specific resource allocation flow is shown in fig. 4. The steps are as follows.
Step 4.1: setting coefficients in the ant colony algorithm transfer function;
step 4.2: randomly distributing the tasks to the cloud server nodes;
step 4.3: according to a formula (12), carrying out selective transfer on the cloud server nodes;
Figure BDA0001828431880000141
among them, allowedkRepresenting the kth path of all paths through which the ant can pass at point i, and eta (i, j) represents heuristic information and is generally represented by the reciprocal of the distance between point i and point j;
step 4.4: updating the pheromone concentration of the cloud server node according to a formula (13);
Figure BDA0001828431880000142
wherein n represents the number of ants, ρ is pheromone evaporation concentration, and is greater than0 is less than 1. Delta taui,jThe pheromone quantity released by the kth ant on the route of point i and point j;
step 4.5: calculating the probability of the cloud server node corresponding to the task, and adding the calculation result into the next circular queue for comparison;
step 4.6: adding 1 to the cycle number, if k is less than the total number of tasks, returning to update the pheromone according to the formula (13), and selecting to restart from the step (3);
step 4.7: and finding out an optimal solution and outputting a selection result of the cloud server node.
The method comprises the steps of classifying tasks according to the processing types of user tasks by a WebIDE system, analyzing the conversion relation among the tasks, and then constructing an operation task prediction model by using a Markov state transition probability matrix; designing a task prescheduler according to the prediction model, and prescheduling the task; and finally, carrying out cloud server resource allocation by combining task pre-scheduling and an ant colony algorithm. Experiments prove that compared with an ant colony algorithm, the method can effectively reduce task response time delay and improve the resource utilization rate of the cloud server.
The foregoing is a preferred embodiment of the present invention, and it will be apparent to those skilled in the art that variations, modifications, substitutions and alterations can be made in the embodiment without departing from the principles and spirit of the invention.

Claims (3)

1. A WebIDE cloud server resource allocation method based on task pre-scheduling is characterized by comprising the following steps:
step 1: dividing WebIDE system tasks;
step 2: constructing a task prediction model based on the Markov state transition probability matrix;
and step 3: WebIDE task pre-scheduling based on a task prediction model;
and 4, step 4: resource allocation of a cloud server;
the step 1 specifically comprises the following steps:
step 1.1: defining a WebIDE system task model; as shown in equation (1);
T=(DC,ATs,DIs) (1);
where DC is the function description, ATs is the set of actions taken, ATs ═ AT1,AT2,...,ATm}; DIs is a set of resource items, DIs ═ DI1,DI2,..,DIn};
Step 1.2: defining a WebIDE task granularity model; as shown in equation (2);
P={AT,DI} (2);
the AT is an action taken by a task, the DI is a resource item used by the task, and when the action and the resource item in the task granularity are the same, the actions and the resource item are considered to belong to the same task granularity;
instantiating an action set ATs and a resource item set DIs in a task model T according to the general functions of a WebIDE system, wherein the action set ATs and the resource item set DIs are respectively shown in a formula (3) and a formula (4);
ATs is { virtual machine and engineering creation, code download, online programming, code operation, code submission } (3);
(4) DIs ═ CPU, memory, compiled environment, engineering documents, code, network };
definition of TaFor tasks before division, TbFor a set of divided tasks, then TaPartitioning into T according to task granularitybAs shown in equation (5);
Figure FDA0003048865040000021
step 1.3: determining a dependency relationship between WebIDE tasks;
according to the action set ATs instantiated by the formula (3) and the WebIDE system requirement, a front and back dependency set TY of the task action can be obtained;
Figure FDA0003048865040000022
constructing a dependency set R between the divided tasks according to the formula (5) and the formula (6);
Figure FDA0003048865040000023
step 1.4: determining a conversion model between WebIDE tasks;
analyzing the dependency set R item by item, and obtaining a task conversion model according to the running dependency relationship among tasks;
the conversion probability between tasks is described by using a two-dimensional matrix TM [5] [5], and TM [ i ] [ j ] represents the probability of converting the task i into the task j; in the transition probability matrix, a value of 0 indicates that there is no interconversion between the two tasks; the sum of each row or each column of the matrix is 1, which represents a complete system task conversion process;
different task execution indicates that the system is in different execution states;
Figure FDA0003048865040000024
the mapping between the task and the system execution state can be performed by equation (8), and thus the transition probability of the task corresponds to the transition probability of the system execution state.
2. The method for allocating resources to the WebIDE cloud server based on task pre-scheduling as claimed in claim 1, wherein step 3 specifically comprises the steps of:
step 3.1: defining a Virtual Machine (VM) task queue, and executing a task and a VM predicting task by the VM;
step 3.2: constructing a total WebIDE task queue, and accommodating all WebIDE tasks needing to be executed by a Virtual Machine (VM), including newly arrived tasks and tasks waiting for scheduling;
step 3.3: monitoring the resource use condition in the whole cloud server through a resource monitor;
step 3.4: according to the resource demand of the prediction task and the resource condition in the current cloud server, resource scheduling is carried out through a resource scheduler, and resource preparation is made for the execution of the prediction WebIDE task;
step 3.5: comparing the predicted WebIDE task with a task which belongs to the virtual machine and is to be executed in a system task queue through a task comparator;
step 3.6: and finishing the WebIDE task pre-scheduling, and taking the comparison result as the basis for adjusting the prediction model.
3. The method for allocating the resources of the WebIDE cloud server based on the task pre-scheduling as claimed in claim 1, wherein the step 4 specifically comprises the following steps:
step A: acquiring the currently executed WebIDE task, and predicting the next task by using the prediction model constructed in the step 3;
and B: calling the predicted WebIDE task into a virtual machine task queue to perform task pre-scheduling;
and C: when the predicted WebIDE task needs to be executed, the resource allocation is carried out by using an ant colony algorithm.
CN201811194678.2A 2018-10-15 2018-10-15 WebIDE cloud server resource allocation method based on task pre-scheduling Active CN109617939B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811194678.2A CN109617939B (en) 2018-10-15 2018-10-15 WebIDE cloud server resource allocation method based on task pre-scheduling

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811194678.2A CN109617939B (en) 2018-10-15 2018-10-15 WebIDE cloud server resource allocation method based on task pre-scheduling

Publications (2)

Publication Number Publication Date
CN109617939A CN109617939A (en) 2019-04-12
CN109617939B true CN109617939B (en) 2021-10-26

Family

ID=66001597

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811194678.2A Active CN109617939B (en) 2018-10-15 2018-10-15 WebIDE cloud server resource allocation method based on task pre-scheduling

Country Status (1)

Country Link
CN (1) CN109617939B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111339643B (en) * 2020-02-14 2023-04-07 抖音视界有限公司 Resource consumption evaluation method and device, electronic equipment and storage medium
CN111311006B (en) * 2020-02-21 2022-08-16 河海大学常州校区 State prediction and production energy-saving scheduling method for reentry Bernoulli production system
CN111475261A (en) * 2020-05-22 2020-07-31 长沙学院 Cloud platform elasticity measurement method and system and storage medium
CN114338694B (en) * 2022-03-04 2022-05-31 广州鹏捷科技股份有限公司 One-stop cloud data center server scheduling method and system

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8291079B1 (en) * 2008-06-04 2012-10-16 Appcelerator, Inc. System and method for developing, deploying, managing and monitoring a web application in a single environment
CN103067524A (en) * 2013-01-18 2013-04-24 浪潮电子信息产业股份有限公司 Ant colony optimization computing resource distribution method based on cloud computing environment
CN103825770A (en) * 2006-08-31 2014-05-28 国际商业机器公司 Analyzing and generating network traffic using an improved markov modulated poisson process model
CN103970609A (en) * 2014-04-24 2014-08-06 南京信息工程大学 Cloud data center task scheduling method based on improved ant colony algorithm
CN104317646A (en) * 2014-10-23 2015-01-28 西安电子科技大学 Cloud data central virtual machine scheduling method based on OpenFlow frame
CN104604201A (en) * 2012-09-07 2015-05-06 甲骨文国际公司 Infrastructure for providing cloud services
CN105373432A (en) * 2015-11-06 2016-03-02 北京系统工程研究所 Cloud computing resource scheduling method based on virtual resource state prediction
CN106055395A (en) * 2016-05-18 2016-10-26 中南大学 Method for constraining workflow scheduling in cloud environment based on ant colony optimization algorithm through deadline
CN106951059A (en) * 2017-03-28 2017-07-14 中国石油大学(华东) Based on DVS and the cloud data center power-economizing method for improving ant group algorithm

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170315801A1 (en) * 2016-04-28 2017-11-02 Netapp, Inc. Project based storage provisioning within integrated development environments

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103825770A (en) * 2006-08-31 2014-05-28 国际商业机器公司 Analyzing and generating network traffic using an improved markov modulated poisson process model
US8291079B1 (en) * 2008-06-04 2012-10-16 Appcelerator, Inc. System and method for developing, deploying, managing and monitoring a web application in a single environment
CN104604201A (en) * 2012-09-07 2015-05-06 甲骨文国际公司 Infrastructure for providing cloud services
CN103067524A (en) * 2013-01-18 2013-04-24 浪潮电子信息产业股份有限公司 Ant colony optimization computing resource distribution method based on cloud computing environment
CN103970609A (en) * 2014-04-24 2014-08-06 南京信息工程大学 Cloud data center task scheduling method based on improved ant colony algorithm
CN104317646A (en) * 2014-10-23 2015-01-28 西安电子科技大学 Cloud data central virtual machine scheduling method based on OpenFlow frame
CN105373432A (en) * 2015-11-06 2016-03-02 北京系统工程研究所 Cloud computing resource scheduling method based on virtual resource state prediction
CN106055395A (en) * 2016-05-18 2016-10-26 中南大学 Method for constraining workflow scheduling in cloud environment based on ant colony optimization algorithm through deadline
CN106951059A (en) * 2017-03-28 2017-07-14 中国石油大学(华东) Based on DVS and the cloud data center power-economizing method for improving ant group algorithm

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
CloudWorkBench – Infrastructure-as-Code Based Cloud Benchmarking;Joel Scheuner等;《2014 IEEE 6th International Conference on Cloud Computing Technology and Science》;20141231;全文 *
Code Authority Control Method Based on File Security Level and ACL in WebIDE;Junhuai Li;《2018 the International Conference of Intelligent Robotic and Control Engineering》;20180827;全文 *
基于Web的云开发平台的研究与实现;陈小军,张璟,李军怀;《系统工程与电子技术》;20111231;第33卷(第12期);全文 *

Also Published As

Publication number Publication date
CN109617939A (en) 2019-04-12

Similar Documents

Publication Publication Date Title
CN109617939B (en) WebIDE cloud server resource allocation method based on task pre-scheduling
Mishra et al. Esp: A machine learning approach to predicting application interference
Sun et al. Re-Stream: Real-time and energy-efficient resource scheduling in big data stream computing environments
Liu et al. A hierarchical framework of cloud resource allocation and power management using deep reinforcement learning
US8612987B2 (en) Prediction-based resource matching for grid environments
Safaei Real-time processing of streaming big data
Xue et al. An ACO-LB Algorithm for Task Scheduling in the Cloud Environment.
Mishra et al. A state-of-art on cloud load balancing algorithms
Chen et al. Deep learning research and development platform: Characterizing and scheduling with qos guarantees on gpu clusters
Liang et al. Data centers job scheduling with deep reinforcement learning
US9262217B1 (en) Computation resource cyclic utilization
Ward et al. Colmena: Scalable machine-learning-based steering of ensemble simulations for high performance computing
Tong et al. DDQN-TS: A novel bi-objective intelligent scheduling algorithm in the cloud environment
Devi et al. Multi-objective heuristics algorithm for dynamic resource scheduling in the cloud computing environment
Gujarati et al. Multiprocessor real-time scheduling with arbitrary processor affinities: from practice to theory
CN112000460A (en) Service capacity expansion method based on improved Bayesian algorithm and related equipment
Rajendran et al. Matrix: Many-task Computing Execution Frabic for Extreme Scales
Piao et al. Computing resource prediction for mapreduce applications using decision tree
Liu et al. Elasecutor: Elastic executor scheduling in data analytics systems
Li et al. Performance modelling and cost effective execution for distributed graph processing on configurable VMs
Bibal et al. An auto-scaling framework for heterogeneous Hadoop systems
de la Torre et al. Parallel virtual savant for the heterogeneous computing scheduling problem
Hu et al. Low latency big data processing without prior information
Nguyen Avoid deadlock resource allocation (ADRA) model V VM-out-of-N PM
Joshua Samuel Raj et al. Evolutionary Algorithm Based Task Scheduling in IoT Enabled Cloud Environment.

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
GR01 Patent grant
GR01 Patent grant