tencentcloud-sdk-python-thpc 3.1.35__tar.gz → 3.1.47__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {tencentcloud_sdk_python_thpc-3.1.35 → tencentcloud_sdk_python_thpc-3.1.47}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_thpc-3.1.35 → tencentcloud_sdk_python_thpc-3.1.47}/setup.py +1 -1
- {tencentcloud_sdk_python_thpc-3.1.35 → tencentcloud_sdk_python_thpc-3.1.47}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_thpc-3.1.35 → tencentcloud_sdk_python_thpc-3.1.47}/tencentcloud/thpc/v20230321/models.py +74 -58
- {tencentcloud_sdk_python_thpc-3.1.35 → tencentcloud_sdk_python_thpc-3.1.47}/tencentcloud_sdk_python_thpc.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_thpc-3.1.47/tencentcloud_sdk_python_thpc.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_thpc-3.1.35/tencentcloud_sdk_python_thpc.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_thpc-3.1.35 → tencentcloud_sdk_python_thpc-3.1.47}/README.rst +0 -0
- {tencentcloud_sdk_python_thpc-3.1.35 → tencentcloud_sdk_python_thpc-3.1.47}/setup.cfg +0 -0
- {tencentcloud_sdk_python_thpc-3.1.35 → tencentcloud_sdk_python_thpc-3.1.47}/tencentcloud/thpc/__init__.py +0 -0
- {tencentcloud_sdk_python_thpc-3.1.35 → tencentcloud_sdk_python_thpc-3.1.47}/tencentcloud/thpc/v20211109/__init__.py +0 -0
- {tencentcloud_sdk_python_thpc-3.1.35 → tencentcloud_sdk_python_thpc-3.1.47}/tencentcloud/thpc/v20211109/errorcodes.py +0 -0
- {tencentcloud_sdk_python_thpc-3.1.35 → tencentcloud_sdk_python_thpc-3.1.47}/tencentcloud/thpc/v20211109/models.py +0 -0
- {tencentcloud_sdk_python_thpc-3.1.35 → tencentcloud_sdk_python_thpc-3.1.47}/tencentcloud/thpc/v20211109/thpc_client.py +0 -0
- {tencentcloud_sdk_python_thpc-3.1.35 → tencentcloud_sdk_python_thpc-3.1.47}/tencentcloud/thpc/v20211109/thpc_client_async.py +0 -0
- {tencentcloud_sdk_python_thpc-3.1.35 → tencentcloud_sdk_python_thpc-3.1.47}/tencentcloud/thpc/v20220401/__init__.py +0 -0
- {tencentcloud_sdk_python_thpc-3.1.35 → tencentcloud_sdk_python_thpc-3.1.47}/tencentcloud/thpc/v20220401/errorcodes.py +0 -0
- {tencentcloud_sdk_python_thpc-3.1.35 → tencentcloud_sdk_python_thpc-3.1.47}/tencentcloud/thpc/v20220401/models.py +0 -0
- {tencentcloud_sdk_python_thpc-3.1.35 → tencentcloud_sdk_python_thpc-3.1.47}/tencentcloud/thpc/v20220401/thpc_client.py +0 -0
- {tencentcloud_sdk_python_thpc-3.1.35 → tencentcloud_sdk_python_thpc-3.1.47}/tencentcloud/thpc/v20220401/thpc_client_async.py +0 -0
- {tencentcloud_sdk_python_thpc-3.1.35 → tencentcloud_sdk_python_thpc-3.1.47}/tencentcloud/thpc/v20230321/__init__.py +0 -0
- {tencentcloud_sdk_python_thpc-3.1.35 → tencentcloud_sdk_python_thpc-3.1.47}/tencentcloud/thpc/v20230321/errorcodes.py +0 -0
- {tencentcloud_sdk_python_thpc-3.1.35 → tencentcloud_sdk_python_thpc-3.1.47}/tencentcloud/thpc/v20230321/thpc_client.py +0 -0
- {tencentcloud_sdk_python_thpc-3.1.35 → tencentcloud_sdk_python_thpc-3.1.47}/tencentcloud/thpc/v20230321/thpc_client_async.py +0 -0
- {tencentcloud_sdk_python_thpc-3.1.35 → tencentcloud_sdk_python_thpc-3.1.47}/tencentcloud_sdk_python_thpc.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_thpc-3.1.35 → tencentcloud_sdk_python_thpc-3.1.47}/tencentcloud_sdk_python_thpc.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_thpc-3.1.35 → tencentcloud_sdk_python_thpc-3.1.47}/tencentcloud_sdk_python_thpc.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-thpc
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.47
|
|
4
4
|
Summary: Tencent Cloud Thpc SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.47
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-thpc',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.47,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Thpc SDK for Python',
|
|
@@ -3092,14 +3092,17 @@ class DescribeAutoScalingConfigurationRequest(AbstractModel):
|
|
|
3092
3092
|
|
|
3093
3093
|
def __init__(self):
|
|
3094
3094
|
r"""
|
|
3095
|
-
:param _ClusterId:
|
|
3095
|
+
:param _ClusterId: <p>集群ID。</p>
|
|
3096
3096
|
:type ClusterId: str
|
|
3097
|
+
:param _QueueName: <p>队列名称</p>
|
|
3098
|
+
:type QueueName: str
|
|
3097
3099
|
"""
|
|
3098
3100
|
self._ClusterId = None
|
|
3101
|
+
self._QueueName = None
|
|
3099
3102
|
|
|
3100
3103
|
@property
|
|
3101
3104
|
def ClusterId(self):
|
|
3102
|
-
r"""
|
|
3105
|
+
r"""<p>集群ID。</p>
|
|
3103
3106
|
:rtype: str
|
|
3104
3107
|
"""
|
|
3105
3108
|
return self._ClusterId
|
|
@@ -3108,9 +3111,21 @@ class DescribeAutoScalingConfigurationRequest(AbstractModel):
|
|
|
3108
3111
|
def ClusterId(self, ClusterId):
|
|
3109
3112
|
self._ClusterId = ClusterId
|
|
3110
3113
|
|
|
3114
|
+
@property
|
|
3115
|
+
def QueueName(self):
|
|
3116
|
+
r"""<p>队列名称</p>
|
|
3117
|
+
:rtype: str
|
|
3118
|
+
"""
|
|
3119
|
+
return self._QueueName
|
|
3120
|
+
|
|
3121
|
+
@QueueName.setter
|
|
3122
|
+
def QueueName(self, QueueName):
|
|
3123
|
+
self._QueueName = QueueName
|
|
3124
|
+
|
|
3111
3125
|
|
|
3112
3126
|
def _deserialize(self, params):
|
|
3113
3127
|
self._ClusterId = params.get("ClusterId")
|
|
3128
|
+
self._QueueName = params.get("QueueName")
|
|
3114
3129
|
memeber_set = set(params.keys())
|
|
3115
3130
|
for name, value in vars(self).items():
|
|
3116
3131
|
property_name = name[1:]
|
|
@@ -3128,13 +3143,13 @@ class DescribeAutoScalingConfigurationResponse(AbstractModel):
|
|
|
3128
3143
|
|
|
3129
3144
|
def __init__(self):
|
|
3130
3145
|
r"""
|
|
3131
|
-
:param _ClusterId:
|
|
3146
|
+
:param _ClusterId: <p>集群ID。</p>
|
|
3132
3147
|
:type ClusterId: str
|
|
3133
|
-
:param _ExpansionBusyTime:
|
|
3148
|
+
:param _ExpansionBusyTime: <p>任务连续等待时间,队列的任务处于连续等待的时间。单位秒。</p>
|
|
3134
3149
|
:type ExpansionBusyTime: int
|
|
3135
|
-
:param _ShrinkIdleTime:
|
|
3150
|
+
:param _ShrinkIdleTime: <p>节点连续空闲(未运行作业)时间,一个节点连续处于空闲状态时间。</p>
|
|
3136
3151
|
:type ShrinkIdleTime: int
|
|
3137
|
-
:param _QueueConfigs:
|
|
3152
|
+
:param _QueueConfigs: <p>扩容队列配置概览列表。</p>
|
|
3138
3153
|
:type QueueConfigs: list of QueueConfigOverview
|
|
3139
3154
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3140
3155
|
:type RequestId: str
|
|
@@ -3147,7 +3162,7 @@ class DescribeAutoScalingConfigurationResponse(AbstractModel):
|
|
|
3147
3162
|
|
|
3148
3163
|
@property
|
|
3149
3164
|
def ClusterId(self):
|
|
3150
|
-
r"""
|
|
3165
|
+
r"""<p>集群ID。</p>
|
|
3151
3166
|
:rtype: str
|
|
3152
3167
|
"""
|
|
3153
3168
|
return self._ClusterId
|
|
@@ -3158,7 +3173,7 @@ class DescribeAutoScalingConfigurationResponse(AbstractModel):
|
|
|
3158
3173
|
|
|
3159
3174
|
@property
|
|
3160
3175
|
def ExpansionBusyTime(self):
|
|
3161
|
-
r"""
|
|
3176
|
+
r"""<p>任务连续等待时间,队列的任务处于连续等待的时间。单位秒。</p>
|
|
3162
3177
|
:rtype: int
|
|
3163
3178
|
"""
|
|
3164
3179
|
return self._ExpansionBusyTime
|
|
@@ -3169,7 +3184,7 @@ class DescribeAutoScalingConfigurationResponse(AbstractModel):
|
|
|
3169
3184
|
|
|
3170
3185
|
@property
|
|
3171
3186
|
def ShrinkIdleTime(self):
|
|
3172
|
-
r"""
|
|
3187
|
+
r"""<p>节点连续空闲(未运行作业)时间,一个节点连续处于空闲状态时间。</p>
|
|
3173
3188
|
:rtype: int
|
|
3174
3189
|
"""
|
|
3175
3190
|
return self._ShrinkIdleTime
|
|
@@ -3180,7 +3195,7 @@ class DescribeAutoScalingConfigurationResponse(AbstractModel):
|
|
|
3180
3195
|
|
|
3181
3196
|
@property
|
|
3182
3197
|
def QueueConfigs(self):
|
|
3183
|
-
r"""
|
|
3198
|
+
r"""<p>扩容队列配置概览列表。</p>
|
|
3184
3199
|
:rtype: list of QueueConfigOverview
|
|
3185
3200
|
"""
|
|
3186
3201
|
return self._QueueConfigs
|
|
@@ -7076,47 +7091,42 @@ class QueueConfig(AbstractModel):
|
|
|
7076
7091
|
|
|
7077
7092
|
def __init__(self):
|
|
7078
7093
|
r"""
|
|
7079
|
-
:param _QueueName:
|
|
7094
|
+
:param _QueueName: <p>队列名称。</p>
|
|
7080
7095
|
:type QueueName: str
|
|
7081
|
-
:param _MinSize:
|
|
7096
|
+
:param _MinSize: <p>队列中弹性节点数量最小值。默认值:0。取值范围:0~200。</p>
|
|
7082
7097
|
:type MinSize: int
|
|
7083
|
-
:param _MaxSize:
|
|
7098
|
+
:param _MaxSize: <p>队列中弹性节点数量最大值。默认值:10。取值范围:0~200。</p>
|
|
7084
7099
|
:type MaxSize: int
|
|
7085
|
-
:param _EnableAutoExpansion:
|
|
7100
|
+
:param _EnableAutoExpansion: <p>是否开启自动扩容。</p>
|
|
7086
7101
|
:type EnableAutoExpansion: bool
|
|
7087
|
-
:param _EnableAutoShrink:
|
|
7102
|
+
:param _EnableAutoShrink: <p>是否开启自动缩容。</p>
|
|
7088
7103
|
:type EnableAutoShrink: bool
|
|
7089
|
-
:param _ImageId:
|
|
7104
|
+
:param _ImageId: <p>指定有效的<a href="https://cloud.tencent.com/document/product/213/4940">镜像</a>ID,格式形如<code>img-xxx</code>。目前仅支持公有镜和特定自定义镜像。</p>
|
|
7090
7105
|
:type ImageId: str
|
|
7091
|
-
:param _SystemDisk:
|
|
7106
|
+
:param _SystemDisk: <p>节点系统盘配置信息。若不指定该参数,则按照系统默认值进行分配。</p>
|
|
7092
7107
|
:type SystemDisk: :class:`tencentcloud.thpc.v20230321.models.SystemDisk`
|
|
7093
|
-
:param _DataDisks:
|
|
7108
|
+
:param _DataDisks: <p>节点数据盘配置信息。若不指定该参数,则默认不购买数据盘。支持购买的时候指定21块数据盘,其中最多包含1块LOCAL_BASIC数据盘或者LOCAL_SSD数据盘,最多包含20块CLOUD_BASIC数据盘、CLOUD_PREMIUM数据盘或者CLOUD_SSD数据盘。</p>
|
|
7094
7109
|
:type DataDisks: list of DataDisk
|
|
7095
|
-
:param _InternetAccessible:
|
|
7110
|
+
:param _InternetAccessible: <p>公网带宽相关信息设置。若不指定该参数,则默认公网带宽为0Mbps。</p>
|
|
7096
7111
|
:type InternetAccessible: :class:`tencentcloud.thpc.v20230321.models.InternetAccessible`
|
|
7097
|
-
:param _ExpansionNodeConfigs:
|
|
7112
|
+
:param _ExpansionNodeConfigs: <p>扩容节点配置信息。</p>
|
|
7098
7113
|
:type ExpansionNodeConfigs: list of ExpansionNodeConfig
|
|
7099
|
-
:param _DesiredIdleNodeCapacity:
|
|
7114
|
+
:param _DesiredIdleNodeCapacity: <p>队列中期望的空闲节点数量(包含弹性节点和静态节点)。默认值:0。队列中,处于空闲状态的节点小于此值,集群会扩容弹性节点;处于空闲状态的节点大于此值,集群会缩容弹性节点。</p>
|
|
7100
7115
|
:type DesiredIdleNodeCapacity: int
|
|
7101
|
-
:param _DesiredNodeCount:
|
|
7116
|
+
:param _DesiredNodeCount: <p>队列中期望的总节点数。</p>
|
|
7102
7117
|
:type DesiredNodeCount: int
|
|
7103
|
-
:param _ScaleOutRatio:
|
|
7104
|
-
如果扩容比例为50,那么每轮只会扩容当前作业负载所需的50%数量的节点。
|
|
7118
|
+
:param _ScaleOutRatio: <p>扩容比例。默认值:100。取值范围:1~100。<br>如果扩容比例为50,那么每轮只会扩容当前作业负载所需的50%数量的节点。</p>
|
|
7105
7119
|
:type ScaleOutRatio: int
|
|
7106
|
-
:param _ScaleOutNodeThreshold:
|
|
7107
|
-
当作业负载需要扩容节点数量大于此值,当前扩容轮次按照ScaleOutRatio配置的比例进行扩容。当作业负载需要扩容节点数量小于此值,当前扩容轮次扩容当前作业负载所需数量的节点。
|
|
7108
|
-
此参数配合ScaleOutRatio参数进行使用,用于比例扩容场景下,在作业负载所需节点数量较小时,加快收敛速度。
|
|
7120
|
+
:param _ScaleOutNodeThreshold: <p>比例扩容阈值。默认值:0。取值范围:0~200。<br>当作业负载需要扩容节点数量大于此值,当前扩容轮次按照ScaleOutRatio配置的比例进行扩容。当作业负载需要扩容节点数量小于此值,当前扩容轮次扩容当前作业负载所需数量的节点。<br>此参数配合ScaleOutRatio参数进行使用,用于比例扩容场景下,在作业负载所需节点数量较小时,加快收敛速度。</p>
|
|
7109
7121
|
:type ScaleOutNodeThreshold: int
|
|
7110
|
-
:param _MaxNodesPerCycle:
|
|
7122
|
+
:param _MaxNodesPerCycle: <p>每轮扩容最大节点个数。默认值:100。取值范围:1~100。</p>
|
|
7111
7123
|
:type MaxNodesPerCycle: int
|
|
7112
|
-
:param _ScaleUpMemRatio:
|
|
7113
|
-
针对场景:由于实例机型的总内存会大于实例内部的可用内存,16GB内存规格的实例,实例操作系统内的可用内存只有约14.9GB内存。假设此时提交一个需要15GB内存的作业,
|
|
7114
|
-
|
|
7115
|
-
- 当ScaleUpMemRatio=0时,会匹配到16GB内存规格的实例,但是由于操作系统内的可用内存为14.9GB小于作业所需的15GB,扩容出来的实例作业无法运行起来。
|
|
7116
|
-
- 当ScaleUpMemRatio=10时,匹配实例规格会按照15*(1+10%)=16.5GB来进行实例规格匹配,则不会匹配到16GB的实例,而是更大内存规格的实例来保证作业能够被运行起来。
|
|
7124
|
+
:param _ScaleUpMemRatio: <p>扩容过程中,作业的内存在匹配实例机型时增大比例(不会影响作业提交的内存大小,只影响匹配计算过程)。<br><br>针对场景:由于实例机型的总内存会大于实例内部的可用内存,16GB内存规格的实例,实例操作系统内的可用内存只有约14.9GB内存。假设此时提交一个需要15GB内存的作业,</p><ul><li>当ScaleUpMemRatio=0时,会匹配到16GB内存规格的实例,但是由于操作系统内的可用内存为14.9GB小于作业所需的15GB,扩容出来的实例作业无法运行起来。</li><li>当ScaleUpMemRatio=10时,匹配实例规格会按照15*(1+10%)=16.5GB来进行实例规格匹配,则不会匹配到16GB的实例,而是更大内存规格的实例来保证作业能够被运行起来。</li></ul>
|
|
7117
7125
|
:type ScaleUpMemRatio: int
|
|
7118
|
-
:param _EnhancedService:
|
|
7126
|
+
:param _EnhancedService: <p>增强服务。通过该参数可以指定是否开启云安全、腾讯云可观测平台等服务。若不指定该参数,则默认开启腾讯云可观测平台、云安全服务、自动化助手服务。</p>
|
|
7119
7127
|
:type EnhancedService: :class:`tencentcloud.thpc.v20230321.models.EnhancedService`
|
|
7128
|
+
:param _LaunchTemplateIds: <p>扩容实例模板,可以在cvm侧进行设置</p>
|
|
7129
|
+
:type LaunchTemplateIds: list of str
|
|
7120
7130
|
"""
|
|
7121
7131
|
self._QueueName = None
|
|
7122
7132
|
self._MinSize = None
|
|
@@ -7135,10 +7145,11 @@ class QueueConfig(AbstractModel):
|
|
|
7135
7145
|
self._MaxNodesPerCycle = None
|
|
7136
7146
|
self._ScaleUpMemRatio = None
|
|
7137
7147
|
self._EnhancedService = None
|
|
7148
|
+
self._LaunchTemplateIds = None
|
|
7138
7149
|
|
|
7139
7150
|
@property
|
|
7140
7151
|
def QueueName(self):
|
|
7141
|
-
r"""
|
|
7152
|
+
r"""<p>队列名称。</p>
|
|
7142
7153
|
:rtype: str
|
|
7143
7154
|
"""
|
|
7144
7155
|
return self._QueueName
|
|
@@ -7149,7 +7160,7 @@ class QueueConfig(AbstractModel):
|
|
|
7149
7160
|
|
|
7150
7161
|
@property
|
|
7151
7162
|
def MinSize(self):
|
|
7152
|
-
r"""
|
|
7163
|
+
r"""<p>队列中弹性节点数量最小值。默认值:0。取值范围:0~200。</p>
|
|
7153
7164
|
:rtype: int
|
|
7154
7165
|
"""
|
|
7155
7166
|
return self._MinSize
|
|
@@ -7160,7 +7171,7 @@ class QueueConfig(AbstractModel):
|
|
|
7160
7171
|
|
|
7161
7172
|
@property
|
|
7162
7173
|
def MaxSize(self):
|
|
7163
|
-
r"""
|
|
7174
|
+
r"""<p>队列中弹性节点数量最大值。默认值:10。取值范围:0~200。</p>
|
|
7164
7175
|
:rtype: int
|
|
7165
7176
|
"""
|
|
7166
7177
|
return self._MaxSize
|
|
@@ -7171,7 +7182,7 @@ class QueueConfig(AbstractModel):
|
|
|
7171
7182
|
|
|
7172
7183
|
@property
|
|
7173
7184
|
def EnableAutoExpansion(self):
|
|
7174
|
-
r"""
|
|
7185
|
+
r"""<p>是否开启自动扩容。</p>
|
|
7175
7186
|
:rtype: bool
|
|
7176
7187
|
"""
|
|
7177
7188
|
return self._EnableAutoExpansion
|
|
@@ -7182,7 +7193,7 @@ class QueueConfig(AbstractModel):
|
|
|
7182
7193
|
|
|
7183
7194
|
@property
|
|
7184
7195
|
def EnableAutoShrink(self):
|
|
7185
|
-
r"""
|
|
7196
|
+
r"""<p>是否开启自动缩容。</p>
|
|
7186
7197
|
:rtype: bool
|
|
7187
7198
|
"""
|
|
7188
7199
|
return self._EnableAutoShrink
|
|
@@ -7193,7 +7204,7 @@ class QueueConfig(AbstractModel):
|
|
|
7193
7204
|
|
|
7194
7205
|
@property
|
|
7195
7206
|
def ImageId(self):
|
|
7196
|
-
r"""
|
|
7207
|
+
r"""<p>指定有效的<a href="https://cloud.tencent.com/document/product/213/4940">镜像</a>ID,格式形如<code>img-xxx</code>。目前仅支持公有镜和特定自定义镜像。</p>
|
|
7197
7208
|
:rtype: str
|
|
7198
7209
|
"""
|
|
7199
7210
|
return self._ImageId
|
|
@@ -7204,7 +7215,7 @@ class QueueConfig(AbstractModel):
|
|
|
7204
7215
|
|
|
7205
7216
|
@property
|
|
7206
7217
|
def SystemDisk(self):
|
|
7207
|
-
r"""
|
|
7218
|
+
r"""<p>节点系统盘配置信息。若不指定该参数,则按照系统默认值进行分配。</p>
|
|
7208
7219
|
:rtype: :class:`tencentcloud.thpc.v20230321.models.SystemDisk`
|
|
7209
7220
|
"""
|
|
7210
7221
|
return self._SystemDisk
|
|
@@ -7215,7 +7226,7 @@ class QueueConfig(AbstractModel):
|
|
|
7215
7226
|
|
|
7216
7227
|
@property
|
|
7217
7228
|
def DataDisks(self):
|
|
7218
|
-
r"""
|
|
7229
|
+
r"""<p>节点数据盘配置信息。若不指定该参数,则默认不购买数据盘。支持购买的时候指定21块数据盘,其中最多包含1块LOCAL_BASIC数据盘或者LOCAL_SSD数据盘,最多包含20块CLOUD_BASIC数据盘、CLOUD_PREMIUM数据盘或者CLOUD_SSD数据盘。</p>
|
|
7219
7230
|
:rtype: list of DataDisk
|
|
7220
7231
|
"""
|
|
7221
7232
|
return self._DataDisks
|
|
@@ -7226,7 +7237,7 @@ class QueueConfig(AbstractModel):
|
|
|
7226
7237
|
|
|
7227
7238
|
@property
|
|
7228
7239
|
def InternetAccessible(self):
|
|
7229
|
-
r"""
|
|
7240
|
+
r"""<p>公网带宽相关信息设置。若不指定该参数,则默认公网带宽为0Mbps。</p>
|
|
7230
7241
|
:rtype: :class:`tencentcloud.thpc.v20230321.models.InternetAccessible`
|
|
7231
7242
|
"""
|
|
7232
7243
|
return self._InternetAccessible
|
|
@@ -7237,7 +7248,7 @@ class QueueConfig(AbstractModel):
|
|
|
7237
7248
|
|
|
7238
7249
|
@property
|
|
7239
7250
|
def ExpansionNodeConfigs(self):
|
|
7240
|
-
r"""
|
|
7251
|
+
r"""<p>扩容节点配置信息。</p>
|
|
7241
7252
|
:rtype: list of ExpansionNodeConfig
|
|
7242
7253
|
"""
|
|
7243
7254
|
return self._ExpansionNodeConfigs
|
|
@@ -7248,7 +7259,7 @@ class QueueConfig(AbstractModel):
|
|
|
7248
7259
|
|
|
7249
7260
|
@property
|
|
7250
7261
|
def DesiredIdleNodeCapacity(self):
|
|
7251
|
-
r"""
|
|
7262
|
+
r"""<p>队列中期望的空闲节点数量(包含弹性节点和静态节点)。默认值:0。队列中,处于空闲状态的节点小于此值,集群会扩容弹性节点;处于空闲状态的节点大于此值,集群会缩容弹性节点。</p>
|
|
7252
7263
|
:rtype: int
|
|
7253
7264
|
"""
|
|
7254
7265
|
return self._DesiredIdleNodeCapacity
|
|
@@ -7259,7 +7270,7 @@ class QueueConfig(AbstractModel):
|
|
|
7259
7270
|
|
|
7260
7271
|
@property
|
|
7261
7272
|
def DesiredNodeCount(self):
|
|
7262
|
-
r"""
|
|
7273
|
+
r"""<p>队列中期望的总节点数。</p>
|
|
7263
7274
|
:rtype: int
|
|
7264
7275
|
"""
|
|
7265
7276
|
return self._DesiredNodeCount
|
|
@@ -7270,8 +7281,7 @@ class QueueConfig(AbstractModel):
|
|
|
7270
7281
|
|
|
7271
7282
|
@property
|
|
7272
7283
|
def ScaleOutRatio(self):
|
|
7273
|
-
r"""
|
|
7274
|
-
如果扩容比例为50,那么每轮只会扩容当前作业负载所需的50%数量的节点。
|
|
7284
|
+
r"""<p>扩容比例。默认值:100。取值范围:1~100。<br>如果扩容比例为50,那么每轮只会扩容当前作业负载所需的50%数量的节点。</p>
|
|
7275
7285
|
:rtype: int
|
|
7276
7286
|
"""
|
|
7277
7287
|
return self._ScaleOutRatio
|
|
@@ -7282,9 +7292,7 @@ class QueueConfig(AbstractModel):
|
|
|
7282
7292
|
|
|
7283
7293
|
@property
|
|
7284
7294
|
def ScaleOutNodeThreshold(self):
|
|
7285
|
-
r"""
|
|
7286
|
-
当作业负载需要扩容节点数量大于此值,当前扩容轮次按照ScaleOutRatio配置的比例进行扩容。当作业负载需要扩容节点数量小于此值,当前扩容轮次扩容当前作业负载所需数量的节点。
|
|
7287
|
-
此参数配合ScaleOutRatio参数进行使用,用于比例扩容场景下,在作业负载所需节点数量较小时,加快收敛速度。
|
|
7295
|
+
r"""<p>比例扩容阈值。默认值:0。取值范围:0~200。<br>当作业负载需要扩容节点数量大于此值,当前扩容轮次按照ScaleOutRatio配置的比例进行扩容。当作业负载需要扩容节点数量小于此值,当前扩容轮次扩容当前作业负载所需数量的节点。<br>此参数配合ScaleOutRatio参数进行使用,用于比例扩容场景下,在作业负载所需节点数量较小时,加快收敛速度。</p>
|
|
7288
7296
|
:rtype: int
|
|
7289
7297
|
"""
|
|
7290
7298
|
return self._ScaleOutNodeThreshold
|
|
@@ -7295,7 +7303,7 @@ class QueueConfig(AbstractModel):
|
|
|
7295
7303
|
|
|
7296
7304
|
@property
|
|
7297
7305
|
def MaxNodesPerCycle(self):
|
|
7298
|
-
r"""
|
|
7306
|
+
r"""<p>每轮扩容最大节点个数。默认值:100。取值范围:1~100。</p>
|
|
7299
7307
|
:rtype: int
|
|
7300
7308
|
"""
|
|
7301
7309
|
return self._MaxNodesPerCycle
|
|
@@ -7306,11 +7314,7 @@ class QueueConfig(AbstractModel):
|
|
|
7306
7314
|
|
|
7307
7315
|
@property
|
|
7308
7316
|
def ScaleUpMemRatio(self):
|
|
7309
|
-
r"""
|
|
7310
|
-
针对场景:由于实例机型的总内存会大于实例内部的可用内存,16GB内存规格的实例,实例操作系统内的可用内存只有约14.9GB内存。假设此时提交一个需要15GB内存的作业,
|
|
7311
|
-
|
|
7312
|
-
- 当ScaleUpMemRatio=0时,会匹配到16GB内存规格的实例,但是由于操作系统内的可用内存为14.9GB小于作业所需的15GB,扩容出来的实例作业无法运行起来。
|
|
7313
|
-
- 当ScaleUpMemRatio=10时,匹配实例规格会按照15*(1+10%)=16.5GB来进行实例规格匹配,则不会匹配到16GB的实例,而是更大内存规格的实例来保证作业能够被运行起来。
|
|
7317
|
+
r"""<p>扩容过程中,作业的内存在匹配实例机型时增大比例(不会影响作业提交的内存大小,只影响匹配计算过程)。<br><br>针对场景:由于实例机型的总内存会大于实例内部的可用内存,16GB内存规格的实例,实例操作系统内的可用内存只有约14.9GB内存。假设此时提交一个需要15GB内存的作业,</p><ul><li>当ScaleUpMemRatio=0时,会匹配到16GB内存规格的实例,但是由于操作系统内的可用内存为14.9GB小于作业所需的15GB,扩容出来的实例作业无法运行起来。</li><li>当ScaleUpMemRatio=10时,匹配实例规格会按照15*(1+10%)=16.5GB来进行实例规格匹配,则不会匹配到16GB的实例,而是更大内存规格的实例来保证作业能够被运行起来。</li></ul>
|
|
7314
7318
|
:rtype: int
|
|
7315
7319
|
"""
|
|
7316
7320
|
return self._ScaleUpMemRatio
|
|
@@ -7321,7 +7325,7 @@ class QueueConfig(AbstractModel):
|
|
|
7321
7325
|
|
|
7322
7326
|
@property
|
|
7323
7327
|
def EnhancedService(self):
|
|
7324
|
-
r"""
|
|
7328
|
+
r"""<p>增强服务。通过该参数可以指定是否开启云安全、腾讯云可观测平台等服务。若不指定该参数,则默认开启腾讯云可观测平台、云安全服务、自动化助手服务。</p>
|
|
7325
7329
|
:rtype: :class:`tencentcloud.thpc.v20230321.models.EnhancedService`
|
|
7326
7330
|
"""
|
|
7327
7331
|
return self._EnhancedService
|
|
@@ -7330,6 +7334,17 @@ class QueueConfig(AbstractModel):
|
|
|
7330
7334
|
def EnhancedService(self, EnhancedService):
|
|
7331
7335
|
self._EnhancedService = EnhancedService
|
|
7332
7336
|
|
|
7337
|
+
@property
|
|
7338
|
+
def LaunchTemplateIds(self):
|
|
7339
|
+
r"""<p>扩容实例模板,可以在cvm侧进行设置</p>
|
|
7340
|
+
:rtype: list of str
|
|
7341
|
+
"""
|
|
7342
|
+
return self._LaunchTemplateIds
|
|
7343
|
+
|
|
7344
|
+
@LaunchTemplateIds.setter
|
|
7345
|
+
def LaunchTemplateIds(self, LaunchTemplateIds):
|
|
7346
|
+
self._LaunchTemplateIds = LaunchTemplateIds
|
|
7347
|
+
|
|
7333
7348
|
|
|
7334
7349
|
def _deserialize(self, params):
|
|
7335
7350
|
self._QueueName = params.get("QueueName")
|
|
@@ -7365,6 +7380,7 @@ class QueueConfig(AbstractModel):
|
|
|
7365
7380
|
if params.get("EnhancedService") is not None:
|
|
7366
7381
|
self._EnhancedService = EnhancedService()
|
|
7367
7382
|
self._EnhancedService._deserialize(params.get("EnhancedService"))
|
|
7383
|
+
self._LaunchTemplateIds = params.get("LaunchTemplateIds")
|
|
7368
7384
|
memeber_set = set(params.keys())
|
|
7369
7385
|
for name, value in vars(self).items():
|
|
7370
7386
|
property_name = name[1:]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-thpc
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.47
|
|
4
4
|
Summary: Tencent Cloud Thpc SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.47
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.47
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.35
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|