Documente Academic
Documente Profesional
Documente Cultură
74 (2014) 30873097
highlights
article
info
Article history:
Received 16 June 2013
Received in revised form
9 July 2014
Accepted 29 July 2014
Available online 7 August 2014
Keywords:
Cloud computing
Resource trading
Social welfare
Envy-free
Hypergraph
abstract
In this paper, we investigate the resource trading problem in a community-based cloud computing setting
where multiple tenants communicate in a peer-to-peer (P2P) fashion. Enabling resource trading in a
community cloud unleashes the untapped cloud resources, thus presents a flexible solution for managing
resource allocation. However, finding an efficient and fair resource allocation is challenging mainly due
to the heterogeneity of tenants. Our work first develops a market-oriented model to support resource
negotiation and trading. Based on this model, we adopt a multiagent-based technique that allows a group
of autonomous tenants to reach an efficient and fair resource allocation. Further, when budget constraint
presents, we propose a directed hypergraph model to facilitate resource trading amongst heterogeneous
tenants. We analyze the application of the directed hypergraph model to trading decision making, and
design a series of heuristic-based resource trading protocols for both budget-unaware and budget-aware
scenarios. The performances of the proposed protocols are validated through simulations. The results are
in tune with the theoretical analysis and provide insights into practical application issues.
Published by Elsevier Inc.
1. Introduction
The ever-increasing demand for computing power motivates
recent advances in multi-core processing and high-speed networking, and drives the emergence of distributed computing platforms
that span a variety of heterogeneous devices across the Internet.
With the aid of hardware virtualization, these platforms are capable of offering rent-on-demand resource leasing services that
let end users instantly access a vast pool of resources, known as
http://dx.doi.org/10.1016/j.jpdc.2014.07.005
0743-7315/Published by Elsevier Inc.
3088
should equally address the economic aspect such that tenants receive cost-effective cloud service provisioning. While managing resource allocation is relatively straightforward in the centralized
vendor-driven model (e.g., Amazons on-demand and spot instance
pricing), it is particularly challenging due to the heterogeneity in
the multitenancy environment. In a community cloud, we are facing a free market where tenants are only incentivized to accept
profitable resource exchange. As a result, a well designed multitenancy resource trading protocol is highly desirable to effectively
regulate the management of resource allocation.
In this paper, we study the distributed resource trading problem
in a community-based cloud computing environment, and propose
a set of multitenancy resource trading protocols to jointly optimize resource allocation efficiency and fairness. Specifically, better efficiency refers to the increased aggregate valuations of all
the tenants, and better fairness is interpreted as reduced envy between every pairwise combination of tenants. Our solution follows
a market-oriented design principle, and uses a directed hypergraph model to integrate these two seemingly conflicting design
objectives into one unified resource trading framework. It directly
extends Chevaleyre et al.s work [11], and further addresses the
challenge of budget limited resource trading. With systematic
analysis of the resource trading market, a set of heuristic-based distributed resource trading protocols are developed and evaluated.
The comprehensive study presented in this paper has broad
utility in the growing world of everything-as-a-service, because it characterizes the extent to which independent and selfinterested tenants interact with each other. Our analysis shows
that incentive preserving resource exchanges tend to benefit the
system, both from a global view of the overall service efficiency
and from a local view of the improved service quality valuation.
Moreover, the proposed resource trading approaches are complementary to the vendor-driven cloud computing. For example, consider user Alice rents a virtual machine from Amazon with reserved
instance pricing. After Alice finishes her job and before the lease
expires, Alice might sublease this virtual machine to user Bob in
order to partially compensate for her resource rental cost.
The contribution of this paper is primarily four-folded, and is
summarized as follows.
2. Related work
This paper presents distributed protocol design to jointly optimize resource trading efficiency and fairness. As the organization of distributed resource evolves towards a more hierarchical
architecture [23], distributed algorithms designed for solving
3089
P 2R satisfying: Ai Aj = , and Ai = A.
The condition of
Ai = A ensures that the final matchmaking
result is a complete allocation.
3090
have:
bti = b0i it .
Given any initial allocation, the goal of this study is to investigate to what extent efficiency and fairness can be achieved in the
multitenancy resource trading framework described above, and
to design resource trading protocols to guide tenant interactions
evolving towards system-wide efficiency and fairness. We analyze
situations with and without the budget limitation. From now on,
we label the scenario with budget constraint as budget-aware, and
refer to the later scenario as budget-unaware.
4. Budget-unaware resource trading protocol
In this section, we develop a resource trading protocol without
the presence of budget constraint. Our protocol design is based on
the multiagent-based resource allocation optimization framework
presented in [11].
4.1. Design preliminaries
By following certain payment rules, we will show that the
resource trading protocol is capable of reaching topology-wide
efficiency as well as envy-free fairness upon convergence. A
topology-wide efficient allocation is an allocation such that for every tenant, the allocation for the sub-topology consisting of that
tenant and its direct neighbors is efficient, i.e., the matchmaking achieves maximum social welfare on the sub-topology. We
introduce topology-wide efficiency because for a partially connected communication topology, a globally efficient matchmaking
is not guaranteed unless the order of resource trading is carefully
planned. This is illustrated by the example described in Fig. 2. Consider a system with three tenants and one resource initially assigned to p1 . Tenants have different valuations for this particular
resource. Communication links exist between {p1 , p2 } and {p1 , p3 }.
Both p2 and p3 envy p1 as they have higher valuation for the resource. Suppose they both propose for trade, and p1 accepts p3 s
proposal first. The final allocation is not globally efficient where
the resource should be assigned to p2 .
In the resource trading framework, each tenant completes
transactions with neighbors using only rational deals (RD), and obtains or loses resource bundle accordingly. An RD indicates that the
transaction is beneficial for pushing resources to tenants who value
them more. In fact, ANY sequence of RD executions will achieve
efficiency with regard to the underlying communication topology. This is due to the following observations: (1) RD increases
social welfare according to its definition; and (2) if no more RD is
possible, then the matchmaking must reach the maximum possible social welfare. Given modular valuation function, we have the
following proposition.
Proposition 1 (Convergence to Efficiency [17]). Any sequence of RD
involving any number of resource exchange will eventually yield to
topology-wide efficiency.
(1)
Vj (Aj ) Vj (Aj ) i,j .
By solving Eq. (1), the result of the payment function i,j falls
into the range of [Vj (Aj ) Vj (Aj ), Vi (Ai ) Vi (Ai )], which defines the
rational payment range.
4.2. A multiagent-based optimization approach for resource trading
This section introduces the theoretical foundation of our multitenancy resource trading protocol design. It is mainly based on
the theoretical framework developed by Chevaleyre et al. [11,12]
for multiagent systems. One central conclusion is that resource allocation efficiency and fairness can be simultaneously achieved in
a multiagent negotiation framework. To support this conclusion, a
proper payment function was selected to deal with the increased
social surplus (A ) (A) after each deal. In particular, a payment
function called Globally Uniform Payment Function (GUPF) was
proposed. Suppose A and A are allocations before and after an RD
execution, respectively, the GUPF is defined as follows.
[(A ) (A)]
.
(2)
n
Eq. (2) is labeled as globally uniform because this payment is
imposed on all tenants. For tenants who do not involved in the
deal, Vi (Ai ) Vi (Ai ) equals to zero, so each of them receives an
equal share of the social surplus created by the trading activity.
Note that GUPF is within the bound of rational payment (Eq. (1)), as
illustrated by the following analysis. First, it is obvious that social
surplus at least does not decrease after an RD occurs. Therefore
(A ) (A) 0. Next, we show that GUPF Vj (Aj ) Vj (Aj ).
According to the definition of social welfare we have:
GUPF : i = [Vi (Ai ) Vi (Ai )]
(A ) (A) =
Vk + Vi (Ai ) + Vj (Aj )
k=i,j
Vk + Vi (Ai ) + Vj (Aj )
k=i,j
(A ) (A)
[Vi (Ai ) Vi (Ai )] [Vj (Aj ) Vj (Aj )]
.
n
3091
i = Vi (A ) (A) .
(A )
n
(A)
n
)] to pi s balance at A leads to
(A)
= Vi (Ai ) Vi (Ai )
n
(A)
n
Therefore, after each RD, the utility of each tenant presents an
equal share of the overall social welfare.
With this invariant, we prove the following theorem. Note that
our version is slightly different from that presented in [11], as we
target at topology-wide efficiency and use a more strict assumption of modular domain.
Theorem 2 (Convergence to Efficiency and Fairness [11]). When all
valuations are modular and budget limitation is not a concern, paying
initial equitability payment at start and GUPF after each RD for every
pi P will converge to a matchmaking state that achieves both
topology-wide efficiency and envy-free fairness.
Proof. First, according to Proposition 1, when no RD is possible, the
final matchmaking A is in the topology-wide efficient state. Next,
we show that this topology-wide efficient allocation is also in the
state of envy-free fairness. Recall that two tenants having envy relationship only if there exists a communication link between them.
Now suppose pi and pj be any two tenants directly connected. According to the definition of topology-wide efficiency, transferring
pj s allocation to pi will not increase (A ). Therefore,
Vi (Ai ) + Vj (Aj ) Vi (Ai Aj ).
As valuations are modular, Vi (Ai Aj ) = Vi (Ai ) + Vi (Aj ) Vi (Ai
Aj ). Since Ai Aj = , we have:
Vj (Aj ) Vi (Aj )
Vi (Ai ) Vi (Ai )
(A )
(A )
Vi (Aj ) Vj (Aj )
.
(A )
n
(A )
n
3092
s.t.
v = (x, y, z ) V
xR
y P, and x,y = 1
z P, and y,z = 1.
(5)
e = T , h E
h = (x1 , y1 , z1 ) V
v = (x2 , y2 , z2 ) T V
y2 = z1 .
(6)
Each tenant can establish a local view of the directed hypergraph by following the procedure presented in Section 4.3.1. The
hyperarcs imply potential transactions to be negotiated. In a distributed environment, when one transaction is accomplished using an RD, resource allocation changes which might affect other
resource trading activities. Building a directed hypergraph is thus
helpful to evaluate the quality of trading selections.
When budget constraint is imposed, the convergence to the optimal matchmaking state might not exist. In this section, we develop a directed hypergraph model for community-based cloud
resource trading. A hypergraph is a generalization of the 2D graph
that an edge can connect a set of vertices. If the hypergraph is directional, an edge (a.k.a. a hyperarc) connects a hypernode (head)
with a set of hypernodes (tail set). The motivation behind the directed hypergraph model lies in its implication for one-to-many relationship. A 2D graph merely models connectivity among tenants,
but cannot represent task allocation and envy relationship among
them. A directed hypergraph is more informative, succinctly capturing the scenario that a resource is held by some tenant, but inspires more interest from some other tenants each holding a set of
resources.
We propose two matrices to build up a hyperspace. The first
matrix is an Allocation Matrix (AM). It is an m n matrix that
takes binary values, representing current resource matchmaking
state for all tenants. Each entry i,j in AM is defined as follows.
i,j =
1
0
(3)
i,j =
1
0
pi is envies pj
otherwise.
(4)
s.t.
TR = (V , ET )
ET E
(Te he ) R,
e E \ ET .
(7)
3093
(8)
(9)
The trading agent may select any payment amount within the
rational range. A tenant can set up a predefined payment policy
for the trading agent. For example, a conservative policy results
in resource acquisition with low cost, while an aggressive policy
helps funding peer tenants to conduct further trades, and might
benefit more in return. We will evaluate different payment policies
in performance evaluation. When multiple offers arrive, each
trading agent needs to carefully evaluate trading decisions with
a local view of the directed hypergraph model. This is especially
important when offers conflict with each other since the resource
can only be granted to one neighbor. In our design, each trading
Accepts offer;
Receives payments and updates local envy list
T;
3094
3095
Similarly, Fig. 9(c) and (d) show that E-BuMRT performs better in
promoting fairness. And not surprisingly, the overall profits gain is
in favor of U-BuMRT, as shown in Fig. 9(b).
6.5. Sensitivity analysis
is hardly affected by the task unit number (left of Fig. 8), it steadily
increases as system scales up (right of Fig. 8). Hence, we reach the
conclusion that the convergence rate is not dependent on the resources to be allocated, but rather affected by how many tenants
participating in the resource trading process.
6.4. Evaluation of BaMRT
Next, we add budget limitation to each node and compare the
performance of different versions of BaMRT presented in Section 5.
The node and the task unit number are set to be 20 and 800,
respectively. Based on the analysis of the average transaction
payment range, we assign each node an initial budget of 100. When
a transaction is completed, the node making payment will deduct
the corresponding amount from its balance. Conversely, its trade
partner will add the same amount to its balance. For the purpose
of fair comparison, all simulations are conducted using the same
setting (valuation functions and initial allocation). All simulations
use a same fully-connected network. The comparison results are
exhibited in Fig. 9. From these results, we draw the conclusion
that the performance of each protocol is primarily influenced by
the offer selection strategy. In V-BaMRT, the offer brings the most
social welfare growth is selected. Therefore in Fig. 9(a) we observe
that V-BaMRT leads to the highest local efficiency when converged.
3096
implemented using the Zookeeper services [21]. Zookeeper implements a Paxos state machine, and a deployment of the Zookeeper
provides services for highly reliable distributed coordination. Although BuMRT does not require RD serialization, it can still benefit
from many useful functions, e.g., atomic broadcast and leader election. Implementing BuMRT and deploy the protocol to realistic P2P
environment are part of our future research plan.
References
Fig. 10. Impact of different payment selection strategies for budget-aware case.
3097
Han Zhao is currently a senior research engineer at Qualcomm Research. He received the Ph.D. in Computer and Information Science and Engineering at University of Florida,
and the B.E. degree in Software Engineering from Jilin University, China, and the M.Sc. degree in Computer Science
from Oklahoma State University. His research interests include parallel and distributed computing, autonomic systems and P2P systems. He is a student member of ACM and
IEEE.
Xiaolin Li is Associate Professor in Department of Electrical and Computer Engineering at University of Florida.
His research interests include Parallel and Distributed Systems, CyberPhysical Systems, and Network Security. His
research has been sponsored by National Science Foundation (NSF), Department of Homeland Security (DHS), and
other funding agencies. He is an associate editor of several international journals and a program chair or co-chair
for over 10 international conferences and workshops. He
is on the executive committee of IEEE Technical Committee on Scalable Computing (TCSC) and served as a panelist
for NSF. He received a Ph.D. degree in Computer Engineering from Rutgers University, USA. He is the founding director of the Scalable Software Systems Laboratory
(http://www.s3lab.ece.ufl.edu). He received the National Science Foundation CAREER Award in 2010. He is a member of IEEE and ACM.