Resource and Bandwidth Allocation on a Computational Grid with Tree Topology Shaoqiang Zhang, Chunyong Ding, Gang Hou College of Computer and Info. Eng., Tianjin Normal University, Tianjin 300387, China [email protected]

Abstract Grid computing systems (machines) pool together the resources of a heterogeneous collection of computing systems that are widely distributed, possibly around the globe, to create a virtual computing organization. Users can “draw” resources either from local or from remote computing resources to execute their jobs. We only consider such a system in tree networks, and study a basic allocation problem: given a set of jobs, each demanding bandwidth and a set of cumulative computing resources and yielding profits corresponding to different machines, determine which feasible subset of jobs yields the maximum total profit.

1. Introduction A computational grid is the cooperation of distributed computing systems with heterogeneous resources that are offered to users. Users submit jobs that should be efficiently processed using resources available on the grid [1]. Each resource of a computing system has a limited capacity (e.g. number of CPUs, amount of memory) and can be used again when it is released from a job. Resources can also be categorized as disjunctive or cumulative. At most one job can be processed on a disjunctive resource at any time. However, several tasks can be assigned to a cumulative resource at one time. We model each distributed computing system as a machine who is a set of cumulative resources (CPUs, memory, storage space, list of specializations) with limited capacities. The current grid systems only provide the resources such as CPU and disk units; there is no bandwidth guarantee. Many scientific simulations, as well as realtime applications like financial services, involve sustained high data transfer rates, and thus require a guaranteed application level bandwidth [2]. The bandwidth is a different type of resource: it is a link

resource, whereas the resources of each distributed computing system are node resources. In optical networks, communication is almost symmetric (bidirected). In the symmetric case, after connection is established, data are sent back and forth; we may thus consider the bi-directed networks. The famous Condor system provides an infrastructure for grid computations [3]. MW is a software framework implemented on the Condor platforms [4]. MV refers to the submitting machine as a master and the execution machine as a worker. A master packs the data defining a single job and sends the data to a worker. The worker unpacks the data, executes the job and returns the result to the master. All jobs can be weighted by a user-defined key to ensure that the most important jobs are performed first and the nearest machine to a job is employed first to execute the job. Now we consider the following natural problem in this setting: given a set of tasks, each requesting bandwidth and a set of cumulative resources and yielding a profit corresponding to each machine, determine which subset of jobs and subset of appointed machines yield the maximum total profit. Here we will only study the off-line version of the problem in tree networks, leaving the online case as a future direction. Kothari et al [2] have studied a similar bandwidthconstrained allocation problem, in which the computing resources are expressed in a common unit and the resources of more than one machine are allowed to contribute to a single job. In this paper, we express the computing resources on each machine as a set and a single job is executed on only one machine.

2. Preliminaries A tree is a connected graph that contains no cycles. We model such a grid system as an undirected rooted tree T = (V , E ) with node set V and edge set E, where each undirected edge (u, v) ∈ E has a bandwidth B(u, v) .

In the tree, each leaf corresponds to a machine and each non-leaf node (including the root) corresponds to a router which is used to dispatch the transmitting data. Let M = {M 1 , M 2 ,..., M m } denote the leaf set (i.e. the machine set), where each Mi has r cumulative computing resources R = {R1 , R2 ,..., Rr } . Define a resource matrix Γ = (γ ij ) m× r , where γ ij is the amount of

For a tree, the diameter of a tree is the maximum length (number of edges) of a simple path in the tree. A tree with diameter two is called a star; it consists of a central node and an arbitrary number of nodes that are adjacent to the central node but not to each other. In order to study the allocation problem in tree networks, we first consider the problem restricted to the star topology.

the resource Rj reserved for grid computing on machine Mi. We are given a set of k jobs, J = {J1 , J 2 ,..., J k } . For each machine Mi,

3. Allocation for star topology

