supeng 4 달 전
부모
커밋
9297121c32
2개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 0
      longvideoapi/longvideoapi_update_k.py
  2. 1 1
      longvideoapi/utils.py

+ 1 - 0
longvideoapi/longvideoapi_update_k.py

@@ -87,6 +87,7 @@ async def ess_instance(ecs_client, alb_client, ess_count, max_workers, version,
         utils.add_servers_to_server_group(alb_client, longvideoapi_config.server_group_id_list, health_instance_ids, weight=0, port=port)
         logging.info(f"Successfully added health_instance_ids {health_instance_ids} to server groups {longvideoapi_config.server_group_id_list}.")
 
+        time.sleep(20)
         # add_weight_list = [(10, 5), (20, 5), (40, 5), (60, 5), (80, 5), (100, 5)]
         add_weight_list = [(10, 10), (20, 10), (40, 10), (60, 10), (80, 10), (100, 10)]
         utils.update_server_group_servers_attribute(alb_client,

+ 1 - 1
longvideoapi/utils.py

@@ -493,7 +493,7 @@ def update_server_group_servers_attribute(alb_client, server_group_id_list, inst
     for weight, sleep_time in weight_list:
         update_server_group_server_weight(alb_client, server_group_id_list, instance_id_list, weight, port)
         time.sleep(sleep_time)
-        check_server_group_status(alb_client, server_group_id_list)
+        # check_server_group_status(alb_client, server_group_id_list)
 
 
 def check_server_group_status(alb_client, server_group_id_list):