瀏覽代碼

ecs name update

supeng 7 月之前
父節點
當前提交
6fd69a37c0
共有 2 個文件被更改,包括 25 次插入1 次删除
  1. 24 0
      longvideo_config.py
  2. 1 1
      longvideo_j_create_ecs_instance.py

+ 24 - 0
longvideo_config.py

@@ -163,6 +163,30 @@ instance_config_j = {
     'tags': [{"Key": "ecs", "Value": "longvideoapi.prod"}]
 }
 
+# 机器配置_hangzhou_j
+instance_config_j_backup = {
+    # 使用的镜像信息
+    'image_id': 'm-bp12bkuvg20k6ueqmb4v',
+    # 设置实例规格
+    'instance_type': 'ecs.c6.2xlarge',
+    # 选择的交换机
+    'vswitch_id': 'vsw-bp1ssuwxyrt0p17ceeir0',
+    # 当前VPC类型的安全组
+    'security_group_id': 'sg-bp1irhrkr4vfj272hk4y',
+    # 硬盘的大小,单位:G
+    'disk_size': '200',
+    # 服务器命名
+    'instance_name': 'ESS-vlogapi-backup-[1,2]',
+    # 服务器所在区域
+    'zone_id': 'cn-hangzhou-j',
+    # 磁盘类型:云盘
+    'disk_category': 'cloud_efficiency',
+    # 密钥
+    'key_pair_name': 'stuuudy',
+    # tag
+    'tags': [{"Key": "ecs", "Value": "longvideoapi.prod"}]
+}
+
 
 
 

+ 1 - 1
longvideo_j_create_ecs_instance.py

@@ -61,7 +61,7 @@ async def ess_instance(create_client, slb_client, ess_count, max_workers):
     ess_instance_ids = utils.create_multiple_instances(
         amount=ess_count,
         client=create_client,
-        **longvideo_config.instance_config_j,
+        **longvideo_config.instance_config_j_backup,
     )
     time.sleep(60)