示例#1
0
 def incremental_rebalance_out_tasks(tm, servers, to_remove):
     return [RebalanceTaskHelper.schedule_task_helper(tm, _t, True) for _t in
     [task.RebalanceTask(servers, [], [old_server]) for old_server in to_remove]]
示例#2
0
 def add_rebalance_task(tm, servers, to_add, to_remove, monitor=True,
                        do_stop=False, progress=30):
     _t = task.RebalanceTask(servers, to_add, to_remove, do_stop=do_stop,
         progress=progress)
     return RebalanceTaskHelper.schedule_task_helper(tm, _t, monitor=monitor)
示例#3
0
 def incremental_rebalance_in_tasks(tm, servers, to_add, delay=0):
     return [RebalanceTaskHelper.schedule_task_helper(tm, _t, True, delay) for _t in
     [task.RebalanceTask(servers, [new_server], []) for new_server in to_add]]