let J i denote the subset of jobs submitted from Mi. For each job Ji we define a vector Ci = {ci1 , ci 2 ,..., cir } and a number bi , where cij is the amount of the resource R j needed by J i and bi is the bandwidth needed by J i . An index set of jobs Li is feasible to the resources on the machine Mi if none of the resource capacities contributed to Li are violated, that is, Σl∈Li clj ≤ γ ij for all j = 1,..., r . An index set of jobs J (u, v) is feasible to the bandwidth of the link (u,v) if the bandwidth reserved for J (u, v) is not violated, that is, Σ i∈J ( u , v ) bi ≤ B (u , v) . Otherwise, the links that reserve

Without the bandwidth constraint, the allocation problem in the grid computing can be formulated as an Integer Programming (IP). Here is the IP formulation ⎧Max ∑ mj =1 ∑ ik=1 wij xij ⎪ ⎪Subject to: ⎪ k ∀M j ∈ M ; ∀Rt ∈ R ; (1) ⎨∑ i =1 cit xij ≤ γ jt , ⎪ m ∀J i ∈ J ; ⎪∑ j =1 xij ≤ 1, ⎪ x ∈ {0,1}, ∀J i ∈ J ; ∀M j ∈ M. ⎩ ij Note that the first constraint ∑ ik=1 cit xit ≤ γ jt denotes

the amount of the resource Rt needed by the jobs processed on the machine Mj can not exceed γ jt ; the second constraint ∑ mj=1 xij ≤ 1 denotes that the job Ji

bandwidth bi for a feasible job Ji must constitute a path from the submitting machine (master) to the execution machine (worker). In order to ensure that the most important jobs are performed first, we define a profit pi for each job Ji to signify the importance of the job. If each machine has exactly one computing resource and there is no bandwidth constraint in networks, the allocation problem is the well-known Multiple Knapsack problem: the machines are knapsacks, each job is an item, and the resource amount needed by each job is the size of the corresponding item. Chekuri and Khanna [5] have given a polynomial-time approximation scheme (PTAS) for the problem. Notice that besides signifying the importance of a job, a profit should reflect other natural preferences, e.g., a local job has a greater profit than a global one. We define a profit matrix P = ( wij ) k × m , where wij is the

can be executed on at most one machine. We know IP is NP-complete [6]. Therefore, the resource and bandwidth allocation problem is NP-hard. Now we consider the resource and bandwidth allocation problem in star networks. We are given a star S with a central node v and m leaves u1 , u2 ,..., um , where the node u j represents the machine M j ,

profit of the job Ji processed on the machine Mj. The goal of the allocation problem is to determine the feasible subset of jobs associated with their worker machines that yields the maximum profit. Here, we create a variable matrix X = ( xij ) k × m , where

the jobs in J j ).

each xij ∈ {0,1} . If the job Ji is assigned to the machine Mj, then xij = 1 , otherwise xij = 0 . In fact, the goal of the problem is to maximize Σ Σ wij xij . m j =1

k i =1

j = 1, 2,..., m , and v is a router. Each leaf u j is incident

