|
@@ -112,7 +112,7 @@ def setInstanceWeightProcess(instance_id):
|
|
|
for i in range(1, 6):
|
|
|
weight = i * 20
|
|
|
setWeight(slb_id_1, instance_id, weight)
|
|
|
- time.sleep(1)
|
|
|
+ time.sleep(5)
|
|
|
|
|
|
|
|
|
def update():
|
|
@@ -155,7 +155,7 @@ def update():
|
|
|
client.containers.run(registry, detach=True, cap_add='SYS_PTRACE', network_mode='host', name=apps,
|
|
|
volumes={'/datalog/': {'bind': '/datalog/', 'mode': 'rw'}})
|
|
|
checkHealth(ipadd)
|
|
|
- time.sleep(10)
|
|
|
+ time.sleep(30)
|
|
|
print(f"{ipadd}: 权重修改中......")
|
|
|
# 修改权重
|
|
|
setInstanceWeightProcess(instance_id)
|