- What's New
- Service Overview
- User Guide
- Template Reference
-
API Reference
- Before You Start
-
API
- Calling APIs
-
Stacks
- Listing Events of a Stack
- Obtaining Stack Metadata
- Listing Stacks
- Creating a Stack
- Obtaining a Stack Template
- Listing Stack Resources
- Listing Stack Outputs
- Continuing to Deploy a Stack
- Deploying a Stack
- Deleting a Stack
- Updating a Stack
- Deleting a Stack with Conditions
- Continuing to Roll Back a Stack
- Execution Plans
- Template Analysis
- Template Management
-
Stack Sets
- Listing Stack Sets
- Creating a Stack Set
- Obtaining a Stack Set Template
- Listing Stack Set Operations
- Obtaining Metadata of a Stack Set
- Listing Stack Instances
- Creating Stack Instances
- Deleting Stack Instance Deprecated
- Updating Stack Instances
- Deleting Stack Instances
- Deploying a Stack Set
- Deleting a Stack Set
- Updating a Stack Set
- Obtaining Metadata of a Stack Set Operation
- Obtaining a Stack Instance
- Customized Providers
- Resource Formation - Hook
- Resource Formation - Module Management
- Permissions and Supported Actions
- Appendix
- Change History
- FAQs
- Videos
-
More Documents
-
User Guide (ME-Abu Dhabi Region)
- Service Overview
- Getting Started
- Stack Management
- CTS
-
Template Reference
- Template Introduction
-
List of Elements
- Resource Indexes
- AOS.Stack
- CCE.Addon.AutoScaler
- CCE.Cluster
- CCE.HelmRelease
- CCE.NodePool
- CCE.Pod
- CCE.Storage.OBS
- CCE.Storage.SFS
- DCS.Redis
- ECS.CloudServer
- ECS.KeyPair
- NAT.Instance
- NAT.SNatRule
- OBS.Bucket
- RDS.MySQL
- SFS.FileSystem
- ULB.Healthmonitor
- ULB.Listener
- ULB.LoadBalancer
- ULB.Member
- ULB.Pool
- VPC.EIP
- VPC.SecurityGroup
- VPC.SecurityGroupRule
- VPC.Subnet
- VPC.VPC
-
Data Structure
- AOS.BatchItem
- Basic.KeyValuePair
- Basic.Label
- Basic.LabelSelector
- Basic.NameAndSecretValue
- Basic.NameKeyPair
- Basic.NameValuePair
- CCE.Addon.AutoScaler.Node
- CCE.DataVolume
- CCE.HelmChart
- CCE.Labels
- CCE.NodePool
- CCE.PublicIP
- DCS.InstanceBackupPolicy
- DCS.PeriodicalBackupPlan
- ECS.DataVolume
- ECS.EIP
- ECS.ExtendParam
- ECS.MountedVolumes
- ECS.NICS
- ECS.Personality
- ECS.PublicIP
- ECS.RootVolume
- ECS.SecurityGroup
- ECS.ServerTags
- ECS.VolumeExtendParam
- K8S.PodSecurityContext
- K8S.SecurityContext.SeLinuxOptions
- MySQL.DBUser
- MySQL.DataBase
- MySQL.DataStore
- RDS.BackupStrategy
- RDS.HA.Mysql
- RDS.Volume
- ULB.StickySession
- VPC.BandWidth
- VPC.PublicIP
- Appendix
- FAQs
- Change History
-
API Reference (ME-Abu Dhabi Region)
- Before You Start
- API Overview
- Calling APIs
-
API
- Creating a Template
- Querying a Template List
- Updating a Template
- Deleting a Template
- Downloading a Template
- Querying a Template
- Querying the Input Parameters of a Template
- Creating a Stack
- Deleting a Stack
- Executing a Stack Lifecycle
- Querying a Stack List
- Querying a Stack
- Querying a Stack Element List
- Querying a Stack Element
- Querying a Stack Output
- Querying Stack Input
- Querying the Execution Record of a Stack
- Querying a Stack Execution Record List
- Appendix
- Change History
-
API Reference (Kuala Lumpur Region)
- Before You Start
-
API
- Calling APIs
-
Stacks
- Listing Events of a Stack
- Obtaining Stack Metadata
- Listing Stacks
- Creating a Stack
- Obtaining a Stack Template
- Listing Stack Resources
- Listing Stack Outputs
- Continuing to Deploy a Stack
- Deploying a Stack
- Deleting a Stack
- Updating a Stack
- Deleting a Stack with Conditions
- Continuing to Roll Back a Stack
- Execution Plans
- Template Analysis
- Template Management
-
Stack Sets
- Listing Stack Sets
- Creating a Stack Set
- Obtaining a Stack Set Template
- Listing Stack Set Operations
- Obtaining Metadata of a Stack Set
- Listing Stack Instances
- Creating Stack Instances
- Deleting Stack Instance Deprecated
- Updating Stack Instances
- Deploying a Stack Set
- Deleting Stack Instances
- Deleting a Stack Set
- Updating a Stack Set
- Obtaining Metadata of a Stack Set Operation
- Obtaining a Stack Instance
- Appendix
- Change History
- User Guide (Kuala Lumpur Region)
-
User Guide (ME-Abu Dhabi Region)
- General Reference
Copied.
CCE.Addon.AutoScaler
Element Description
CCE.Addon.AutoScaler is a plug-in for node auto-scaling in a K8S cluster.
Element Properties
Property |
Mandatory |
Descripiton |
---|---|---|
scaleDownUtilizationThreshold |
No |
Node resource usage ratio Type: float Value Description: The value ranges from 0 to 1. Default: 0.4 Value Constraint: The value ranges from 0 to 1. Suggestion: Set this parameter based on the live environment. |
clusterId |
Yes |
ID of the cluster to which the resource belongs Type: Cloud.CCE.Cluster.Id Value Description: Indicates the ID of an existing or new container cluster. Value Constraint: The value must satisfy the UUID rule and contain a maximum of 64 characters. Suggestion: 1. Enter the cluster ID. Specifically, log in to the CCE console, and choose Resource Management > Clusters. Click the target cluster, and you can then obtain its cluster ID. 2. Connect to the cluster object and use the get_reference function to obtain the cluster ID. |
scaleDownEnabled |
Yes |
Scale down function switch Type: boolean Default: False |
publicKey |
No |
Public key. This parameter is mandatory if the stack is billed in the yearly/monthly mode. Type: Cloud.ECS.KeyPair.PublicKey |
nodePasswd |
No |
Password of the scaled node root user Type: password |
nodes |
Yes |
AZs, specifications, OSs, and taints of the scaled nodes Type: CCE.Addon.AutoScaler.Node array Suggestion: In node scaling, taints are an array consisting of key, value, and effect. The effect can be set to NoSchedule, PreferNoSchedule, or NoExecute. |
sshKeyName |
No |
Node key pair Type: Cloud.ECS.KeyPair.Name |
scaleDownUnneededTime |
No |
When a node remains idle for this specified time duration (in minutes), scaling down will be performed. Type: integer Value Description: The value ranges from 1 to 1000. Default: 10 Value Constraint: The value ranges from 1 to 1000. Suggestion: Set this parameter based on the live environment. |
Relationships Between Elements
Description |
Target |
---|---|
Dependency |
|
Inclusion |
Return Value
Property |
Type |
Description |
---|---|---|
clusterId |
string |
ID of the cluster which is associated with the AutoScaler |
refName |
string |
Name of the AutoScaler |
refID |
string |
UID of the AutoScaler |
Blueprint Example
tosca_definitions_version: cloud_tosca_version_1_0 inputs: clusterId: default: "e0f98d46-9716-11e8-a25f-0255ac106314" description: cluster ID. nodePasswd: default: "******" description: node root user password scaleDownEnabled: default: true description: scale down enabled. scaleDownUnneededTime: default: 10 description: sale down unneeded time scaleDownUtilizationThreshold: default: 0.5 description: scale down utilization threshold avaliableZone: default: az1.dc1 description: avaliableZone. nodeFlavor: default: s1.xlarge description: node flavor. nodeOS: default: EulerOS 2.2 description: node OS. node_templates: autoscaler: type: Cloud.CCE.Addon.AutoScaler properties: clusterId: get_input: clusterId nodePasswd: get_input: nodePasswd scaleDownEnabled: get_input: scaleDownEnabled scaleDownUnneededTime: get_input: scaleDownUnneededTime scaleDownUtilizationThreshold: get_input: scaleDownUtilizationThreshold nodes: - az: get_input: avaliableZone flavor: get_input: nodeFlavor os: get_input: nodeOS outputs: autoscaler_id: value: {get_attribute: [autoscaler, refID]}
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot