Added debug logging to the OTF algorithm
This commit is contained in:
parent
7890097856
commit
da8a4ca120
@ -85,6 +85,14 @@ def otf(otf, threshold, limit, migration_time, utilization, state):
|
|||||||
if len(utilization) < limit:
|
if len(utilization) < limit:
|
||||||
decision = False
|
decision = False
|
||||||
else:
|
else:
|
||||||
|
if log.isEnabledFor(logging.DEBUG):
|
||||||
|
log.debug('OTF overload steps:' + str(state['overload']))
|
||||||
|
log.debug('OTF overload steps:' + str(state['total']))
|
||||||
|
log.debug('OTF:' + str(state['overload'] / state['total']))
|
||||||
|
log.debug('OTF + migration time:' +
|
||||||
|
str((migration_time + state['overload']) / \
|
||||||
|
(migration_time + state['total'])))
|
||||||
|
|
||||||
decision = (migration_time + state['overload']) / \
|
decision = (migration_time + state['overload']) / \
|
||||||
(migration_time + state['total']) >= otf
|
(migration_time + state['total']) >= otf
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user