Dynamic Load Balancing in Distributed Content-based Publish/Subscribe Alex K. Y. Cheung & Hans-Arno Jacobsen University of Toronto November 30 th, 2006.

Slides:



Advertisements
Similar presentations
Dynamic Replica Placement for Scalable Content Delivery Yan Chen, Randy H. Katz, John D. Kubiatowicz {yanchen, randy, EECS Department.
Advertisements

Efficient Event-based Resource Discovery Wei Yan*, Songlin Hu*, Vinod Muthusamy +, Hans-Arno Jacobsen +, Li Zha* * Chinese Academy of Sciences, Beijing.
Alex Cheung and Hans-Arno Jacobsen August, 14 th 2009 MIDDLEWARE SYSTEMS RESEARCH GROUP.
Pastry Peter Druschel, Rice University Antony Rowstron, Microsoft Research UK Some slides are borrowed from the original presentation by the authors.
1 Cycle Detection in Publish/Subscribe Overlay Networks Reza Sherafat Alex Cheung Prof. Cristiana Amza ECE1747 – Course Project University of Toronto.
Cognitive Publish/Subscribe for Heterogeneous Clouds Šarūnas Girdzijauskas, Swedish Institute of Computer Science (SICS) Joint work with:
MIDDLEWARE SYSTEMS RESEARCH GROUP MSRG.ORG Hans-Arno Jacobsen June 23, 2011 Resource Allocation Algorithms for Publish/Subscribe Systems
Extensible Networking Platform IWAN 2005 Extensible Network Configuration and Communication Framework Todd Sproull and John Lockwood
Small-Scale Peer-to-Peer Publish/Subscribe
Transactional Mobility in Distributed Content-Based Publish/Subscribe Systems Songlin Hu*, Vinod Muthusamy +, Guoli Li +, Hans-Arno Jacobsen + * Chinese.
MIDDLEWARE SYSTEMS RESEARCH GROUP A Taxonomy for Denial of Service Attacks in Content-based Publish/Subscribe Systems Alex Wun, Alex Cheung, Hans-Arno.
SCAN: A Dynamic, Scalable, and Efficient Content Distribution Network Yan Chen, Randy H. Katz, John D. Kubiatowicz {yanchen, randy,
©NEC Laboratories America 1 Hui Zhang Samrat Ganguly Sudeept Bhatnagar Rauf Izmailov NEC Labs America Abhishek Sharma University of Southern California.
Traffic Engineering With Traditional IP Routing Protocols
Dept. of Computer Science & Engineering, CUHK1 Trust- and Clustering-Based Authentication Services in Mobile Ad Hoc Networks Edith Ngai and Michael R.
Locality-Aware Request Distribution in Cluster-based Network Servers 1. Introduction and Motivation --- Why have this idea? 2. Strategies --- How to implement?
An Authentication Service Against Dishonest Users in Mobile Ad Hoc Networks Edith Ngai, Michael R. Lyu, and Roland T. Chin IEEE Aerospace Conference, Big.
1 Introduction to Load Balancing: l Definition of Distributed systems. Collection of independent loosely coupled computing resources. l Load Balancing.
1 An Overlay Scheme for Streaming Media Distribution Using Minimum Spanning Tree Properties Journal of Internet Technology Volume 5(2004) No.4 Reporter.
Hermes: A Distributed Event- Based Middleware Architecture Peter Pietzuch and Jean Bacon 1st DEBS Workshop, Vienna,
Distributed Publish/Subscribe Network Presented by: Yu-Ling Chang.
Receiver-driven Layered Multicast Paper by- Steven McCanne, Van Jacobson and Martin Vetterli – ACM SIGCOMM 1996 Presented By – Manoj Sivakumar.
Alex King Yeung Cheung and Hans-Arno Jacobsen University of Toronto June, 24 th 2010 ICDCS 2010 MIDDLEWARE SYSTEMS RESEARCH GROUP.
Effects of Routing Computations in Content-Based Routing Networks with Mobile Data Sources Vinod Muthusamy, Milenko Petrovic, Hans-Arno Jacobsen University.
Scalable Security and Accounting Services for Content-based Publish/Subscribe Systems Himanshu Khurana NCSA, University of Illinois.
Publisher Mobility in Distributed Publish/Subscribe Systems Vinod Muthusamy, Milenko Petrovic, Dapeng Gao, Hans-Arno Jacobsen University of Toronto June.
MIDDLEWARE SYSTEMS RESEARCH GROUP Denial of Service in Content-based Publish/Subscribe Systems M.A.Sc. Candidate: Alex Wun Thesis Supervisor: Hans-Arno.
Gil EinzigerRoy Friedman Computer Science Department Technion.
Navneet Kumar Pandey 1 Stéphane Weiss 1 Roman Vitenberg 1 Kaiwen Zhang 2 Hans-Arno Jacobsen 2 2 University of Toronto 1 University of Oslo Minimizing the.
1 BitHoc: BitTorrent for wireless ad hoc networks Jointly with: Chadi Barakat Jayeoung Choi Anwar Al Hamra Thierry Turletti EPI PLANETE 28/02/2008 MAESTRO/PLANETE.
An Autonomic Framework in Cloud Environment Jiedan Zhu Advisor: Prof. Gagan Agrawal.
Higashino Lab. Maximizing User Gain in Multi-flow Multicast Streaming on Overlay Networks Y.Nakamura, H.Yamaguchi and T.Higashino Graduate School of Information.
Content-Based Routing in Mobile Ad Hoc Networks Milenko Petrovic, Vinod Muthusamy, Hans-Arno Jacobsen University of Toronto July 18, 2005 MobiQuitous 2005.
MIDDLEWARE SYSTEMS RESEARCH GROUP Middleware A Policy Management Framework for Content-based Publish/Subscribe Middleware Hans-Arno Jacobsen Department.
DISTRIBUTED EVENT AGGREGATION FOR CONTENT-BASED PUBLISH/SUBSCRIBE SYSTEMS Navneet Kumar Pandey 1 Stéphane Weiss 1 Roman Vitenberg 1 Kaiwen Zhang 2 Hans-Arno.
MIDDLEWARE SYSTEMS RESEARCH GROUP MSRG.ORG Total Order in Content-based Publish/Subscribe Systems Joint work with: Vinod Muthusamy, Hans-Arno Jacobsen.
Distributed Automatic Service Composition in Large-Scale Systems Songlin Hu*, Vinod Muthusamy +, Guoli Li +, Hans-Arno Jacobsen + * Chinese Academy of.
PhD Candidate: Alex K. Y. Cheung Supervisor: Hans-Arno Jacobsen PhD Thesis Presentation University of Toronto March 28, 2011 MIDDLEWARE SYSTEMS RESEARCH.
MIDDLEWARE SYSTEMS RESEARCH GROUP Adaptive Content-based Routing In General Overlay Topologies Guoli Li, Vinod Muthusamy Hans-Arno Jacobsen Middleware.
A Utility-based Approach to Scheduling Multimedia Streams in P2P Systems Fang Chen Computer Science Dept. University of California, Riverside
PROP: A Scalable and Reliable P2P Assisted Proxy Streaming System Computer Science Department College of William and Mary Lei Guo, Songqing Chen, and Xiaodong.
PhD Candidate: Alex K. Y. Cheung Supervisor: Hans-Arno Jacobsen PhD Thesis Presentation University of Toronto March 28, 2011 MIDDLEWARE SYSTEMS RESEARCH.
Minimal Broker Overlay Design for Content-Based Publish/Subscribe Systems Naweed Tajuddin Balasubramaneyam Maniymaran Hans-Arno Jacobsen University of.
Accommodating Bursts in Distributed Stream Processing Systems Yannis Drougas, ESRI Vana Kalogeraki, AUEB
Analysis and algorithms of the construction of the minimum cost content-based publish/subscribe overlay Yaxiong Zhao and Jie Wu
Plethora: Infrastructure and System Design. Introduction Peer-to-Peer (P2P) networks: –Self-organizing distributed systems –Nodes receive and provide.
Information-Centric Networks10b-1 Week 10 / Paper 2 Hermes: a distributed event-based middleware architecture –P.R. Pietzuch, J.M. Bacon –ICDCS 2002 Workshops.
AMQP, Message Broker Babu Ram Dawadi. overview Why MOM architecture? Messaging broker like RabbitMQ in brief RabbitMQ AMQP – What is it ?
Peer-to-Peer Result Dissemination in High-Volume Data Filtering Shariq Rizvi and Paul Burstein CS 294-4: Peer-to-Peer Systems.
Peter R Pietzuch and Jean Bacon Peer-to-Peer Overlay Networks in an Event-Based Middleware DEBS’03, San Diego, CA, USA,
1 State-of-the-art in Publish/Subscribe Middleware for Supporting Mobility Sumant Tambe EECS Preliminary Examination December 11, 2007 Vanderbilt University,
Distributed Automatic Service Composition in Large-Scale Systems Songlin Hu*, Vinod Muthusamy +, Guoli Li +, Hans-Arno Jacobsen + * Chinese Academy of.
Community Clustering in Distributed Publish/Subscribe System Wei Li 1,2,Songlin Hu 1, Jintao Li 1, Hans-Arno Jacobsen 3 1 Institute of Computing Technology,
1 Traffic Engineering By Kavitha Ganapa. 2 Introduction Traffic engineering is concerned with the issue of performance evaluation and optimization of.
Congestion Avoidance with Incremental Filter Aggregation in Content-Based Routing Networks Mingwen Chen 1, Songlin Hu 1, Vinod Muthusamy 2, Hans-Arno Jacobsen.
1 Towards Scalable Pub/Sub Systems Shuping Ji 1, Chunyang Ye 2, Jun Wei 1 and Arno Jacobsen 3 1 Chinese Academy of Sciences 2 Hainan University 3 Middleware.
Introduction to Load Balancing:
A Study of Group-Tree Matching in Large Scale Group Communications
A Framework for Object-Based Event Composition in Distributed Systems
Navneet Kumar Pandey1 Stéphane Weiss1 Roman Vitenberg1
Project Demo Mehdi Sadri Jamshid Esmaelnezhad Spring 2012
Distributed Publish/Subscribe Network
Composite Subscriptions in Content-based Pub/Sub Systems
Foundations for Highly-Available Content-based Publish/Subscribe Overlays Young Yoon, Vinod Muthusamy and Hans-Arno Jacobsen.
Small-Scale Peer-to-Peer Publish/Subscribe
Indirect Communication Paradigms (or Messaging Methods)
Indirect Communication Paradigms (or Messaging Methods)
Resource Allocation for Distributed Streaming Applications
Load Balancing in BAD Project
Presentation transcript:

Dynamic Load Balancing in Distributed Content-based Publish/Subscribe Alex K. Y. Cheung & Hans-Arno Jacobsen University of Toronto November 30 th, 2006 Middleware 2006 MIDDLEWARE SYSTEMS RESEARCH GROUP

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © 2006 by Alex K. Y. Cheung Middleware Overview Introduction  Background  Motivation Contributions  Load Balancing Framework  Load Estimation Experiments  Setup Conclusions  Future Work  Goals  Related Work  3 Offload Algorithms  Results

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © 2006 by Alex K. Y. Cheung Middleware Background on Distributed Pub/Sub subscriber stock = ‘YHOO’ price > $35.00 subscriber stock = ‘YHOO’ price > $30.00 publisher stock = ‘YHOO’ price = $40.00 publisher stock = ‘GM’ price = $20.00 broker multicast

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © 2006 by Alex K. Y. Cheung Middleware Motivation A distributed content-based publish/subscribe system offers: 1.Loosely coupled data sources and sinks 2.Flexible routing based on message content 3.Comprised of a distributed broker overlay network Main focus: online games, decentralized workflow execution, and real-time monitoring systems Real-world usage patterns are never evenly distributed:  Performance degradation  Instability and unavailability  Under-utilized resources: Reduced scalability Poor investment in resources

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © 2006 by Alex K. Y. Cheung Middleware Research Goal Develop a load balancing algorithm for distributed content-based pub/sub having these strong properties: 1.Dynamic – load balancing can be invoked anytime when overload or uneven load distribution is detected 2.Adaptive – a distinct offload algorithm designed to load balance on each type of resource 3.Heterogeneous – account for brokers with different resource capacities and subscriptions subscribing to different publication sets 4.Distributed – scalability of load balancing algorithm and the pub/sub infrastructure 5.Transparent – publishers and subscribers have no idea about load balancing

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © 2006 by Alex K. Y. Cheung Middleware Related Work Compared to Tersptra et al. [5], Meghdoot [2], and Opportunistic Overlays [1]:  Applied to dedicated broker pub/sub architecture  Accounts for heterogeneity  Unlike load sharing, the proposed solution is a dynamic load balancing algorithm that can distribute load in the absence of new node joins  Load estimation prevents overloading load-accepting brokers in load balancing  Balances 3 performance metrics simultaneously on a best-effort approach using adaptive offload algorithms input utilization ratio, matching delay and output utilization ratio  Load balancing is done by migrating subscribers

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © 2006 by Alex K. Y. Cheung Middleware Overview Introduction Contributions  Load Balancing Framework  Load Estimation  3 Offload Algorithms Experiments Conclusions

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © 2006 by Alex K. Y. Cheung Middleware Load Balancing Framework Pub Sub PEER (Padres Efficient Event Routing) clusters Promotes 2 levels of load balancing: 1.Local-level 2.Global-level cluster-head brokers edge-brokers

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © 2006 by Alex K. Y. Cheung Middleware Sub Load Balancing Framework Pub

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © 2006 by Alex K. Y. Cheung Middleware Sub Load Balancing Framework Local Load Balancing Global Load Balancing Pub offloading broker load-accepting broker

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © 2006 by Alex K. Y. Cheung Middleware Load Estimation Padres Real-time Event-to-Subscription Spectrum (PRESS)  Bit vector approach to record, compare, and estimate subscription load reduced/gained at each broker How much additional traffic does the subscription [class,=,*] introduce onto a broker already subscribed to [class,=,’SPORTS’] ?

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © 2006 by Alex K. Y. Cheung Middleware [class,=,’STOCK’], [value,>,40] [class,=,’STOCK’], [value,>,45] [class,=,’SPORTS’] [class,=,*] Load Estimation with PRESS SubscriptionsPRESS bit vector 1. [class,’STOCK’], [value,60] 2. [class,’SPORTS’] 3. [class,’STOCK’], [value,99] 4. [class,’SPORTS’], [year,04] 5. [class,’STOCK’], [value,42] Publication arrival order: To answer the question: “How much additional traffic does the subscription [class,=,*] introduce onto another broker already subscribing to [class,=,’SPORTS’] ? Answer: 3/5 of the measured total incoming traffic Assuming an incoming publication rate of 5 msg/s, then the additional publication rate is: (5 msg/s) x (3/5) = 3 msg/s

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © 2006 by Alex K. Y. Cheung Middleware Offload Algorithms Input Offload Algorithm Load balances on the input utilization ratio: input utilization ratio = incoming pub rate / max match rate Offload subscriptions that reduce the incoming publication rate of the broker Increase matching rate by reducing the matching delay through the match offload algorithm only if the broker is overloaded input queue Incoming pub/sub messages Matching Engine & Routing Tables … Load Balancer output queues Outgoing pub/sub messages PADRES broker

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © 2006 by Alex K. Y. Cheung Middleware Offload Algorithms Match Offload Algorithm Load balances on the matching delay Offload subscriptions with the lowest traffic input queue Incoming pub/sub messages Matching Engine & Routing Tables … Load Balancer output queues Outgoing pub/sub messages PADRES broker

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © 2006 by Alex K. Y. Cheung Middleware Offload Algorithms Output Offload Algorithm Load balances on the output utilization ratio output utilization ratio = output bandwidth used / total output bandwidth Offload subscriptions with the highest traffic possible. Favor subscriptions that do not increase the incoming publication rate onto the load- accepting broker input queue Incoming pub/sub messages Matching Engine & Routing Tables … Load Balancer output queues Outgoing pub/sub messages PADRES broker

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © 2006 by Alex K. Y. Cheung Middleware Load Balancing Components DETECTOR PIE MEDIATOR PIE messages OFFLOAD ALGORITHMS InputMatchOutput LOAD ESTIMATION PRESS Mediation and migration protocols Subscribers to offload Target broker Load Balancer Establish and teardown load balancing sessions between two brokers/clusters Coordinate transparent subscriber migrations Calculates the set of subscribers to offload for balancing the performance metric in question based on load information about the subscriptions and load-accepting broker Padres Real-time Event-to- Subscription Spectrum (PRESS) uses a bit vector approach to estimate load of subscriptions Triggers load balancing if overload or uneven load distribution is detected by examining the 3 performance metrics Padres Information Exchange (PIE) for exchanging load information with other brokers

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © 2006 by Alex K. Y. Cheung Middleware Overview Introduction Contributions Experiments  Setup  Results Conclusions

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © 2006 by Alex K. Y. Cheung Middleware Experiments Integrated the load balancing algorithm into PADRES [3] with 20,000 LOC Results obtained through emulation  Bandwidth, queuing, and matching delays Dataset consists of real stock quote publications obtained from Yahoo! Finance [6]  [class,'STOCK'],[symbol,'YHOO'],[open,30.25],[high,31.75],[low,30.00],[close,31.62], [volume,203400],[date,'1-May-96'] Subscription distribution: 0.20 = [class,eq,'STOCK'],[symbol,eq,'REPLACE_SYMBOL'],[high,>,REPLACE_HIGH] 0.20 = [class,eq,'STOCK'],[symbol,eq,'REPLACE_SYMBOL'],[low,<,REPLACE_LOW] 0.20 = [class,eq,'STOCK'],[symbol,eq,'REPLACE_SYMBOL'],[volume,>,REPLACE_VOLUME] 0.34 = [class,eq,'STOCK'],[symbol,eq,'REPLACE_SYMBOL'] 0.05 = [class,eq,'STOCK'],[volume,>,REPLACE_VOLUME] 0.01 = [class,eq,'STOCK']

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © 2006 by Alex K. Y. Cheung Middleware Macro Experiment Setup – Local LB B3B2 B1B4 B0 Pub 40 unique publishers Sub 2000 subscribers, 20% sink zero traffic Broker ID CPU (MHz) Memory (MB) Bandwidth (Mbps) B B B B B

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © 2006 by Alex K. Y. Cheung Middleware Local LB – Input Utilization Ratio new subscribers join converged 50% of the publishers increased their publication rate by 100%

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © 2006 by Alex K. Y. Cheung Middleware Local LB – Matching Delay converged 50% of the publishers increased their publication rate by 100% new subscribers join

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © 2006 by Alex K. Y. Cheung Middleware Local LB – Output Utilization Ratio

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © 2006 by Alex K. Y. Cheung Middleware Local LB – Subscriber Distribution

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © 2006 by Alex K. Y. Cheung Middleware Local LB – Client Perceived Delivery Delay

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © 2006 by Alex K. Y. Cheung Middleware Local LB – Input Utilization Ratio Estimation Accuracy

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © 2006 by Alex K. Y. Cheung Middleware Local LB – Press Samples on Input Utilization Ratio Estimation Accuracy

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © 2006 by Alex K. Y. Cheung Middleware Scalability on Number of Edge Brokers

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © 2006 by Alex K. Y. Cheung Middleware Scalability on Number of Clusters

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © 2006 by Alex K. Y. Cheung Middleware Summary of Other Experimental Results Load balancing effectiveness is independent of:  Number of subscribers  Distribution of zero-traffic subscribers  Number of brokers/clusters Load balancing on the input and output utilization ratios also balances their queuing delay counterparts Decreasing the detection threshold can reduce load difference between brokers at the expense of higher overhead Increasing the PIE publication frequency can decrease the convergence time in local load balancing at the expense of higher overhead

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © 2006 by Alex K. Y. Cheung Middleware Conclusions Load balancing solution for distributed content- based pub/sub that is dynamic, adaptive, distributed, transparent, and accommodates for heterogeneity Consisting of 3 key contributions:  Load balancing framework  Load estimation methodologies  3 offload algorithms Promote scalability by evenly distributing load onto the available resources

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © 2006 by Alex K. Y. Cheung Middleware Future Work Evaluation on a real-world test bed, such as PlanetLab [4] Support load balancing for cluster-head brokers Integrate load balancing with other on-going research projects in PADRES, such as composite subscriptions, historical data access, and failure recovery Self-tuning capability

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © 2006 by Alex K. Y. Cheung Middleware References [1] Y. Chen and K. Schwan, “Opportunistic overlays: Efficient content delivery in mobile ad hoc networks,” in ACM Middleware ’05 Grenoble, [2] A. Gupta, O. D. Sahin, D. Agrawal, and A. E. Abbadi, “Meghdoot: content- based publish/subscribe over p2p networks,” in Proceedings of the 5 th ACM/IFIP/USENIX international conference on Middleware. New York, NY, USA: Springer-Verlag New York, Inc., 2004, pp [3] G. Li and H.-A. Jacobsen, “Composite subscriptions in content-based publish/subscribe systems,” in ACM Middleware ’05 Grenoble, [4] PlanetLab. [Online]. Available: [5] W. W. Terpstra, S. Behnel, L. Fiege, A. Zeidler, and A. P. Buchmann, “A peer-to-peer approach to content-based publish/subscribe,” in DEBS ’03: Proceedings of the 2 nd international workshop on distributed event-based systems. New York, NY, USA: ACM Press, 2003, pp [6] Yahoo! Finance. [Online]. Available:

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © 2006 by Alex K. Y. Cheung Middleware The End Thank you

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © 2006 by Alex K. Y. Cheung Middleware Offload Strategies Poset [Carzaniga et al.01] [class,eq,*] [class,eq,’stock’][class,eq,’jobs’] [class,eq,’stock’], [name,eq,’cyber’] [class,eq,’stock’], [value,>,30] [class,eq,’jobs’], [type,eq,’engineering’]

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © 2006 by Alex K. Y. Cheung Middleware Handoff 1.Tell selected subscribers to connect to new broker 2.Subscribers issue subscription 3.Broker 2 counts down from 10 x (n-1) seconds after receiving first subscription before assuming migration is complete = subscriber [class,’SUB_CONTROL’], [command,’MIGRATE’], [IP, ], [port,1234] payload [offloadID,’e8sU27’], [population,2]

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © 2006 by Alex K. Y. Cheung Middleware Handoff Broker 2 updates its timer. 8.Broker 2 sends OK message to broker 1 when t = 0 or all subscribers are connected 9.Broker 1 tells all remaining migrating subscribers to unsubscribe from broker 1 after its processing delay 10.Subscribers unsubscribe from broker 1 Done! = subscriber OK unsubscribe

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © 2006 by Alex K. Y. Cheung Middleware Hand-off Goal:  Achieve 100% delivery ratio in migration process Solution:  Subscribers issue subscription to remote broker  Remote broker sends to original broker that it received all subscribers (guarantees subscriptions are processed by the cluster-head already)  Original broker tells the subscribers to disconnect from it after a delay: delay = (input queuing delay) + (output queuing delay) + (matching delay) To ensure publications still in waiting in the queues get delivered to the migrated subscriber

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © 2006 by Alex K. Y. Cheung Middleware Local LB – Output Utilization Ratio Estimation Accuracy

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © 2006 by Alex K. Y. Cheung Middleware Local LB – Overhead

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © 2006 by Alex K. Y. Cheung Middleware Local LB – Press Samples on Output Utilization Ratio Estimation Accuracy

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © 2006 by Alex K. Y. Cheung Middleware Macro Experiment Setup – Global LB B12 B11 B10 B22 B21 B20 B32 B31 B30 B42 B41 B40 Pub 40 Sub 2000

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © 2006 by Alex K. Y. Cheung Middleware Global LB – Input Utilization Ratio

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © 2006 by Alex K. Y. Cheung Middleware Global LB – Matching Delay

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © 2006 by Alex K. Y. Cheung Middleware Global LB – Output Utilization Ratio

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © 2006 by Alex K. Y. Cheung Middleware Global LB – Subscriber Distribution

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © 2006 by Alex K. Y. Cheung Middleware Global LB – Overhead

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © 2006 by Alex K. Y. Cheung Middleware Related Work Tersptra et al. [1]  Load sharing scheme for distributed hash table (DHT) based peer-to-peer (P2P) pub/sub involving a unique dissemination tree from each node Meghdoot [2]  Load sharing technique for DHT based P2P pub/sub  Strategically have new incoming nodes to share the matching or bandwidth load of existing node Opportunistic Overlays [3]  Load sharing as a secondary requirement to optimizing delivery path in a mobile P2P publish/subscribe environment

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © 2006 by Alex K. Y. Cheung Middleware Load Balancing Framework = Local PIE Message

MIDDLEWARE SYSTEMS RESEARCH GROUP Copyright © 2006 by Alex K. Y. Cheung Middleware Load Balancing Framework = Global PIE Message