20.01.2015 Views

Performance Modeling and Benchmarking of Event-Based ... - DVS

Performance Modeling and Benchmarking of Event-Based ... - DVS

Performance Modeling and Benchmarking of Event-Based ... - DVS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

68 CHAPTER 4. PERFORMANCE ENGINEERING OF EVENT-BASED SYSTEMS<br />

Pattern 9: R<strong>and</strong>om Load Balancer<br />

...<br />

...<br />

...<br />

Load Balancer<br />

Load<br />

Balancer<br />

T1<br />

...<br />

Consumer 1<br />

Consumer 2<br />

Consumer n<br />

T1: R<strong>and</strong>om<br />

Load Balancer<br />

<strong>Event</strong><br />

1<br />

1<br />

1 1<br />

1 1<br />

Consumer 1<br />

<strong>Event</strong><br />

Consumer 2<br />

<strong>Event</strong><br />

Consumer n<br />

<strong>Event</strong><br />

Figure 4.18: Load Balancer - R<strong>and</strong>om<br />

Characteristics<br />

• Load balancing<br />

• R<strong>and</strong>om load distribution (uniformly distributed)<br />

Example<br />

Incoming events are distributed uniformly among consumers by a load balancer. Each event is<br />

forwarded to exactly one consumer.<br />

Description<br />

Incoming events are arriving at the place Load Balancer <strong>and</strong> are forwarded (pushed) to the Consumer<br />

by transition T1. For each Consumer, an own mode in transition T1 is implemented. All<br />

these modes have the same fire weight. The events are uniformly distributed among consumers.<br />

QPN Definition<br />

Places:<br />

Place Type Description<br />

Load Balancer S Receives inc. events <strong>and</strong> forwards them to the Consumer.<br />

Consumer i S Consumes incoming events. One place for each Consumer.<br />

Colors:<br />

Color<br />

<strong>Event</strong><br />

Description<br />

Represents a published event.<br />

Transitions:<br />

Id Input Output FW Description<br />

T1 1 <strong>Event</strong> (Load Balancer) 1 <strong>Event</strong> (Consumer) 1 Forwards event to<br />

Consumer.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!