on exactly one link (u j , v) with bandwidth B (u j , v) . Clearly, each link (u j , v) is only used to transmit the data of the jobs between the machine M j and the other machines. We partition the set J of jobs into m sets J 1 ,..., J m such that J j is the subset of jobs that users submit from the machine M j (i.e. M j is the master of In order to avoid violating the bandwidth for the jobs passing through each link (ui , v) , an inequality is given as follows for each link (ui , v) :



i: J i ∈J j , h:h ≠ j

bi xih +



l : J l ∉J j

bl xlj ≤ B (u j , v), ∀u j ∈ {u1 ,..., um } (2)

Notice that ∑ i:J ∈J i

b x in the inequality (2) is

j

, h:h ≠ j i ih

the bandwidth reserved for the jobs in J j but not

executed on the machine M j ; and ∑ l:J ∉J bl xlj in the

machines in Mj . Combined the inequality (3) with the

inequality (2) is the bandwidth reserved for the jobs not in J j but executed on the machine M j .

IP formulation (1), the allocation problem for tree topology can be formulated as an IP. Before calculating the IP, we have to determine the set of jobs T j and the set of machine Mj corresponding

l

j

Therefore, with the bandwidth constraint (2), the allocation problem for star topology can also be formulated as an Integer Programming.

fix a BFS (breadth-first search) order, starting from the root, on the nodes of T ; then remember T j , Mj and

4. Allocation for tree topology In this section, we consider the resource and bandwidth allocation problem on the tree T = (V , E ) . M is the set of leaves, each corresponding to a machine. In order to find feasible jobs on each link (u, v) , we must design a constraint to avoid violating the bandwidth of (u, v) . Pick a non-leaf node v arbitrarily and suppose it has s children, denoted by U v = {u1 ,..., us } . For each u j ∈ U v , if u j is not a leaf, then Mj is denoted the subset of machines who are descendants of u j , otherwise Mj is the corresponding machine. Along with each Mj , let T j denote the subset of jobs that users submit from the machines in Mj (i.e. there exists a master in Mj for each job in T j .). We know any two nodes are connected by a unique path in a tree. Clearly, if a job in T j is sent to a worker machine not in Mj , the job has to pass through the link (u j , v) inevitably. However, if a job in T j is sent to a machine in Mj , it can not pass through (u j , v) . In the same way, if a job not in T j is sent to a worker machine in Mj , it necessarily passes through the link (u j , v) ; if a job not in T j is sent to a worker machine not in Mj , it can not pass through (u j , v) . Therefore, in order to avoid violating the bandwidth of each link (u j , v) , an inequality is presented as follows for each link (u j , v) :



i: J i ∈T j , h:M h ∉Mj

bi xih +



l : J l ∉T j t :M t ∈Mj

bl xlt ≤ B (u j , v), ∀u j ∈ U v , ∀v ∈ V \ M

i

j , h:M h ∉M j

(3) bi xih in the

inequality (3) is the bandwidth reserved for the jobs in T j but not executed on any machine in Mj ; and the l

j

, t :M t ∈Mj

the parents of u j recursively. How to calculate the IP? If there are a few variables in the IP, we can also use the famous branch-andbound method to solve it. In the following section we will propose an approximation algorithm by solving the linear programming (LP) relaxation of the IP.

5. A randomized algorithm with solving LP Define a function r ( p) :[0,1] → {0,1} such that

⎧1 with probability p; r ( p) = ⎨ ⎩0 with probability 1 − p. We now attempt to apply a technique named “Randomized Rounding”, which was introduced by Raghavan and Thompson [7]. Suppose each job in J has to be considered in a given order. We say a job is assigned properly to a machine if the machine reserves enough resources for it and the path from its master machine to the machine reserves enough bandwidth for it. Suppose it is now the job J i 's turn to be considered after a subset of jobs J ′ ⊂ J has been assigned properly. We say J i is feasible to a machine M j in the given order if J i is feasible to the remaining resources on the machine M j and the remaining bandwidth of each link on the path from the master machine of J i to M j . The algorithmic framework for computing the IP is shown as follows. Algorithm Randomized Rounding Input jobs J1 , J 2 ,..., J m and create an IP. ∗

Notice that the expression ∑ i:J ∈T

expression ∑ l :J ∉T

to each non-leaf node u j in the rooted tree T . We can

bl xlt in (3) is the bandwidth

reserved for the jobs not in T j but executed on the

Relax the IP to a LP, solve the LP to get solution xij . J′←∅ For i ← 1 to k For j ← 1 to m

If r ( xij∗ ) = 1 and J i is feasible to the machine M j in the index order, xij ← 1, J ′ ← J ′ ∪ {J i } ;

xil ← 1 for all l ≠ j , and break the loop, else xij ← 0 .

If Wij * > 0 xij * ← 1, xij ← 0 for all j ≠ j*,

else xij * ← 0.

6. Algorithms without solving LP We first use a natural greedy heuristic to yield an approximation algorithm. The intuition here is straightforward. Suppose each job in J has to be considered in a given order. When the job J i is considered, choose the machine that gives the most “bang for the buck” from the set of machines feasible to the job J i . That is, select the feasible machine that maximizes the profit for the job J i . We omit the greedy algorithm here. Redefine xij as a random variable such that J i is assigned to the machine M j , ⎧⎪1 xij = ⎨ otherwise. ⎪⎩0 There is a naive randomized algorithm, at each step of which the machine is chosen uniformly from the set of machines feasible to the job currently considered. We also omit the randomized algorithm here. Let W = ∑ mj =1 ∑ ik=1 wij xij . Let Pr[ A] and E[ X ] denote

the probability of an event A and the expectation of a random variable X, respectively. Compared with the greedy algorithm, the randomized algorithm mentioned above does not touch the profit. In order to considering the profit, we can make the randomized algorithm deterministic using method of conditional expectations. The derandomization of the randomized algorithm is as follows. Algorithm Derandomization For i ← 1 to k For l ← i to k Ml ← ∅ For j ← 1 to m

If J l is feasible to the machine M j in the index order, Ml ← Ml ∪ {M j } For j ← 1 to m If M j ∈ Mi Wij ← E[W | x11 ,..., x1m ,..., xi −1,1 ,..., xi −1, m , xij ← 1,

xil ← 0 for all l ≠ j ], else Wij ← 0 . j* ← arg max j Wij

We can show that E[W | x11 ,..., x1m ,..., xk1 ,..., xkm ] ≥ E[W ] , where E[W | x11 ,..., x1m ,..., xk1 ,..., xkm ] is the expected value of solution using the “Derandomization” algorithm and E[W ] the expected value of solution using the randomized algorithm. Thus, “Derandomization” is better than the randomized algorithm. The simulations of these algorithms are omitted here because of limited space. Acknowledgements The paper is partially supported by the NSF of China (60373025) and the Colleges and Universities S&T Development Funds of Tianjin Municipal Commission of Education (20051519).

References [1] J. Nabrzyski, J.M. Schopf, and J. Weglarz, Grid Resource Management: State of the Art and Future Trends, Kluwer Publishing, 2003. [2] A. Kothari, S. Suri, and Y. Zhou, “BandwidthConstrained Allocation in Grid Computing”, Proceedings of the 8th International Workshop on Algorithms and Data Structures, LNCS 2748, 2003, pp. 67-78. [3] I. Foster and C. Kesselman, The Grid: Blueprint for a New Computing Infrastructure, Morgan Kaufmann, 2003. [4] J.-P. Goux, S. Kulkarni, J.T. Linderoth, and M. Yoder, “An Enabling Framework for Master-Worker Applications on the Computational Grid”, Proceedings of the Ninth IEEE Symposium on High Performance Distributed Computing, Pittsburgh, Pennsylvania, 2000, pp. 43-50. [5] C. Chekuri and S. Khanna, “A PTAS for the Multiple Knapsack Problem”, Proceedings of the 11th Annual Symposium on Discrete Algorithms, 2000, pp. 213-222. [6] M.R. Garey and D.S. Johnson, Computers and Intractability: A Guide to the Theory of NP-Completeness, W. H. Freeman and Company, San Francisco, 1979. [7] P. Raghavan and C.D. Thompson, “Randomized Rounding: a Technique for Provably Good Algorithms and Algorithmic Proofs”, Combinatorica, 1987, 7(4), pp. 365374.

Resource and Bandwidth Allocation

Grid computing systems (machines) pool together the resources of a heterogeneous collection of computing systems that are widely distributed, possibly.

141KB Sizes 0 Downloads 248 Views

Recommend Documents

Resource and Bandwidth Allocation on a ...
Eng., Tianjin Normal University, Tianjin 300387, China [email protected]. Abstract. Grid computing systems (machines) pool together the resources of ... In the symmetric case, after connection is ..... Pittsburgh, Pennsylvania, 2000, pp. 43-50.

Land Markets, Resource Allocation, and Agricultural Productivity
Further emergence of private property during this period resulted in powerful ...... zones with the highest and lowest efficiency gain as these outliers cloud out.

Land Markets, Resource Allocation, and Agricultural Productivity
family farms are the basic unit of production and we use the detailed household-level data of ..... Notes: All variables are in log scale for the purpose of illustration. ..... fixed effect, farm productivity, and land quality, and then we obtain the

Bandwidth Allocation with Differential Pricing for ...
Jun 18, 2014 - the Internet), thereby making it easier to deploy new policies. Besides, a .... For illustration purposes and for readability, we assume arriving re- ... To accept a request r, the basic condition is to allocate. (from ur to vr) a ....

