|
@@ -65,7 +65,8 @@ def update(instance_id, port):
|
|
|
print("开始健康检查")
|
|
|
checkHealth(ipadd)
|
|
|
print("%s :权重修改中......" % (ipadd))
|
|
|
- weight_list = [(10, 5), (20, 5), (40, 5), (60, 5), (80, 5), (100, 5)]
|
|
|
+ # weight_list = [(10, 5), (20, 5), (40, 5), (60, 5), (80, 5), (100, 5)]
|
|
|
+ weight_list = [(10, 10), (20, 10), (40, 10), (60, 10), (80, 10), (100, 10)]
|
|
|
utils.update_server_group_servers_attribute(alb_client, gateway_config.server_group_id_list, instance_id_list=[instance_id], weight_list=weight_list, port=port)
|
|
|
success_count += 1
|
|
|
print("更新进度" + "%s/%s" % (success_count, total))
|