|
@@ -55,7 +55,7 @@ def setInstanceWeightProcess(slb_id, instance_id):
|
|
|
for i in range(1,6):
|
|
|
weight = i*20
|
|
|
setWeight(slb_id,instance_id,weight)
|
|
|
- print("当前权重: ", weight)
|
|
|
+ print("slb_id:"+slb_id+",当前权重:", weight)
|
|
|
time.sleep(5)
|
|
|
|
|
|
#设置权重 instance_id :服务器id,weight:权重值
|