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