heyudev пре 2 година
родитељ
комит
cd869c2410
2 измењених фајлова са 3 додато и 3 уклоњено
  1. 2 2
      ess_longvideo.py
  2. 1 1
      longvideo_start.sh

+ 2 - 2
ess_longvideo.py

@@ -26,7 +26,7 @@ def longvideo_health_check(client, instance_id, max_wait_time=None):
     start_time = time.time()
     ip_address = utils.get_ip_address(client=client, instance_id=instance_id)
     while True:
-        health_check_url = f"http://{ip_address}:8182/longvideoapi/test"
+        health_check_url = f"http://{ip_address}:8080/longvideoapi/test"
         try:
             http_code = requests.get(health_check_url).status_code
         except:
@@ -88,7 +88,7 @@ async def ess_instance(create_client, slb_client, ess_count, max_workers):
     # 5. 挂载流量
     if len(health_instances) > 0:
         # 所有机器探活成功
-        time.sleep(300)
+        time.sleep(60)
         utils.add_backend_servers_with_slbs(client=slb_client,
                                             slb_id_list=longvideo_config.slb_id_list,
                                             instances=health_instances)

+ 1 - 1
longvideo_start.sh

@@ -1,3 +1,3 @@
 #!/bin/bash
 docker login --username=admin --password=Harbor12345 registry.piaoquantv.com
-docker run --cap-add=SYS_PTRACE -d -it --name vlogapi --restart=always --network host registry.piaoquantv.com/stuuudy/longvideoapi:$1
+docker run --cap-add=SYS_PTRACE -d -it --name longvideoapi --restart=always --network host registry.piaoquantv.com/stuuudy/longvideoapi:$1