|
@@ -103,7 +103,7 @@ def update_instance(create_client, alb_client, instance_id, version):
|
|
|
"""
|
|
|
logging.info(f"update instance: {instance_id}")
|
|
|
# 1. 摘流量,将权重降为0
|
|
|
- health_instance_ids = [instance_id] # 这里假设只对当前实例进行操作
|
|
|
+ health_instance_ids = [instance_id]
|
|
|
weight_list = [(0, 10)] # 设置权重为0,等待10秒
|
|
|
utils.set_instance_weight_process_with_alb(alb_client,
|
|
|
longvideo_config.server_group_id_list,
|