模板附录:Cloudformation参数字典
Parameters:
AvailabilityZones:
Description: 'List of Availability Zones to use for the subnets in the VPC. Note:
The logical order is preserved ( More AZ will improve the availability of the system, less AZ will reduce the cost of data traffic between AZ )'
Type: List<AWS::EC2::AvailabilityZone::Name>
PrivateSubnet1CIDR:
AllowedPattern: ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$
ConstraintDescription: Must be a valid IP range in x.x.x.x/x notation
Default: 10.0.0.0/19
Description: CIDR block for private subnet 1 located in Availability Zone 1
Type: String
PrivateSubnet2CIDR:
AllowedPattern: ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$
ConstraintDescription: Must be a valid IP range in x.x.x.x/x notation
Default: 10.0.32.0/19
Description: (Please ignore if you choose 1 AZs)CIDR block for private subnet 2 located in Availability Zone 2
Type: String
PublicSubnet1CIDR:
AllowedPattern: ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$
ConstraintDescription: Must be a valid IP range in x.x.x.x/x notation
Default: 10.0.128.0/20
Description: CIDR Block for the public DMZ subnet 1 located in Availability Zone 1
Type: String
PublicSubnet2CIDR:
AllowedPattern: ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$
ConstraintDescription: Must be a valid IP range in x.x.x.x/x notation
Default: 10.0.144.0/20
Description: (Please ignore if you choose 1 AZs)CIDR Block for the public DMZ subnet 2 located in Availability Zone 2
Type: String
VPCCIDR:
AllowedPattern: ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$
ConstraintDescription: Must be a valid IP range in x.x.x.x/x notation
Default: 10.0.0.0/16
Description: CIDR Block for the VPC
Type: String
RemoteAccessCIDR:
AllowedPattern: ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$
ConstraintDescription: CIDR block parameter must be in the form x.x.x.x/x
Default: 0.0.0.0/0
Description: Allowed CIDR block for external SSH access to the bastions
Type: String
KeyPairName:
Description: Public/private key pairs allow you to securely connect to your instance
after it launches
Type: AWS::EC2::KeyPair::KeyName
AccessCIDR:
AllowedPattern: ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\/([0-9]|[1-2][0-9]|3[0-2]))$
ConstraintDescription: Must be a valid IP range in x.x.x.x/x notation
Description: 'The CIDR IP range that is permitted to access ClickHouse instances.
Note: a value of 0.0.0.0/0 will allow access from ANY ip address'
Default: 0.0.0.0/0
Type: String
BastionAMIOS:
AllowedValues:
- Amazon-Linux2-HVM
- CentOS-7-HVM
- Ubuntu-Server-20.04-LTS-HVM
- SUSE-SLES-15-HVM
Default: Amazon-Linux2-HVM
Description: The Linux distribution for the AMI to be used for the bastion instances
Type: String
BastionInstanceType:
AllowedValues:
- t2.nano
- t2.micro
- t2.small
- t2.medium
- t2.large
- t3.micro
- t3.small
- t3.medium
- t3.large
- t3.xlarge
- t3.2xlarge
- m5.large
- m5.xlarge
- m5.2xlarge
- m4.large
- m4.xlarge
- m4.2xlarge
- m4.4xlarge
Default: t2.micro
Description: Amazon EC2 instance type for the bastion instances
Type: String
ClickHouseInstanceType:
AllowedValues:
- m5.large
- m5.xlarge
- m5.2xlarge
- m5.4xlarge
- m5.8xlarge
- m5.12xlarge
- m5.16xlarge
- r5.large
- r5.xlarge
- r5.2xlarge
- r5.4xlarge
- r5.8xlarge
- i3.large
- i3.xlarge
- i3.2xlarge
- i3.4xlarge
- i3.8xlarge
ConstraintDescription: Choose an instance type. m5.large or larger recommended.
Default: m5.large
Description: ClickHouse server instance type
Type: String
ClickHouseEBSType:
AllowedValues:
- gp2
- io2
- gp3
- io1
- st1
ConstraintDescription: Choose an EBS type. SSD(gp2) or larger recommended.// In this template, Maximum 1023 ,if you choose the piops type, we will define 3000 IOPs for you
Default: gp2
Description: ClickHouse server EBS type
Type: String
ClickHouseEBSSize:
MaxValue: '1023'
MinValue: '10'
ConstraintDescription: Choose an EBS Size.
Default: '50'
Description: ClickHouse server EBS Size
Type: Number
ClickHouseClusterType:
AllowedValues:
- SingleNode
- 2Shard2Replica
- 4Shard2Replica
- 10Shard2Replica
Default: 'SingleNode'
Description: ClickHouse ClusterType (This will correlate your number of nodes:4_Nodes is 2*Shard_2*Replica/12_Nodes is 6*Shard_2*Replica)
Type: String
DefaultPassword:
Description: MinLength 6 . Password of the ClickHouse Default User
MaxLength: '32'
MinLength: '6'
NoEcho: 'true'
Type: String
ClickHouseVersion:
AllowedValues:
- '21.4.5.46-2'
- '21.5.5.12-2'
Default: '21.4.5.46-2'
Description: ClickHouse Version (21.4.5 or 21.5.5)
Type: String
Timezone:
Default: Asia/Shanghai
Description: The time zone setting that specifies the primary market served by
the ClickHouse store
Type: String
ListenHost:
AllowedValues:
- '0.0.0.0'
- '127.0.0.1'
- '::'
Default: '0.0.0.0'
Description: listen_host for clickhouse config.xml //(127.0.0.1) Localhost only//(::) IPv4 and IPv6 from everywhere//(0.0.0.0) IPv4 from everywhere
Type: String
MaxThreads:
AllowedValues:
- '2'
- '4'
- '8'
- '16'
- '32'
Default: '8'
Description: max_threads for clickhouse Default users.xml //recommend The number of cores using the instance
Type: String
MaxMemoryUsage:
AllowedValues:
- '10737418240'
- '21474836480'
- '42949672960'
- '107374182400'
Default: '10737418240'
Description: max_memory_usage for clickhouse Default users.xml // Unit is byte, for example 21474836480=20g //In a single Clickhouse service process, the maximum amount of memory used by running a query is limited, and the default value is 10g
Type: String
MaxInsertThreads:
AllowedValues:
- '1'
- '4'
- '8'
- '16'
Default: '4'
Description: max_insert_threads for clickhouse Default users.xml // The maximum number of threads to execute the INSERT SELECT query.
Type: String
DistributedProductMode:
AllowedValues:
- 'deny'
- 'local'
- 'global'
- 'allow'
Default: 'deny'
Description: distributed_product_mode for clickhouse Default users.xml // ClickHouse applies this setting when the query contains the product of distributed tables, i.e. when the query for a distributed table contains a non-GLOBAL subquery for the distributed table.
Type: String
LoadBalancing:
AllowedValues:
- 'random'
- 'nearest_hostname'
- 'in_order'
- 'first_or_random'
Default: 'random'
Description: load_balancing for clickhouse Default users.xml // Specifies the algorithm of replicas selection that is used for distributed query processing..
Type: String
DemoDataSize:
AllowedValues:
- 'small'
- 'medium'
- 'large'
Default: 'small'
Description: Cloudformation will create a demo table(OnTime dataset) for you and load data. You can choose the size of demo data --'small'100m / / -'medium'3g / / -'large'15g
Type: String
MoveFactor:
AllowedValues:
- '0.3'
- '0.1'
- '0.5'
Default: '0.3'
Description: Cloudformation will create hot(EBS disk) and cold(S3) tiered storage for you. When the available space of the instance EBS is less than this factor, the data will automatically move to Your S3 bucket
Type: String
MaxDataPartSize:
AllowedValues:
- '1073741824'
- '5368709120'
- '10737418240'
Default: '1073741824'
Description: max_data_part_size_bytes for clickhouse Default storage.xml // Unit is byte, the maximum size of a part that can be stored on any of the volume’s disks.
Type: String
PrometheusVersion:
AllowedValues:
- '2.27.0'
- '2.19.0'
Default: '2.19.0'
Description: Deploy the Prometheus version to monitor Clickhouse
Type: String
GrafanaVersion:
AllowedValues:
- '7.5.6-1'
Default: '7.5.6-1'
Description: Deploy the grafana version to monitor Clickhouse
Type: String
AdminInstanceType:
AllowedValues:
- c5.large
- c5.xlarge
- c5.2xlarge
- c5.4xlarge
- c5.9xlarge
- c5.12xlarge
- m5.large
- m5.xlarge
- m5.2xlarge
- m5.4xlarge
- m5.8xlarge
- m5.12xlarge
- m5.16xlarge
- r5.large
- r5.xlarge
- r5.2xlarge
- r5.4xlarge
- r5.8xlarge
- i3.large
- i3.xlarge
- i3.2xlarge
- i3.4xlarge
- i3.8xlarge
Default: m5.large
Description: ZooKeeper server instance type
Type: String
AdminEBSType:
AllowedValues:
- gp2
- io2
- gp3
- io1
- st1
ConstraintDescription: Choose an EBS type. SSD(gp2) or larger recommended.// In this template, Maximum 1023 ,if you choose the piops type, we will define 3000 IOPs for you
Default: gp2
Description: ZooKeeper server EBS type
Type: String
AdminEBSSize:
MaxValue: '1023'
MinValue: '10'
ConstraintDescription: Choose an EBS Size.
Default: '50'
Description: ZooKeeper server EBS Size
Type: Number
CHproxyCacheSize:
AllowedValues:
- 500Mb
- 1Gb
- 10Gb
Description: Cached responses will be stored in CHproxy.Maximum cache Size.
Default: 500Mb
Type: String
CHproxyCacheExpire:
AllowedValues:
- 120s
- 600s
- 6000s
Default: 600s
Type: String
Description: (h)Expiration time for cached responses.
CHproxyDistributedUserPassword:
Description: Chproxy will configure Distributed/replica split users. Password of the CHproxy Distributed User Default
Type: String
Default: read
CHproxyReplicaUserPassword:
Description: Chproxy will configure Distributed/replica split users. Password of the CHproxy Replica User Default
Type: String
Default: write
ZooKeeperInstanceType:
AllowedValues:
- c5.large
- c5.xlarge
- c5.2xlarge
- c5.4xlarge
- c5.9xlarge
- c5.12xlarge
- m5.large
- m5.xlarge
- m5.2xlarge
- m5.4xlarge
- m5.8xlarge
- m5.12xlarge
- m5.16xlarge
- r5.large
- r5.xlarge
- r5.2xlarge
- r5.4xlarge
- r5.8xlarge
- i3.large
- i3.xlarge
- i3.2xlarge
- i3.4xlarge
- i3.8xlarge
Default: m5.large
Description: ZooKeeper server instance type
Type: String
ZooKeeperEBSType:
AllowedValues:
- gp2
- io2
- gp3
- io1
- st1
ConstraintDescription: Choose an EBS type. SSD(gp2) or larger recommended.// In this template, Maximum 1023 ,if you choose the piops type, we will define 3000 IOPs for you
Default: gp2
Description: ZooKeeper server EBS type
Type: String
ZooKeeperEBSSize:
MaxValue: '1023'
MinValue: '10'
ConstraintDescription: Choose an EBS Size.
Default: '50'
Description: ZooKeeper server EBS Size
Type: Number
ZookeeperVersion:
AllowedValues:
- '3.7.0'
- '3.5.9'
- '3.6.3'
Default: '3.7.0'
Description: ZooKeeper Version (3.7.0--3.6.3)
Type: String
ZookeeperPurgeInterval:
Default: '0'
AllowedValues:
- '0'
- '24'
- '48'
- '72'
- '168'
- '720'
Description: Enable the function of cleaning transaction log and snapshot file, unit is hour. The default value is (0), indicating that the automatic cleaning function is not enabled.
Type: String
ZookeeperSnapRetainCount:
Default: '3'
AllowedValues:
- '2'
- '3'
- '10'
- '24'
- '48'
- '168'
Description: Specifies the number of files to keep. The default is to keep (3).
Type: String