Bandwidth-Efficient WDM Channel Allocation for Four ... - IEEE Xplore
52, NO. 12, DECEMBER 2004. Bandwidth-Efficient WDM Channel Allocation for. Four-Wave Mixing-Effect Minimization. Vrizlynn L. L. Thing, P. Shum, and M. K. ...

DISTRIBUTED RESOURCE ALLOCATION IN ... - IEEE Xplore
a social forage swarming model, where the search for the most appropriate .... swarm under a general condition satisfied by almost any realistic profile. To this ...

FAIRNESS OF RESOURCE ALLOCATION IN CELLULAR NETWORKS
1. Introduction. Fairness is an important property of a resource allocation .... for wireless packet services (see e.g., [11, 12, 13]), the Gilbert-Elliot model [14, 15].

DREAM: Dynamic Resource Allocation for Software-defined ...
1. INTRODUCTION. Today's data center and enterprise networks require expensive .... services have a large number of tenants; for example, 3 million do-.

Efficient Resource Allocation under Acceptant ...
Definition A priority structure is acceptant if ∀a ∈ A, ∀S ⊂ N, | Ca(S) ... object a tentatively accepts Ca(N1 ... ∃Sa,Sb ⊂ N\{i, j, k} with Sa ∩ Sb = ∅ such that.

FAIRNESS OF RESOURCE ALLOCATION IN ...
In this Chapter, the fairness concept for resource allocation in wireless ... amount of “resource” is allocated to a flow, there is no guarantee that the allocated.

incentive-based resource allocation and control for ...
Computing services, loosely defined as the allocation and management of ... resources in service computing environments, procedures which have many ...

Fair Beamwidth Selection and Resource Allocation for ...
†School of ECE, College of Engineering, University of Tehran, Iran. ‡School of ... promising technology for supporting extremely high data rates in the next generation .... devices begin with finding the best sector-level beams through a sequence

Dynamic Resource Allocation Techniques for Half- and ...
Nov 7, 2014 - limited environments with applications to both wireline and wireless ...... approximate global knowledge by taking advantage of the clustered ...

ThinkAir: Dynamic resource allocation and parallel ...
proximately 550,000 new Android devices being activated worldwide every ..... is sent to the application server in the cloud; the phone then ..... In MobiSys, 2010.

Land Markets, Resource Allocation, and Agricultural ...
May 17, 2017 - productivity using detailed household-level micro data from Ethiopia ... degree of misallocation within households (across plots), across ..... Yes, previous analysis between farmers operating some rental land and no.

pdf-0751\media-access-control-and-resource-allocation-for-next ...
... apps below to open or edit this item. pdf-0751\media-access-control-and-resource-allocation- ... ks-springerbriefs-in-applied-sciences-and-technolo.pdf.

incentive-based resource allocation and control for ...
In this dissertation, we discuss four distinct models which address the issues ..... various features of “grid,” “utility,” and “cloud” computing, has received much re-.

Adaptive resource allocation and frame scheduling for wireless multi ...
allocation and frame scheduling concept for wireless video streaming. ... I. INTRODUCTION. Wireless multimedia communication is challenging due to the time ...

Dynamic Resource Allocation Techniques for Half- and ...
Oct 20, 2014 - Department of Electrical and Computer Engineering ... Demand for data-intensive services is increasing ... Interference must be managed.

Fair Energy Resource Allocation by Minority Game ... - Semantic Scholar
resource from electrical power-grid and renewable energy resource from solar .... Solar PV panel [1] to harvest solar energy with dependence between the ...

Delay-Sensitive Resource Allocation for Relay-Aided ...
[17] D. I. Kim, W. Choi, H. Seo, and B.-H. Kim, “Partial information relaying and relaying in 3GPP LTE,” Cooperative cellular wireless networks, p. 462, Mar. 2011.

Dynamic Resource Allocation in Hybrid Optical ...
Jun 14, 2015 - Department of Electrical and Computer Engineering,. National .... ing bandwidths for requests in Cloud and datacenter networks [15, 16]. In [15],.

Social-optimized Win-win Resource Allocation for Self-organizing Cloud
Cloud computing offers scalable and on-demand virtualized resources as a utility service over the Internet with bypassed inter-operability constraints. With VM's ...