|
@@ -117,8 +117,8 @@ def setInstanceWeightProcess(instance_id):
|
|
|
|
|
|
def restart():
|
|
|
"""重启服务"""
|
|
|
- # 等待30s,处理剩余请求
|
|
|
- time.sleep(30)
|
|
|
+ # 等待60s,处理剩余请求
|
|
|
+ time.sleep(60)
|
|
|
global success_count, finished_instance_id_list
|
|
|
apps = 'rov-server'
|
|
|
while not q2.empty():
|
|
@@ -179,7 +179,7 @@ if __name__ == '__main__':
|
|
|
# 设置slb权重为0
|
|
|
setWeight(slb_id_1, instance_id, 0)
|
|
|
q2.put(instance_id)
|
|
|
- time.sleep(2)
|
|
|
+ time.sleep(5)
|
|
|
|
|
|
# 挂流量
|
|
|
finished_instance_id_list = []
|