软件系统的性能感知重配置
在当今的软件系统中,性能优化和资源的合理利用是至关重要的。本文将介绍一种名为 PARSY 的框架,它可以根据系统的性能需求,动态地对软件系统进行重配置,以确保系统响应时间不超过预设的阈值。
1. 组件降级和升级算法
为了实现系统的动态重配置,我们使用了两个主要的算法:组件降级算法和组件升级算法。
1.1 组件降级算法
组件降级算法的目的是在系统响应时间超过阈值时,通过降低某些组件的质量级别来减少系统的负载。以下是降级算法的伪代码:
Algorithm 1. Degrade configuration
Require: ℓ current system configuration
Require: N number of requests in the system
Require: D(k, j) service demand of component Ck operating at quality level j
Require: UT(k, j) utility of component Ck operating at quality level j
Ensure: ℓnew is the new system configuration
ℓnew ← ℓ
C ← {k | ℓnewk > 1}
{Candidate set of components which can be degraded}
while C ≠ ∅ do
B ← arg maxk{D(k, ℓnewk)/UT(k, ℓnewk) | k ∈ C}
超级会员免费看
订阅专栏 解锁全文
10万+

被折叠的 条评论
为什么被折叠?



