25.01.2015 Views

Cost-Based Optimization of Integration Flows - Datenbanken ...

Cost-Based Optimization of Integration Flows - Datenbanken ...

Cost-Based Optimization of Integration Flows - Datenbanken ...

SHOW MORE
SHOW LESS
  • No tags were found...

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

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

5.4 Formal Analysis<br />

Theorem 5.2. The lower bound <strong>of</strong> relative and total execution times W (P ′ , k ′ )/k ′ and<br />

W (M ′ , k ′ )/k ′ is given by W + (P ′ ) and W + (P ′ )·|M ′ |, respectively, as the costs that linearly<br />

depend on k ′ .<br />

Pro<strong>of</strong>. Recall that the execution time W (P ′ , k ′ ) is computed by<br />

W (P ′ , k ′ ) = W − (P ) + W + (P ) · k ′ , (5.15)<br />

where, W − (P ′ , k ′ ) is independent <strong>of</strong> k ′ by definition. If we now use the relative execution<br />

time W (P ′ , k ′ )/k ′ and let k ′ tend to ∞ with<br />

W (P ′ , k ′ )<br />

lim<br />

k ′ →∞<br />

lim<br />

k ′ →∞<br />

k ′ = W + (P ′ ) with W (P ′ , k ′ )<br />

k ′ = W − (P )<br />

k ′ + W + (P ) · k ′<br />

k ′<br />

W (M ′ , k ′ )<br />

k ′ = W + (P ′ ) · |M ′ |<br />

with W (M ′ , k ′ )<br />

k ′ =<br />

( W − (P ′ )<br />

k ′ + W + (P ′ ) · k ′ )<br />

k ′ · |M ′ |,<br />

(5.16)<br />

we see that W (P ′ , k ′ )/k ′ asymptotically tends to W + (P ) and thus, it represents the lower<br />

bound <strong>of</strong> the relative execution time, while the lower bound <strong>of</strong> the total execution time is<br />

W + (P ) · |M ′ |. Hence, Theorem 5.2 holds.<br />

These lower bounds are shown in Figure 5.13 and they are the reason why minimizing<br />

the total latency time leads to maximal message throughput because the additional benefit<br />

in terms <strong>of</strong> lower execution time decreases with increasing waiting time.<br />

5.4.2 Maximum Latency Constraint<br />

Beside the property <strong>of</strong> optimality with regard to the message throughput, our waiting<br />

time computation ensures that the restriction <strong>of</strong> the maximum latency constraint holds,<br />

in expectation, at the same time as well.<br />

Theorem 5.3 (S<strong>of</strong>t Guarantee <strong>of</strong> Maximum Latency). The waiting time computation<br />

ensures that—for a given fixed message rate R—the latency time <strong>of</strong> a single message<br />

T L (m i ) with m i ∈ M ′ will, in expectation, and for non-overload situations, not exceed the<br />

maximum latency constraint lc with T L (m i ) ≤ lc.<br />

Pro<strong>of</strong>. In the worst case, 1/sel distinct messages m i arrive simultaneously in the system.<br />

Hence, the highest possible latency time T L (m i ) is given by the total latency time 1/sel ·<br />

∆tw + W (P ′ , k ′ ). Due to our validity condition <strong>of</strong> ˆT L (M ′ ) ≤ lc with |M ′ | = k ′ /sel, we<br />

need to show that T L (m i ) ≤ ˆT L even for this worst case. Further, our validity condition<br />

ensures that ∆tw ≥ W (P ′ , k ′ ). Thus, we can write T L (m i ) ≤ ˆT L (∆tw · R) as<br />

1<br />

sel · ∆tw + W (P ′ , k ′ ) ≤<br />

⌈ |M ′ |<br />

k ′<br />

1<br />

sel · ∆tw ≤ |M ′ |<br />

k ′ · ∆tw.<br />

⌉<br />

· ∆tw + W (P ′ , k ′ )<br />

(5.17)<br />

If we now substitute |M ′ | by k ′ /sel (in the sense that the cardinality |M ′ | is equal to the<br />

number <strong>of</strong> partitions 1/sel times the cardinality <strong>of</strong> a partition k ′ ), we get<br />

1<br />

sel · ∆tw ≤ |M ′ |<br />

k ′ = 1 · ∆tw. (5.18)<br />

sel<br />

153

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

Saved successfully!

Ooh no, something went wrong!