xuekailun 4 月之前
父節點
當前提交
545e1e20ae
共有 2 個文件被更改,包括 0 次插入5 次删除
  1. 0 1
      longvideoapi/longvideoapi_grayscale_update.py
  2. 0 4
      longvideoapi/longvideoapi_update_k.py

+ 0 - 1
longvideoapi/longvideoapi_grayscale_update.py

@@ -123,7 +123,6 @@ def update_instance(ecs_client, alb_client, instance_id, version):
         sys.exit()
 
     # 3. 发送启动脚本到机器上
-    #todo  log
     utils.send_file_to_ecs(ecs_client=ecs_client, instance_id_list=[instance_id], **longvideoapi_config.start_sh)
     logging.info(f"send start shell file finished, instance: {instance_id}")
 

+ 0 - 4
longvideoapi/longvideoapi_update_k.py

@@ -210,10 +210,6 @@ async def update_instance(ecs_client, alb_client, instance_ids, max_workers, ver
             # 所有机器探活成功
             time.sleep(10)
             health_instance_ids = [instance_id for instance_id, _ in health_instances]
-            # for server_group_id in longvideoapi_config.server_group_id_list:
-            #     for instance_id in health_instance_ids:
-            #         utils.add_servers_to_server_group(alb_client, server_group_id, instance_id, weight=0)
-            #        logging.info(f"Successfully added instance {instance_id} to server group {server_group_id}.")
 
             add_weight_list = [(10, 5), (20, 5), (40, 5), (60, 5), (80, 5), (100, 5)]
             utils.set_instance_weight_process_with_alb(alb_client,