|
@@ -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)
|